Course contentsShow
← Security
Lesson 831 of 3,05217. Web Security - Authorization and Access ControlFree lesson

Authorization Testing Methodology

Systematic approach to testing access controls including horizontal, vertical, and context-dependent authorization.

Authorization Testing Methodology

What you'll learn: You'll discover a systematic approach to verifying that access controls work correctly in all directions—horizontal, vertical, and context-dependent.

Why You Need a Structured Approach

Testing authorization isn't about randomly clicking buttons while logged in as different users. You need a methodical framework to ensure you've checked every angle where access controls might fail. Think of it like inspecting a house for leaks—you need to check every window, door, and pipe systematically, not just the obvious ones.

The Three Core Testing Dimensions

Horizontal Authorization Testing

Verify users at the same privilege level can't access each other's resources. Test if User A can view/modify User B's data by changing identifiers, cookies, or parameters.

Vertical Authorization Testing

Check that lower-privileged users can't access higher-privileged functions. Can a regular user reach admin endpoints? Can they execute privileged operations by manipulating requests?

Context-Dependent Authorization Testing

Examine scenarios where access depends on state, relationships, or workflows. Can users skip approval steps? Access resources outside their organizational unit? Modify data after a transaction is finalized?

The Testing Process

  1. Map access control boundaries (what resources exist, who should access what)
  2. Create test matrices (user roles × resources × actions)
  3. Test as different users systematically switching accounts
  4. Manipulate identifiers and parameters to probe boundaries
  5. Test multi-step processes for broken authorization chains
  6. Document every failure with reproduction steps

The key is completeness—don't just test the happy path. Try direct URL access, API calls, different HTTP methods, and parameter variations.

Key Takeaway: Authorization testing requires systematically verifying horizontal (peer-to-peer), vertical (privilege-level), and context-dependent (state/relationship) access controls using structured test matrices and multiple user perspectives.