csrf xss cookie (pwn.college)
Summary
Start
cd /challenge
./server &Understand the goal from server code
db.execute("""CREATE TABLE users AS SELECT "admin" AS username, ? as password""", [flag[-20:]])response.set_cookie('auth', username+"|"+password)The reflected XSS sink
Two-layer JavaScript plan
Final attacker page
Trigger the victim
Extract the cookie and log in
Timeline view
Last updated