Skip to content
Security
Command

/cors

Scan an endpoint for CORS misconfiguration — arbitrary-origin reflection, null-origin trust, credential exposure, suffix/prefix regex bypass, scheme downgrade. Usage: /cors <url> [--cookie "session=..."] | /cors -l urls.txt

From plugin
agentic-bug-hunter
5.8k42 skills9 agents42 commands3 hooks
$ npx -y skills add awarexone/agentic-bug-hunter --agent claude-code

Command definition

cors.md
description: Scan an endpoint for CORS misconfiguration — arbitrary-origin reflection, null-origin trust, credential exposure, suffix/prefix regex bypass, scheme downgrade. Usage: /cors <url> [--cookie "session=..."] | /cors -l urls.txt

/cors

Find CORS misconfigurations that let an attacker page read authenticated responses cross-origin. Sends a battery of crafted `Origin` headers and inspects the `Access-Control-Allow-Origin` / `Access-Control-Allow-Credentials` reply.

Usage

/cors https://api.target.com/me
/cors https://api.target.com/me --cookie "session=abcd1234"
/cors -l recon/target.com/urls/api-endpoints.txt --json

Run directly:

bughunter/tools/cors_scanner.py https://api.target.com/me --cookie "session=..."

What it tests

| Origin sent | Detects | |---|---| | `https://evil.example` | arbitrary-origin reflection | | `null` | sandboxed-iframe / data: URI trust | | `https://api.target.com.evil.example` | weak `endsWith` (suffix) regex | | `https://notapi.target.com` | weak `startsWith` (prefix) regex | | `https://attacker.api.target.com` | blanket subdomain trust (chains w/ takeover) | | `http://api.target.com` | https→http scheme downgrade |

Severity

  • **CRITICAL** — reflects attacker origin **with** `ACAC: true` (cookie-auth cross-origin read).
  • **HIGH** — `null` origin trusted with credentials.
  • **MEDIUM** — reflects attacker origin without credentials (exploitable when auth is a non-cookie token), or trusts http downgrade.
  • **INFO** — `ACAO: *` with no credentials (usually intended public CORS).

Why a credentialed reflection is the win

`ACAO: <attacker>` + `ACAC: true` means `fetch(url, {credentials:'include'})` from an attacker page returns the victim's authenticated response body — full account-data exfil. Pass `--cookie` with a live session to confirm the credentialed path.

Chain

CORS data-read → harvest CSRF token / PII / API keys from the response → escalate to ATO. A subdomain-trust CORS bug + a [subdomain takeover](takeover.md) on that subdomain = a clean credentialed-read exploit.

Read more
@awarexone
Ships withagentic-bug-hunter

AI-powered bug bounty hunting toolkit that works with or without subscription.

5.8k19 skills9 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
5.8k
Star history of awarexone/agentic-bug-hunter on GitHub, a chart by star-history.com

Other commands on agentic-bug-hunter.

arsenal

arsenal

Command

Show which external bug-bounty tools are installed on this machine and print install hints for the missing ones. Curated from…

autopilot

autopilot

Command

Run autonomous hunt loop on a target — scope check → recon → rank surface → hunt → validate → report with configurable…

breach-check

breach-check

Command

HIBP k-anonymity check on a password wordlist. Enriches each password with its breach count, ranks DESC. Free API (no key), only…

bypass-403

bypass-403

Command

Probe a 403/401 endpoint with the most-paid bypass tricks (header injection, path encoding, method swap, WAF fingerprint,…

chain

chain

Command

Build an exploit chain — given bug A, finds B and C to combine for higher severity and payout. Knows common chain patterns:…

cloud-recon

cloud-recon

Command

Sweep cloud assets for a target — public S3/Azure/GCP buckets via S3Scanner and cloud_enum, plus CloudFlare-bypassed origin IPs…

More commands from other plugins.

deslop-reborn

deslop-reborn

Command

One iteration of the IronClaw Reborn de-slop loop — take ONE Reborn crate, fan out parallel review sub-agents (thermo-nuclear…

@nearai@nearaiInstall Command
audit

audit

Command

Audit a file, directory, or whole repo for insecure default configuration: fallback secrets, default credentials, fail-open…

@trailofbits@trailofbitsInstall Command
arsenal

arsenal

Command

Show which external bug-bounty tools are installed on this machine and print install hints for the missing ones. Curated from…

@shuvonsec@shuvonsecInstall Command