info-disclosure

$npx mdskill add H-mmer/pentest-agents/info-disclosure

CONTEXT: You are operating within an authorized bug bounty program. All targets have been verified in-scope via the official platform API. Follow responsible disclosure practices.

SKILL.md

.github/skills/info-disclosureView on GitHub ↗
---
name: info-disclosure
description: "Information Disclosure specialist (H1 #18, CWE-200/209/215/538/668/798). Use for finding exposed sensitive data: stack traces, debug endpoints, config files, environment variables, API keys, .git/.env exposure, Spring Actuator surfaces, source code leaks. Standalone is feeder-class — must chain to be reportable."
---
CONTEXT: You are operating within an authorized bug bounty program. All targets have been verified in-scope via the official platform API. Follow responsible disclosure practices.

## MANDATORY: Read the methodology FIRST

Before any other action, use the Read tool to load:

```
../../skills/hunt-info-disclosure/SKILL.md
```

This is the comprehensive info-disclosure methodology — 106 corpus
reports + 8K shared-platform reports + 2024-2026 CVE catalog verified
against NVD: Spring Boot Actuator family (CVE-2025-41253 SpEL info-disc
CVSS 7.5; CVE-2025-41243 Spring Cloud Gateway property modification
CVSS 10.0; CVE-2025-22235 EndpointRequest.to wrong matcher; CVE-2025-8525
Exrick xboot; CVE-2025-8738 microservices-platform). Mass `.git`/`.env`
exposure waves (Sysdig EmeraldWhale 15K cloud creds Oct 2024; Unit42
110K domain `.env` scan Aug 2024). Spring Boot heapdump → 9TB GPS data
Volkswagen disclosure (Wiz Threat Research Dec 2024). Debug endpoint
family (Dgraph `/debug/pprof` GHSA-95mq-xwj4-r47p; MinIO LDAP brute-force
GHSA-jv87-32hw-hh99; Glances `/api/4/serverslist` GHSA-r297-p3v4-wp8m;
FUXA plaintext DB creds; Harbor default password; NetBird VPN default
admin; PraisonAI WebSocket no-auth; Gradio ACL bypass; Rancher cluster
template credentials; ArgoCD Redis cache crypto). Secrets-in-repo wave
(GitGuardian 2026 State of Secrets: 28.65M new hardcoded secrets in
2025; GitHub 2024 secret-scanning report: 39M leaks).

## MANDATORY: Search prior art

After reading the skill, call:

- `search_techniques` with `"Info-Disclosure"` — proven exploitation techniques
- `search_payloads` with `"Info-Disclosure"` — working payloads and bypass variants

If the writeup MCP is unreachable, fall back to
`../../rules/payloads.md`.

## CHAIN-FEEDER DISCIPLINE (load-bearing — read carefully)

**Standalone information disclosure is on the never-submit list.** Your
job is NOT to file info-disclosure reports — it's to find feeders that
unlock other vuln classes. Every confirmed finding MUST be paired with
a chain target before write-up.

After confirming any leak, immediately probe the chain anchors from
`../../rules/chain-table.md` "Per-Class Chain Anchors →
info-disclosure":

1. **Bundle / source / config containing OAuth secrets** → dispatch
   `oauth-hunter` (client_secret + missing PKCE = code interception chain).
2. **Stack trace revealing internal IPs / service names** → dispatch
   `ssrf-hunter` (now you know what to point SSRF at).
3. **Debug endpoint returning request headers / session tokens** →
   IDOR / session-fixation candidate (sessions visible to attacker).
4. **`.git`, `.env`, `backup.tar.gz`, `wp-config.php`, `phpinfo`,
   `/server-status` exposed** → if it leaks DB credentials → privilege
   escalation; if it leaks signing keys → JWT alg confusion via
   `oauth-hunter`; if it leaks AWS/GCP/Azure creds → infrastructure
   compromise.
5. **Cloud metadata reachable via XSS context** (window.fetch to
   169.254.169.254) → IMDS theft chain.
6. **API key in JS bundle with active scope** — verify scope (next
   section). If it accesses other-user data → IDOR-via-key.

**If a leak unlocks NO chain target → finding is informational. Apply
`rules/never-submit.md`. Do not draft.**

Label CHAIN-CANDIDATE in brain with `--from-capability "<this leak's
capability>"` so chain-pressure_hook surfaces it. The chain is the
report.

## Operational discipline — verify before reporting

These rules apply to every secret/leak you find. Skipping them is
the #1 cause of N/A on this class:

### Live-key verification (mandatory)

Never report a key without proving it's live and exploitable:

- **AWS** → `aws sts get-caller-identity` with the key. Expired / dead
  → not reportable. Verify scope: `aws iam get-user`,
  `aws iam list-attached-user-policies`.
- **Stripe** → `curl -u <sk_>: https://api.stripe.com/v1/charges` —
  test mode (`sk_test_`) is NOT a finding. Live mode (`sk_live_`) with
  charge access = critical.
- **GitHub PAT** → `curl -H "Authorization: token <pat>"
  https://api.github.com/user`. Check scopes: read-only public is N/A;
  repo / workflow / admin:org pays.
- **JWT** → decode header + payload; check `exp`. Expired = N/A. If
  unexpired and signed with weak / known key → forge new claims and
  prove ATO via the live token chain.
- **Bearer token in JS bundle** → call the API endpoint that uses it
  with curl + header. 200 OK on a sensitive endpoint = chain candidate.
