saml-sso-assertion-attacks

Detect SAML SSO assertion, signature, and routing vulnerabilities.

2|Updated May 15, 2026
One-click install
npx skills add https://github.com/lNwNl/Methodos --skill saml-sso-assertion-attacks-lnwnl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: saml-sso-assertion-attacks
Source: https://github.com/lNwNl/Methodos/tree/main/docker/opencode/skills/saml-sso-assertion-attacks
Command: npx skills add https://github.com/lNwNl/Methodos --skill saml-sso-assertion-attacks-lnwnl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you identify weaknesses in SAML SSO implementations where the application incorrectly trusts SAML assertions, signatures, bindings, or XML parsing behavior, leading to login bypasses or account impersonation.

Core Features & Use Cases

  • Signature validation & wrapping checks: Validate which XML nodes are actually covered by signatures and detect common signature wrapping and coverage gaps.
  • Audience/recipient/ACS enforcement: Check that Audience, Recipient/Destination, and ACS handling are strictly validated for the correct SP and flow type.
  • Freshness and replay resistance: Confirm enforcement of InResponseTo and time-based constraints like NotBefore / NotOnOrAfter / NotOnOrAfter.
  • Account mapping safety: Expose risky bindings such as email-only mapping, case/normalization issues, or reliance on unverified attributes.

Quick Start

Use the saml-sso-assertion-attacks skill when you have a captured SAMLResponse/SAMLRequest XML and you need to verify signature coverage, audience/recipient checks, ACS correctness, and XML trust boundaries.

Frequently Asked Questions about saml-sso-assertion-attacks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does SAML signature wrapping bypass authentication in SSO implementations?

SAML signature wrapping bypasses authentication when an application validates a signature on one XML node but trusts unsigned assertion content for user mapping. This Skill detects such signature coverage gaps and XML parser trust boundary weaknesses.

How do I validate SAMLResponse assertions for replay attacks and freshness?

To validate SAMLResponse assertions for replay attacks, enforce InResponseTo constraints and verify time-based conditions like NotBefore and NotOnOrAfter. This Skill checks whether your implementation properly enforces freshness and replay resistance rules.

What is audience restriction in SAML and why does ACS endpoint validation matter?

Audience restriction in SAML ensures assertions target only the intended Service Provider, while ACS validation prevents routing to malicious endpoints. This Skill verifies Audience, Recipient, and Destination fields are strictly enforced for SP and IdP flows.

Can I test both SP-initiated and IdP-initiated SAML login flows for trust confusion vulnerabilities?

Yes, you can test both SP-initiated and IdP-initiated SAML flows for trust confusion vulnerabilities. This Skill examines SAMLRequest and SAMLResponse XML targeting ACS endpoints to detect improper trust of assertion contents, signatures, and routing fields.

Why does email-only account mapping in SAML lead to account impersonation?

Email-only account mapping leads to impersonation when applications bind identities to unverified attributes without strict case or normalization checks. This Skill exposes risky account mapping bindings and reliance on unverified SAML assertion attributes.

What are the limitations of relying on XML signature validation alone for SAML security?

Relying on XML signature validation alone for SAML security is limited because it does not prevent signature wrapping, assertion replay, or audience restriction bypasses. This Skill stress-tests the complete trust boundary, including routing fields and freshness rules, beyond basic signature checks.