insideout Get Pro

06 · Business logic and race conditions

Pro

Web and API Security, lesson 6

Business logic and race conditions

Find the steps a user can skip or run twice, and close each one.

Some flaws pass every input check. Each request is well formed, but the order, the amounts or the timing break a rule the business depends on. You'll make the server own each flow's state, check amounts and counts against your own records, and close the gap between checking a balance and spending it. You need lesson 05's endpoint contracts.

Part of Pro

In this lesson
  1. Steps a user can skip or repeat
  2. Amounts, counts and limits
  3. Two requests at once

Cybersecurity comes with Pro: every lesson in every module.

Web and API Security overviewSpotted a mistake? Tell us.