Web Application Security · advanced · ~11 min
Recognise logic and concurrency bugs that scanners miss.
Business logic flaws abuse legitimate features in unintended ways (coupon reuse, negative quantities, skipped steps, client-controlled price/role) — scanners miss them. Race conditions (TOCTOU) exploit the gap between check and act with concurrent requests. Fixes: server-side invariants and atomic critical sections.
Logic and race bugs are high-impact (financial loss, privilege gain) and largely invisible to automated tools, so they're where human testers add the most value. They also connect web testing to the same TOCTOU concept seen in systems C code.
Logic abuse. Unintended sequences/values via legitimate features. Mass assignment. Trusting client-sent fields (role, price). TOCTOU race. Concurrent requests split check-then-act. Fixes. Server-side state/invariants; atomic transactions, locking, idempotency keys.
Not every vulnerability is a payload. Some of the highest-impact bugs are the app doing exactly what it was told — just not what was intended.
Abusing legitimate features in unintended sequences or values:
role field the server trusts (mass assignment).
These require understanding the application's intent, which is why automated scanners miss them and skilled humans find them.When the app checks a condition and acts on it in two steps, concurrent requests can slip between:
The subtlest web bugs are logic abuses and race conditions — the app working as coded but not as intended. They demand understanding intent and concurrency, and are fixed with server-side invariants and atomic operations, not input filtering.