For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

This lab makes flawed assumptions about the sequence of events in the purchasing workflow. To solve the lab, exploit this flaw to buy a "Lightweight l33t leather jacket".

Lab 9: Authentication bypass via flawed state machine

This lab makes flawed assumptions about the sequence of events in the login process. To solve the lab, exploit this flaw to bypass the lab's authentication, access the admin interface, and delete the user carlos.

Lab 10: Infinite money logic flaw

This lab has a logic flaw in its purchasing workflow. To solve the lab, exploit this flaw to buy a "Lightweight l33t leather jacket".

Last updated