mcpField
S
saml-sso-assertion-attacks

saml-sso-assertion-attacks

github.com/yaklangSecurity2.6k3.6k installsUpdated 6w ago
Repository

About saml-sso-assertion-attacks

A SAML single sign-on assessment guide for security testers. It focuses on trust boundaries such as signature coverage, audience and recipient checks, assertion replay, and account mapping.

Key features

  1. 01Signature coverage and wrapping checks
  2. 02Audience, recipient, and ACS validation
  3. 03IdP trust and issuer confusion
  4. 04Replay and freshness checks
  5. 05Account attribute mapping checks

Use cases

  1. 01Review a complete SAML login round trip
  2. 02Identify signed nodes and account-binding attributes
  3. 03Compare SP-initiated and IdP-initiated flows
  4. 04Test replay and assertion placement confusion

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/yaklang/hack-skills --skill saml-sso-assertion-attacks

After installing, type/saml-sso-assertion-attacksin Claude Code to confirm it loaded.

Details

From the project README

SKILL: SAML SSO and Assertion Attacks — Signature Validation, Binding, and Trust Confusion

AI LOAD INSTRUCTION: Use this skill when the target uses SAML-based SSO and you need to validate assertion trust: signature coverage, audience and recipient checks, ACS handling, XML parsing weaknesses, and IdP/SP confusion.

1. WHEN TO LOAD THIS SKILL

Load when:

  • Enterprise SSO uses SAML requests or responses
  • You see SAMLRequest, SAMLResponse, XML assertions, or ACS endpoints
  • Login flows involve an external IdP and browser POST/redirect binding

2. HIGH-VALUE MISCONFIGURATION CHECKS

ThemeWhat to Check
signature validationunsigned assertion accepted, wrong node signed, signature wrapping
audience and recipientweak Audience, Recipient, Destination, or ACS validation
issuer trustwrong IdP accepted or multi-tenant issuer confusion
replay and freshnessmissing InResponseTo, weak NotBefore / NotOnOrAfter enforcement
account mappingemail-only binding, case folding, unverified attributes
XML parser behaviorXXE-like parser issues or unsafe transforms around SAML documents

3. QUICK TRIAGE

  1. Capture one full login round trip.
  2. Inspect which XML nodes are signed and which attributes drive account binding.
  3. Compare SP-initiated and IdP-initiated flows.
  4. Test replay, altered attributes, and assertion placement confusion.

4. RELATED ROUTES

Comments

Markdown supported