Web security 2
Six harder holes, server-side this time: an unsigned admin token, a profile save that writes any field, a stored script that hits a moderator, a URL preview that reaches the internal network, a logger that runs your lookups, and a search that hands over a whole secret table.
Briefing
Same browser, a harder site: this time the mistakes are on the server, in what it trusts after it has checked. You forge a token it believes, add a field it saves, make it fetch a URL from inside its own network, and pull a whole secret table out through one search box.
You'll learn to
- Forge a token by turning its signature off, and set a field you were never shown
- Land a stored script in a moderator's browser
- Reach an internal service with SSRF, and run a lookup through a logger
- Read a hidden table with a UNION — and give the server-side fix for each
Before you attack the serverOptional warm-upSigned tokens, how a query is built from parts, server-side fetches, and why the server must not trust what it handled. Ten minutes.Forge the token
An algorithm of “none” checks nothing
One extra field
The save that writes whatever you send
A script that waits
Stored XSS fires in the moderator’s browser
Fetch it for me
Borrowing the server’s place in the network
The logger obeys
The bug behind Log4Shell
The whole table
UNION: read data the query never meant to
Know the stack, know the bug
Four real CVEs, and the signal that gave each one away
Defence in depth
Fixing the server-side six, and where to go next