Authorization disclaimer. This walkthrough is limited to the intentionally vulnerable PortSwigger Web Security Academy lab linked below. Test only systems you own or are explicitly authorized to assess.
Overview
Repeating quantity=99 additions drives the cent-denominated cart total past signed 32-bit INT_MAX. The wrapped negative total can then be tuned below the $100 balance.

Lab objective/setup
This intentionally vulnerable Academy exercise isolates low-level logic flaw. The supplied accounts and endpoints are used to reproduce only the source note evidence for low-level logic flaw; all request changes remain inside this Academy instance.
What I observed
Repeating quantity=99 additions drives the cent-denominated cart total past signed 32-bit INT_MAX. The wrapped negative total can then be tuned below the $100 balance.




Why it is vulnerable
Arithmetic performed in a bounded numeric type can overflow unless ranges and final totals are checked safely.
Walkthrough in the authorized PortSwigger lab
- Capture the baseline request for low-level logic flaw and record the response that represents the intended lab workflow.
- Replay the recorded mutation that exposes low-level logic flaw, keeping the session and other fields unchanged.
- Confirm the low-level logic flaw signal in the response before applying the next source-documented operation.
- Complete the Academy objective using only the confirmed low-level logic flaw behavior and the supplied synthetic account or product data.







Verification
The final capture shows the Academy marking the low-level logic flaw exercise as solved after the documented request sequence. No testing was performed outside the isolated lab.

Impact and defensive lesson
The evidence demonstrates the concrete risk of low-level logic flaw: a server-side trust decision can be bypassed through the exact input or workflow shown in this lab. For low-level logic flaw, the server must enforce the exact invariant violated in the captured sequence and regression-test that mutation alongside the normal path.