The BSCP mindset & method¶
This is the most important page in the repo. Every other page is techniques; this one is how to think, because the exam doesn't test whether you know an XSS payload — it tests whether you can look at an unfamiliar app, figure out what's vulnerable and in what exact context, and chain three bugs into reading a file off the server. If you internalise one page, make it this one.
What the exam actually tests¶
Two web apps, each a staircase of three stages: get any user account → reach /admin → use admin to read /home/carlos/secret. You have four hours. The skill being graded isn't payload recall — it's reading the application: sending an input, studying exactly how it comes back, forming a theory about why, and testing it. Payloads are the easy part (the cheat sheet is even provided). Knowing which bug is present and what context your input lands in is the whole game.
So read every payload in this repo as a means to a decision: "what did that response tell me, and what does it make me try next?"
The one belief that carries you¶
When you're stuck, you've either misread the response or you haven't enumerated every insertion point. The answer is almost always in a response you've already seen or an input you haven't tested yet.
Stuck is not a signal to find an exotic payload. It's a signal to go back: re-read the response you skimmed, or test the parameter/header/cookie you ignored. The three-stage structure makes this concrete — if an exploit "won't work," you're very often standing on the wrong stair (you don't really have the admin session you think you do), not missing a cleverer payload.
Read the response, not the payload¶
This is the core BSCP skill and the one people skip. A payload is a question; the response is the answer, and it's usually sitting right there:
- Inject a unique marker first (
claude1337), then find every place it comes back. Does it reflect raw or HTML-encoded? In the body, an attribute, a script string, a JSON field? That single observation decides your entire XSS breakout — and people instead spray payloads blind and wonder why nothing fires. - Diff against a baseline. You can't tell a SQLi
'"did something" without knowing what a clean request returns. Capture the normal response (status, length, body) first; the difference is the signal. - Errors are gifts. A 500, a stack trace, a template error naming its engine, a different "invalid" message for a valid username — the app is telling you what it is. Read it.
- Encoded vs raw is the whole decision.
<coming back as<means you can't inject a tag — escape the current context instead. One character in the response changes your approach entirely.
If you take nothing else: inject, then read the response character by character before you reach for a payload.
Confirm before you build¶
The single most common wasted hour on BSCP is building an elaborate exploit against an assumption you never checked. The classic: a perfect XSS cookie-stealer against an HttpOnly session cookie — it can never work, and five minutes reading Set-Cookie would have told you. Generalise it:
- Confirm the bug fires with a trivial probe (
alert(document.domain), a Collaborator ping, a length diff) before wiring up exfil. Debug one unknown at a time. - Confirm what's actually stealable before building the stealer.
HttpOnly? Then steal a CSRF token and force an action instead of grabbing the cookie. - Confirm you're on the stair you think you are. "My admin exploit fails" — are you actually authenticated as admin, or did the session not stick?
Prefer non-interactive routes¶
Stage 1 often has several paths to a user account. A server-side route (SQLi dumping creds, a cache-poisoning or host-header trick) is faster and more reliable than crafting an XSS and waiting on the simulated victim to browse. Reach for the victim-dependent exploit only when the bug genuinely needs a victim. The exam rewards the reliable path.
Map every insertion point before attacking¶
Enumeration on BSCP means: find every place your input reaches the app before you start exploiting one. Walk the whole app with the proxy on. For each feature, list every parameter, header, and cookie your input touches — and read the JS, because DOM sinks and hidden endpoints live there. The bug is frequently in the input you didn't notice (the Referer the app logs, the second parameter on the search, the JSON field the UI never shows).
The stuck-protocol (what to do at a wall)¶
When ~15 minutes pass with no new information, run this instead of grinding payloads:
- Re-read the last response in full, slowly. The tell you need (an error, a reflected value, a header) is usually already on screen.
- Re-check which stair you're on. Confirm your current access level is real before blaming the exploit.
- Test an insertion point you skipped — a header, a cookie, a second parameter, a JSON field, a different content-type.
- Confirm your assumption. Is the cookie really not HttpOnly? Did the payload actually reach the sink? Add a Collaborator probe and prove execution.
- Switch to a non-interactive route if you've been waiting on the victim.
- Refetch a fresh CSRF token / re-baseline — stale tokens and a wrong baseline make everything read as "broken."
- Scan the one request you haven't scanned — let Burp's checks flag what you missed, then confirm it by hand.
If all seven turn up nothing, move to the other app — a fresh target resets your thinking, and you can come back.
Stages aren't locked to classes¶
SQLi might be your Stage-1 foothold (dump creds) or your Stage-3 file read (LOAD_FILE). XSS can take a user in Stage 1 or the admin in Stage 2. Don't think "this is the XSS stage" — think "what does this app's Stage-2 gate actually check, and which bug breaks that?" The playbook groups classes by where they usually earn their keep, not by a rule.
The checklist (so the method survives the clock)¶
[ ] mapped every insertion point (params, headers, cookies, JSON, JS sinks)
[ ] baseline captured for each key request (status/length/body)
[ ] injected a marker, READ how it reflects/returns, BEFORE any payload
[ ] confirmed the bug fires (trivial probe) before building exfil
[ ] checked HttpOnly / what's actually stealable before the stealer
[ ] preferred a non-interactive route where one exists
[ ] confirmed I'm really on the stair I think I am
[ ] stuck 15 min? -> run the stuck-protocol, then switch apps
Everything after this page is detail. This page is the exam.