You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, a & in ACS URL is not replaced by & in the loginRequestRedirectURL function so the generated XML is not valid and authentication fails.
More important, this could lead to security issues (XML injection).
Solution: do NOT use replaceTagsByValue in an XML template without escaping the values!
The text was updated successfully, but these errors were encountered:
@jer-senreplaceTagsByValue is definitely not the optimal function to construct xml, it's doing string interpolation. I will draft a new function and add a deprecation warning for this function.
The assumption is that if an interpolation begins with a double quote (e.g. "{ID}) then its an interpolation within an XML attribute that needs character entity escaping. This assumption seems to hold for your current templates.
Raised a PR: #523. I haven't followed all the repo conventions yet. I could do those as another commit on the branch.
For example, a
&
in ACS URL is not replaced by&
in theloginRequestRedirectURL
function so the generated XML is not valid and authentication fails.More important, this could lead to security issues (XML injection).
Solution: do NOT use
replaceTagsByValue
in an XML template without escaping the values!The text was updated successfully, but these errors were encountered: