Skip to content

XML content is not escaped. #7

@fisx

Description

@fisx

I just got the following test case to pass over in saml2-web-sso:

      HS.samlToXML (HS.simpleNameID HS.NameIDFormatUnspecified "<something>")
        `shouldBe` "<NameID xmlns=\"urn:oasis:names:tc:SAML:2.0:assertion\"><something></NameID>"
        -- it really shouldn't, though!

Not sure how big of a security issue that is, but it doesn't seem right. I'm wondering if there is some escaping functionality in HXT that is just hard to call in all the right places?

I don't think this'll be trivial to fix. I have worked around this in saml2-web-sso in hopefully all the places for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions