Test SAML SignedInfo for buffer overflow
When testing a target that uses SAML authentication, try sending a SignedInfo element with a large PrefixList attribute to see if it causes a buffer overflow. The PrefixList attribute can contain a long list of space-separated values, which can be used to overflow a fixed-size buffer. To test, send a SAML message with a SignedInfo element containing a CanonicalizationMethod with an InclusiveNamespaces child element, and a PrefixList attribute with a large number of unique values, such as N0 N1 N2 ... N1999. If the target is vulnerable, it may crash or exhibit unexpected behavior, indicating a potential buffer overflow vulnerability. Look for errors such as a SIGBUS signal or a crash in the ns_memcpy_avx function to confirm the bug.
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="N0 N1 N2 ... N1999"/>
</ds:CanonicalizationMethod>
</ds:SignedInfo>Follow #netscaler, #rce or #saml for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.