Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Saml?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-saml)
---
name: saml
description: SAML SSO attacks — XML Signature Wrapping (XSW1-8), signature exclusion/stripping, certificate confusion, comment/canonicalization injection in NameID, XSLT-before-verify, unsigned-assertion acceptance, replay (missing NotOnOrAfter/InResponseTo), and XXE in SAML messages. Tier 1. Use whenever SAML-based SSO is in scope.
---
# SAML (SSO) Attacks
SAML trust rests on XML signature validation; subtle parser/verifier gaps let you forge assertions and impersonate any user.
## Trigger phrases
`saml, sso, assertion, signature wrapping, xsw, saml bypass, nameid, saml raider`
## Attacks
- **XML Signature Wrapping (XSW1-8) [core]:** add a forged assertion while keeping the valid signature over the original, exploiting which element the verifier validates vs which the app reads. Use SAML Raider to generate all 8 variants.
- **Signature exclusion / stripping:** remove the `<Signature>`; if the SP still accepts → forge freely.
- **Unsigned assertion acceptance / signature on wrong element.**
- **Comment / canonicalization injection:** `admin<!---->@x.com` in `NameID` → parser returns `admin@x.com` after signing (XMLDSig canonicalization quirk).
- **XSLT-before-verify / transform abuse:** malicious `<ds:Transform>` (→ `ldap-xpath-xslt` for XSLT RCE primitives).
- **XXE in SAML:** inject a DOCTYPE/entity in the SAML message (→ `xxe`).
- **Replay / binding flaws:** missing `NotOnOrAfter`/`InResponseTo`/`Recipient`/audience checks → replay or cross-SP reuse; IdP confusion.
- **Certificate confusion:** SP trusts a self-signed/attacker cert embedded in the message.
## Method
Capture a SAML Response (SAML Raider / Burp), then test each manipulation against the SP, confirming it authenticates as a different/privileged user.
## Escalation
Forged/altered assertion → authenticate as any user (incl. admin) → full SSO account takeover across connected SPs.
## Backend
Use the preferred Kali path (native Kali / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP) or a headless browser for client-side steps; Windows-local only as last resort. See `zazy-orchestrator`.
## Verification (background, before reporting)
Re-confirm every candidate independently (second account/session, replay, or OAST) before marking CONFIRMED. Report true positives only; hold back anything not reproduced.
## Evidence
The manipulated SAML Response, the SP accepting it, and the impersonated privileged session.