hunt-saml
Hunts for SAML/SSO authentication vulnerabilities like XML signature wrapping, comment injection, and signature stripping to achieve account takeover.
What it does
Hunt SAML / SSO attacks. Patterns: XML Signature Wrapping (XSW) — modify Assertion while keeping Signature valid by relocating signed element, comment injection in NameID (admin@target.com<!--evil-->@attacker.com → some parsers see admin@target.com), signature stripping (remove Signature element entirely, server should reject but doesn't), key confusion (signed by attacker's IdP, accepted by SP), audience-restriction not validated, replay attack (same Assertion accepted twice within validity window). Tools: SAML Raider Burp extension, samlmagic, manual XML manipulation. Detection: any /saml endpoint, /Shibboleth.sso, /sso/saml/, Microsoft ADFS endpoints. Validate: account takeover via altered NameID, admin role injection via altered AttributeStatement. Use when hunting SSO flows, when SAML AssertionConsumerService is reachable, when chaining IdP-trust to SP-impersonation.
Quality judgment
Excellent coverage of XSW variants, comment injection with CVE references, signature stripping, XXE, and correct encoding details (DEFLATE vs gzip). Chain primitives and triage severity guidance add depth; minor deduction for brief coverage of key confusion and replay despite being named in the description.