Skip to content

What to look for

Business logic

Rules the software should enforce, such as who may act, how many times, in what order and with what values.

Start lesson

0 of 5 completed

Reviews are marked on
CWE-840Business logic errorsCWE-841Improper enforcement of behavioural workflowCWE-837Improper enforcement of a single, unique actionCWE-1284Improper validation of specified quantity in inputCWE-770Allocation of resources without limits or throttlingCWE-400Uncontrolled resource consumptionCWE-602Client-side enforcement of server-side securityCWE-362Concurrent execution using shared resource with improper synchronisationCWE-367Time-of-check time-of-use race condition
  1. 1
    Misuse cases

    A shop has rules, such as one discount code for each order. Six questions help a reviewer find a rule that the code of a shop website does not check.

    Open the lesson

    Listen to an AI summary of Misuse cases

    0:00 / 0:32
  2. 2
    Rules the code must enforce

    A shop website has rules, such as the price of a hoodie and payment before delivery. The lesson shows a checkout that lets a customer break the rules.

    Open the lesson

    Listen to an AI summary of Rules the code must enforce

    0:00 / 0:30
  3. 3
    Checks made only in the browser

    A check on a web page runs on the customer's own computer, so the customer can skip the check. The server has to check again.

    Open the lesson

    Listen to an AI summary of Checks made only in the browser

    0:00 / 0:30
  4. 4
    Limits on what a request can use

    One request can ask a server for far more work than a page needs, and every other visitor then waits. The lesson shows where code needs a limit on sizes, counts and time.

    Open the lesson

    Listen to an AI summary of Limits on what a request can use

    0:00 / 0:35
  5. 5
    Race conditions

    Two requests that use the same data at the same moment can both pass a check that only one should pass. One fix makes the check and the write one step.

    Open the lesson

    Listen to an AI summary of Race conditions

    0:00 / 0:35