Skip to content
PHASE 10/16OP KEYHOLE

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.

5 min readRecon Atlas

Parameters are where input enters the app, so they are where most bugs live. This phase answers two questions:

  1. Which parameters does each endpoint already use? Archives and JS tell you.
  2. Which parameters does it accept but never show? Brute force tells you. A hidden debug=1, admin=true or callback= 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
https://app.example.com/api/v1/reports?format=pdf&user_id=104&debug=1

ParamSpider 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.

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.

https://app.example.com/proxy/fetch?url=https://static.example.com/img/logo.png

gf 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.

_, 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.

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.

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.

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.

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.

  1. Mine archives with ParamSpider. It writes to results/<domain>.txt in the current folder, with values replaced by a placeholder.

    Terminal window
    # Collect archived URLs that have parameters
    paramspider -d example.com && mv results/example.com.txt params/paramspider.txt
  2. 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 URLs
    cat urls/clean.txt params/paramspider.txt | unfurl keys | sort | uniq -c | sort -rn > params/key-counts.txt
    Terminal window
    # A deduplicated list of every name seen, plus names from JS
    cat <(awk '{print $2}' params/key-counts.txt) js/xnl-params.txt 2>/dev/null | sort -u > params/known.txt
  3. 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 class
    mkdir -p params/gf
    for p in xss sqli ssrf redirect lfi idor rce ssti; do
    cat urls/clean.txt params/paramspider.txt | gf "$p" | sort -u > "params/gf/$p.txt"
    done
    Terminal window
    # How many leads per class
    wc -l params/gf/*.txt
  4. Check which parameters reflect. A gf xss match (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 list
    cat params/gf/xss.txt | kxss | tee params/reflected.txt
    Terminal window
    # Gxss does the same with a canary token and a reflection grep
    cat params/gf/xss.txt | Gxss | tee params/gxss.txt

    A reflection is not yet a bug. It is the point where manual XSS testing starts; see the injection chapter in vulnerability hunting.

  5. 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 mode
    arjun -u https://app.example.com/api/search -m GET --stable -oT params/arjun-search.txt
    Terminal window
    # Hidden JSON body parameters on a POST endpoint
    arjun -u https://app.example.com/api/profile -m JSON --stable -oT params/arjun-profile.txt
    Terminal window
    # Many endpoints from a file
    arjun -i params/endpoints-to-test.txt -m GET --stable -oJ params/arjun.json
  6. 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 target
    cat ~/wordlists/SecLists/Discovery/Web-Content/burp-parameter-names.txt params/known.txt | sort -u > params/wordlist.txt
    Terminal window
    # Hidden query parameters on one endpoint
    x8 -u "https://app.example.com/api/search" -w params/wordlist.txt
    Terminal window
    # Hidden headers on the same endpoint
    x8 -u "https://app.example.com/api/search" --headers -w ~/wordlists/SecLists/Discovery/Web-Content/BurpSuite-ParamMiner/lowercase-headers
  7. Record what you found in params/hidden.txt as endpoint<TAB>parameter<TAB>what changed.

  • params/gf/*.txt are reading lists for manual testing of each bug class.
  • params/known.txt makes 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.
  • Treating gf output as vulnerabilities. gf ssrf matches any url= 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.
What to look for
  • 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.

Connections10 backlinks · 3 outgoing · 1 cross-guideFull graph →
Open local graph around this page
Open full graph →
Click a node to open · Drag to reposition · Scroll to zoom

Recon AtlasFor authorized testing only. Your scope is the map edge.