Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Security · Think Like an Attacker · with code: Python · about 15 min to read

Play it as a journeyTutor comes with a plan

The door you forgot was a door (fail-open checks and logic bugs)

Authorization and Identity
Authorization and Identity · Open board

What you are allowed to do, and the bugs that leak data. Two of its rules carry this lesson: deny by default (no rule means no access) and check every request on the server, never trusting the browser’s word. The bugs below are what happens when one of those rules has a gap nobody drew.

Before you start. Authorization & Identity taught the ownership check: logging in proves who you are, not that order 124 is yours. Web Vulnerabilities (the OWASP classics) taught the bugs where an attacker’s text becomes code. Review the fix (secure code review) had you review a dozen fixed handlers, including a form that accepted a field it never meant to. This lesson is about bugs where nobody’s text becomes code and every line looks right: the door is a situation the code never planned for.

Lesson 21 of 39 in Security

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 21 February 2014: one line, typed twice
  • Fail closed: when the check cannot run, the answer is no
  • Mass assignment, again: the field the form never had
  • The business-logic bug: rules the server forgot it had
  • May 2015: two requests at once, and five dollars from nowhere
  • Why nobody saw these doors
  • The five defences
  • How the race test is made repeatable
  • What real systems add
  • Remove one defence, watch its test fail

Terms it explains: fail closed, fail open, business-logic bug, race condition, atomic, ABAC, access token, ACL, authorization (authZ), complete mediation, confused deputy, ID token, IDOR, OAuth 2.0, OIDC, RBAC, ReBAC, scope.

Related paper

Review Security