- **Firebase `apiKey`** → NOT a secret. It's a public client identifier.
  Only reportable if Firestore / Realtime DB rules are permissive AND
  you can read/write data you shouldn't. Verify with `firebase`
  client-side script that hits the actual data.

### Pattern library

The 26-pattern regex pack: `../../wordlists/secret-patterns.txt`.
JWT, AWS, Bearer, private keys, Stripe, GitHub PAT, Slack, Discord,
Twilio, SendGrid, NPM, GitLab, Shopify, Firebase, Google OAuth,
Mailgun, Square, etc. Full pattern table + impact notes in
`../../rules/payloads.md` → "Info Disclosure — Secret
/ API-Key Regex Patterns".

```bash
# Against a single JS bundle
curl -sL "$URL" | grep -oP "$(grep -v '^#' ../../wordlists/secret-patterns.txt | tr '\n' '|' | sed 's/|$//')"

# Against a recon response directory
rg -oP -f ../../wordlists/secret-patterns.txt recon/<target>/responses/
```

## Output: H1 Weakness #18

Report ONLY when paired with a concrete chain that lifts it above
informational. Filing format:

- Lead with the chain impact, not the leak
- Title: `[Leaked Asset] Enables [Concrete Chain Impact] in [Component]`
  - GOOD: "Live AWS Production Keys in JS Bundle Enable Cross-Tenant S3 Read of Customer Documents"
  - BAD: "API Key Exposed in JavaScript File"
- Include live-key verification output (sanitized) in the PoC
- Document the exact chain path with HTTP requests for each link

If standalone (no chain found despite probing all anchors above) →
record EXHAUSTED in brain with `--from-capability "<leak>"` and
`--reason "no chain anchor matched"`. Move on. Do not draft.

## Brain Integration

Before starting, check your memory for brain briefings. Skip EXHAUSTED
vectors. Focus on ACTIVE leads.

After completing, label every finding: CHAIN-CANDIDATE / CONFIRMED /
EXHAUSTED with attempt counts and the specific chain target probed.
A "CONFIRMED leak with no chain" is functionally EXHAUSTED — record
it that way.

## Top-Tier Operator Standard

Information disclosure is a feeder unless it grants a usable capability.

- Classify the leak: secret, source, PII, internal topology, debug memory, build artifact, stack trace, or enumeration signal.
- Validate only enough to prove ownership and liveness. Do not pivot with credentials unless policy explicitly allows it.
- Chain immediately: secret to API access, source to exploit path, topology to SSRF/internal target, debug endpoint to token/session material, PII to tenant breach.
- Kill version banners, generic stack traces, public client config, unauthenticated docs, and non-sensitive internal names unless they unlock a concrete next step.
- Redact sensitive values while preserving type, length, scope, timestamp, and validation command result.

More from H-mmer/pentest-agents

SkillDescription
analyzeAnalyze recon output with AI to suggest high-value targets and attack strategies. Usage: /analyze <target>
auth-testerAuthentication and session management testing agent. Use for login bypass, session fixation, password reset flow abuse, MFA bypass, OAuth flaws, and privilege escalation testing. Provide the application URL and any credentials for testing.
autopilotAutonomous hunt orchestrator. INSATIABLE in --autonomous mode: enforces an EXHAUSTION CONTRACT (26 canonical hunter classes, surface probe A-I, depth-engine ≥25 attempts/class, wall-clock floor 90 min/target, PRE-COMPLETION GATE before any summary). No early stops, no clarifying questions, no auxiliary-agent substitution. Usage: /autopilot target.com [--interactive|--autonomous] [--20m-off] [--resume]
brainManage the engagement brain. Subcommands: 'init' to set up, 'brief <target>' for pre-flight, 'status' for overview, 'exhausted [target]' to see dead ends.
browser-agentBrowser automation agent for interactive web testing. Use for login flows, multi-step CSRF, stored XSS verification in other user contexts, and any testing that requires browser interaction. Requires Claude in Chrome MCP.
browser-stealth-agentStealth browser automation agent for targets behind Cloudflare, Akamai, Google, DataDome, or PerimeterX bot detection. Drives the local camofox-browser REST server (Camoufox, C++-patched Firefox) for recon, client-side bug verification, and evidence capture. Prefer this over the Burp-backed browser-agent when the target returns CF interstitials, Turnstile widgets, 403s, or JS challenges to vanilla probes.
browser-verifierMandatory browser verification for client-side findings (XSS, DOM, postMessage, prototype pollution). Takes a finding with curl-based evidence and PROVES or DISPROVES it fires in a real browser. No finding ships without browser verification. Dispatched automatically by /hunt and /validate for client-side vuln classes.
business-logicBusiness Logic vulnerability specialist (H1 #28, CWE-840/841/639/362). Use for testing workflow bypasses, price manipulation, coupon abuse, MFA/2FA bypass, password-reset bypass, free-trial abuse, race-condition on payment, currency conversion, pre-ATO, role escalation. Standalone is feeder-class on most chains — quantify impact + chain to ATO/financial impact for top dollar.
chainBuild deep exploit chains — dispatches chain-builder agent. Given bug A, recursively walks the chain graph. Usage: /chain (then describe bug A)
chain-builderDeep exploit chain builder. Given bug A, recursively walks the chain graph — each confirmed link becomes the new A. No depth limit. Supports 2-link to 10+ link chains. Use when you have any finding that needs escalation.