Bounty web

From 26zl/cybersec-toolkit · View interactive version

Bounty web is an AI agent skill from the GitHub repository 26zl/cybersec-toolkit. Use during the testing phase of a web application bug bounty. Provides OWASP-aligned attack catalog, payload sources, and tool ordering for SQLi, XSS, SSRF, SSTI, IDOR, auth, race conditions, file upload, deserialization. Triggers on "bounty web", "test this app", "web app testing", "h1 web target".

How to use this skill

Skill file

Bug bounty web testing methodology

Pre-flight. Run authorization-gate and read the program policy first: confirm that automated scanning, brute force and rate-limit testing are allowed, and stay inside scope. Start with suggest_for_bounty or guided_assessment. Commands below are CLI notation: run them with run_tool/run_pipeline using registry names (list_tools), and run_script only for real logic. If policy blocks a command (for example CYBERSEC_MCP_ALLOW_EXTERNAL=0), ask the operator to fix the configuration and restart; do not fall back to the client shell. A tool that is not in the registry is a recommendation to the user (approval-gated install), not a bare command.

Build on top of bounty-recon results. Tool-first: use SecLists wordlists (already cloned in this installer) before writing custom payloads.

1. Authentication & session

| Test | How |

| --- | --- |

| Default creds | Only if the program allows credential testing: one documented vendor-default pair per account, no lists |

| User enum (different errors) | manual login form probing |

| Account takeover via password reset | inspect token entropy, host header injection on reset email |

| Session fixation | check if session ID is set before login |

| Session predictability | gather 50+ tokens, run statistical analysis |

| MFA bypass | response manipulation (401→200), brute the OTP, race the verify endpoint |

| Login CSRF | missing CSRF token on /login |

| Logout / impersonation flaws | swap session cookies, replay |

2. Authorization (highest-paying class)

Methodology: enumerate all endpoints with low-privilege user, then re-request each with no auth, expired token, and other-user token. Diff responses.

3. Input handling

XSS

# DOM/reflected discovery
run_tool("dalfox", "url https://target.com/?q=test")
run_tool("XSStrike", "-u https://target.com/?q=test")

# Stored — manual; create accounts and probe every input field

CSP analysis: parse Content-Security-Policy header — look for unsafe-inline, unsafe-eval, wildcards, exploitable allowlisted CDNs (*.googleapis.com allows JSONP).

SQLi

run_tool("sqlmap", "-u https://target.com/page?id=1 --batch --level=3 --risk=1 --random-agent")

# When WAF blocks
# run_tool blocks --tamper. Raise --level/--risk within program rules, adjust encoding by hand,
# or ask the operator for an approved script via run_script (needs CYBERSEC_MCP_ALLOW_SCRIPTS=1)

SSRF

SSTI

{{7*7}} → if 49, identify engine, then RCE payload.

XXE

<!DOCTYPE foo [<!ENTITY xxe SYSTEM "file:///etc/passwd">]>
<foo>&xxe;</foo>

Try blind XXE with out-of-band exfil (Burp Collaborator, your own server).

4. Business logic

These pay the highest because scanners can't find them. Always think:

Examples that have paid 5-figure bounties: race conditions on coupon redemption, integer over/underflow in price/quantity, refund-without-return, IDOR on transaction history.

5. File upload

Always try (in order):

  1. Plain .php/.asp/.jsp upload
  2. Double extension: file.php.jpg, file.jpg.php
  3. Less-common PHP: .phtml, .php5, .phar, .phps
  4. Null byte: file.php%00.jpg
  5. MIME spoof: Content-Type: image/jpeg on PHP body
  6. Magic byte prefix: GIF89a<?php ?>
  7. SVG with embedded JS (XSS / SSRF on render)
  8. ZIP slip / tar slip (path traversal in archive)
  9. ImageMagick CVE chain — try identify on uploaded image
  10. .htaccess upload to remap extensions

6. Deserialization

Detect: serialized blobs in cookies/parameters (O:8:"User":... PHP, rO0AB... Java, gASV Python pickle, ac ruby).

| Language | Tool |

| --- | --- |

| Java | ysoserial, marshalsec |

| .NET | ysoserial.net |

| PHP | phpggc |

| Python | manual pickle (__reduce__) |

| Ruby | manual + marshal |

| Node | node-serialize IIFE payload |

7. Candidate tools (check `list_tools`; unregistered ones need an approved install)

Recon: subfinder, httpx, katana, gau, waybackurls

Discovery: ffuf, gobuster, feroxbuster, dirsearch

Scanners: nuclei, nikto, arjun (param mining)

Specific: sqlmap, dalfox, xsstrike, commix, tplmap, jwt_tool

Wordlists: SecLists (cloned), PayloadsAllTheThings (cloned)

8. Reporting (do NOT skip)

Per finding:

Strip credentials from the report. Show that access works, not the credentials themselves.

After triage

Use the writeup-template skill for your own records.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.