Skip to content
Back to skills

Saml

ASecurity

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.

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 17, 2026
securityrustawsbackend

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill saml --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Saml?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Saml
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-saml/badge)](https://www.skillsdirectory.com/skills/anandjogawade-saml)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.