WEBA-P1Practice 1 of 3Pick the defence

Marks out of a hundred

A marks-entry page stops teachers typing anything outside 0 to 100, using a check built into the page. A tester sends a request directly to the server with a mark of 450, and the server saves it.

What is the right fix?

Builds on WEBA-1 Never trust input: check on the server.

Choose one answer

Need a hint?

Open the hints one at a time. The worked solution unlocks after the last hint.

  1. 1Nudge

  2. 2Approach

    Opens after hint 1.

  3. 3Walk-through

    Opens after hint 2.

  4. Worked solution

    Locked. Open all 3 hints first.

Instructor