Test SAML IDP for memory overread
When testing a SAML IDP, try sending a SAMLRequest with a malformed AuthnRequest XML document to the /saml/login endpoint. Look for signs of a memory overread, such as unexpected behavior or error messages, in the server's response or logs. This can be done by manipulating the XML attributes, such as removing or modifying quotes, to see if the parser reads past the end of the input buffer. Monitor the server's logs, such as /var/log/ns.log, to observe how the parser interprets the input. A successful test may reveal sensitive information or cause the server to crash.
POST /saml/login HTTP/1.1
Host: target.com
Content-Length: 1090
SAMLRequest=<base64-encoded XML document>Follow #memory-overread, #saml or #xml-parsing for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.