Parameter discovery
- Noise
- Light active
- Reads
urls/clean.txtjs/xnl-params.txtjs/endpoints.txt- Writes
params/known.txtparams/gf/params/hidden.txt
Scope checkActive phase. Check the program policy first. Send traffic only to in-scope assets, at the rate the program allows.
Parameters are where input enters the app, so they are where most bugs live. This phase answers two questions:
- Which parameters does each endpoint already use? Archives and JS tell you.
- Which parameters does it accept but never show? Brute force tells you. A hidden
debug=1,admin=trueorcallback=is a classic find.
| Tool | Noise | Role | Status |
|---|---|---|---|
| ParamSpider | Passive | Pulls parameterised URLs from the Wayback Machine | Maintained, rewritten in 2023 |
| gf with Gf-Patterns | Passive | Greps URL lists for parameters that fit a bug class. Local only | Works |
| Arjun | Light active | Finds hidden GET, POST, JSON and XML parameters by brute force, sends few requests per endpoint | Maintained |
| x8 | Light active | Fast hidden parameter and header discovery in Rust | Maintained |
| kxss, Gxss | Light active | Replay URLs and report which parameters reflect into the response | Maintained |
What a parameter record proves
Section titled “What a parameter record proves”Archived debug flag
Section titled “Archived debug flag”https://app.example.com/api/v1/reports?format=pdf&user_id=104&debug=1ParamSpider stored that URL from the Wayback Machine. Someone sent format, user_id, and debug to this route when the archive crawled it. It does not mean the current build still reads debug, or that the route is public. Replay the URL with and without debug=1. Compare status, length, and body. A stack trace or extra JSON fields means the flag still does something.
Hidden role field
Section titled “Hidden role field”POST https://app.example.com/api/v2/account/profile {"role":"admin"}Arjun reported role because the JSON response changed when that field was present. The body parser noticed it. It does not mean the database stored a new role. Send the update with your test account, then GET the profile. If the elevated role stuck, you have mass assignment. If the server returns an error or ignores the field, drop it.
gf SSRF line
Section titled “gf SSRF line”https://app.example.com/proxy/fetch?url=https://static.example.com/img/logo.pnggf ssrf matched because the parameter is named url. It does not mean the server fetches that URL. The page may only use it in an image tag. Most url= parameters are fine. Confirm a server-side fetch with an out-of-band host from phase 16.
Convincing duds
Section titled “Convincing duds”Cache buster
Section titled “Cache buster”_, timestamp, cb, and v change a cache header or the length of a cached body. The handler did not gain a new input. Drop them.
Echo of every key
Section titled “Echo of every key”The app copies every query parameter into a hidden field or a meta tag. The fuzzer then marks the whole wordlist as real parameters. Compare the body. If your string only appears where every other string appears, it is not a parameter the server uses.
Firewall page as a hit
Section titled “Firewall page as a hit”The fuzzer trips a block, and later names all return 403 or a challenge page. That status change is the block, not a new parameter. Stop, lower the rate, and rerun the names that mattered.
JSON that echoes unknown keys
Section titled “JSON that echoes unknown keys”The API returns the object you posted, including keys it never stores. A reflected key is not a saved field. Read it back with a separate GET.
Trade-offs
Section titled “Trade-offs”Arjun packs many names into a few large requests, then splits the ones that change the response. A server or firewall that rejects a long query string drops the whole bundle, and Arjun reports nothing. If a worthwhile endpoint returns 414 or 403 only on the bundled request, switch that endpoint to x8 with a short list.
Names from the target’s own JavaScript and archives beat a generic list. burp-parameter-names.txt has id and search. params/known.txt has tenant_id and org_slug, which the generic list never heard of.
Step by step
Section titled “Step by step”-
Mine archives with ParamSpider. It writes to
results/<domain>.txtin the current folder, with values replaced by a placeholder.Terminal window # Collect archived URLs that have parametersparamspider -d example.com && mv results/example.com.txt params/paramspider.txt -
Count parameter names across everything you have. The common names tell you how the app is built; the rare ones are often the interesting ones.
Terminal window # Most common parameter names across all URLscat urls/clean.txt params/paramspider.txt | unfurl keys | sort | uniq -c | sort -rn > params/key-counts.txtTerminal window # A deduplicated list of every name seen, plus names from JScat <(awk '{print $2}' params/key-counts.txt) js/xnl-params.txt 2>/dev/null | sort -u > params/known.txt -
Sort URLs by bug class with gf. Each pattern matches parameter names commonly linked to a bug type. These are leads, not findings.
Terminal window # One file per bug classmkdir -p params/gffor p in xss sqli ssrf redirect lfi idor rce ssti; docat urls/clean.txt params/paramspider.txt | gf "$p" | sort -u > "params/gf/$p.txt"doneTerminal window # How many leads per classwc -l params/gf/*.txt -
Check which parameters reflect. A
gf xssmatch (gf is a pattern filter, XSS is cross-site scripting) only means the name looked interesting. kxss and Gxss replay each URL, mark which parameters echo back into the response, and note which special characters survive. This narrows the XSS work you carry into vulnerability hunting.Terminal window # Report reflected parameters and unfiltered characters from the xss lead listcat params/gf/xss.txt | kxss | tee params/reflected.txtTerminal window # Gxss does the same with a canary token and a reflection grepcat params/gf/xss.txt | Gxss | tee params/gxss.txtA reflection is not yet a bug. It is the point where manual XSS testing starts; see the injection chapter in vulnerability hunting.
-
Find hidden parameters with Arjun. Pick endpoints that matter: search, export, profile update, anything in
urls/api.txt. Arjun sends a few large requests per endpoint, then narrows down.Terminal window # Hidden GET parameters on one endpoint, gentle modearjun -u https://app.example.com/api/search -m GET --stable -oT params/arjun-search.txtTerminal window # Hidden JSON body parameters on a POST endpointarjun -u https://app.example.com/api/profile -m JSON --stable -oT params/arjun-profile.txtTerminal window # Many endpoints from a filearjun -i params/endpoints-to-test.txt -m GET --stable -oJ params/arjun.json -
Cross-check with x8. It is fast and also tests headers. Use the target-specific list from JS together with a general list.
Terminal window # Merge a general parameter list with names seen on this targetcat ~/wordlists/SecLists/Discovery/Web-Content/burp-parameter-names.txt params/known.txt | sort -u > params/wordlist.txtTerminal window # Hidden query parameters on one endpointx8 -u "https://app.example.com/api/search" -w params/wordlist.txtTerminal window # Hidden headers on the same endpointx8 -u "https://app.example.com/api/search" --headers -w ~/wordlists/SecLists/Discovery/Web-Content/BurpSuite-ParamMiner/lowercase-headers -
Record what you found in
params/hidden.txtasendpoint<TAB>parameter<TAB>what changed.
How the output feeds the next phase
Section titled “How the output feeds the next phase”params/gf/*.txtare reading lists for manual testing of each bug class.params/known.txtmakes a better wordlist for parameter fuzzing in phase 11 than any generic list.- Endpoints with hidden parameters go to the top of your manual testing queue.
Common mistakes
Section titled “Common mistakes”- Treating gf output as vulnerabilities.
gf ssrfmatches anyurl=parameter, most of which are fine. - Running Arjun on 5,000 endpoints at default settings. Pick the endpoints that matter.
- Using only generic wordlists. Names from the target’s own JS hit far more often.
- Ignoring JSON bodies. Many APIs ignore query strings and only read JSON.
- Hidden parameters that change the response:
debug,test,admin,internal,preview,raw,format,callback,jsonp - URL-taking parameters for server-side request forgery (SSRF) and open redirect:
url,uri,next,return,redirect_uri,webhook,feed,image_url - File and template parameters for local file inclusion (LFI) and server-side template injection (SSTI):
file,path,page,template,view,include - ID parameters on endpoints that return other users’ data for insecure direct object reference (IDOR) testing
- Parameters that exist in archives but no longer in the UI
Next, brute force paths that nothing links to in phase 11.
Open local graph around this page
Linked from here
- Recon & Target SelectionIDOR Hunting
- SPA Calibration in Content DiscoveryRecon Atlas
- Verifying JavaScript endpointsRecon Atlas
- Continuous monitoringRecon Atlas
- URL and endpoint discoveryRecon Atlas
- JavaScript analysisRecon Atlas
- Content and API discoveryRecon Atlas
- Vulnerability scanningRecon Atlas
- Out-of-band testing helpersRecon Atlas
- Synthetic program profilesRecon Atlas
Recon AtlasFor authorized testing only. Your scope is the map edge.