Business Logic Vulnerability (Labs: Portswigger Academy)
Labs from PortSwigger Academy
Lab 1: Excessive trust in client-side controls
POST /cart
productId=1&redir=PRODUCT&quantity=1&price=100
price value can be easily edited.Lab 2: High-level logic vulnerability
POST /cart
productId=2&redir=PRODUCT&quantity=5
we can set the quantity value to negative
first, add negative number of items in cart (total cost will be in negative). If we try to buy, we get error because of -ve total cost.
to change -ve total to +ve, add different products until the total becomes +ve
our order should be something like this
|Name|Price|Quantity||
Lightweight "l33t" Leather Jacket --> $1337.00 |1|
Portable Hat --> $43.63 | -30|
Total: $28.10
Lab 3: Inconsistent security controls
Lab 4: Flawed enforcement of business rules
Lab 5: Low-level logic flaw
Lab 6: Inconsistent handling of exceptional input
Lab 7: Weak isolation on dual-use endpoint
Lab 8: Insufficient workflow validation
Lab 9: Authentication bypass via flawed state machine
Lab 10: Infinite money logic flaw
Last updated