Recon — map before you attack¶
← Back to index · Read the mindset page first.
Recon on BSCP has one goal: a complete list of every place your input reaches the application — before you exploit any of it. You can't pick the right attack until you know every door, and the bug is frequently behind the door you didn't notice. Fifteen minutes of mapping saves an hour of attacking the wrong thing.
The objective you're working toward¶
Each app is a staircase — keep the end in view so your recon is aimed:
| Stage | Goal | What you're hunting in recon |
|---|---|---|
| 1 — Foothold | any user session | inputs that reflect/inject; a login; a victim-facing feature |
| 2 — Privilege escalation | reach /admin |
how admin is gated (role in a cookie/JWT? a shallow check? an IDOR?) |
| 3 — Data exfiltration | read /home/carlos/secret |
an admin feature that touches the filesystem/OS (template, file, query, upload) |
Work them in order — each unlocks the next — but notice Stage-2 and Stage-3 surfaces while you're doing Stage-1 recon, so you're not starting blind later.
1. Map the surface¶
Walk the entire app with Burp proxying so the site map fills in, logged out and logged in (authenticated pages differ). For every feature, write down every parameter, header, and cookie your input touches — this list is your attack surface.
How to read what you're mapping: you're looking for inputs that end up somewhere interesting — reflected in a page, stored and shown to others, used in a query, written to a log, or driving a redirect/link. A search box, a comment, a profile field, a Referer the app echoes, a second hidden parameter — each is a candidate. The one people miss is usually a header or a JSON field the UI never exposes.
2. Read the client-side code¶
Why: the JavaScript is the app telling you how it works. DOM XSS sinks (innerHTML, eval, location), hidden API endpoints, and parameter names all live in the JS — and they're invisible from the rendered page.
- read every <script src> file and inline script
- note DOM sinks and the sources that feed them
- check /robots.txt, comments in page source, and any exposed source maps
3. Content discovery¶
Pages aren't deliberately hidden on BSCP, but the hints to them are scattered. Light directory discovery plus reading links/source surfaces the admin panel, API routes, and backup files. Don't brute-force blindly for hours — if you're guessing directory names, you've probably misread the challenge; the path is usually linked or hinted somewhere you didn't read.
4. Targeted scanning (not a full scan)¶
Why not a full scan: it won't finish in a four-hour exam, and it buries the signal. Right-click individual requests → Scan, aimed at the loudest insertion points — search, account/profile updates, login, uploads, and anything carrying serialized, XML, or JSON-merge data. Load Param Miner (unkeyed headers), HTTP Request Smuggler, and use DOM Invader in Burp's browser.
How to use the results: treat findings as leads to confirm manually, not answers. The exam wants exploitation, not a scanner report — a scanner flag tells you where to look; you prove and weaponise it by hand.
The per-app checklist¶
[ ] whole app browsed logged-out AND logged-in; site map populated
[ ] every insertion point listed (params, headers, cookies, JSON fields)
[ ] JS read for DOM sinks + hidden endpoints
[ ] baseline response captured for each key request
[ ] key requests scanned; Param Miner / Smuggler / DOM Invader loaded
[ ] noted how /admin is gated (for Stage 2) and what admin features touch (for Stage 3)