Back to Featured Projects

VULNERABILITY RESEARCH · OWASP API1/API5

API Authorization Security Lab

BOLA, BFLA, and multi-tenant role-matrix testing with database state assertions.

Verified Synthetic Lab · 5/5 Local Unittest Assertions PassingView GitHub Repository

Project Overview

A focused authorization research lab modeling a multi-tenant project-management API across viewer, editor, administrator, and cross-organization callers. Beyond checking HTTP 403/404 status codes, tests inspect persisted SQLite records after denied requests to verify zero unintended state mutation.

Architecture Schematic & Visual Flow
STAGE 01

Actor Session

Verified Identity & Tenant

STAGE 02

Policy Matrix

Role × Action × Owner

STAGE 03

Enforcement Layer

Pre-mutation Check (403/404)

STAGE 04

State Assertion

DB Record Unchanged Proof

Architecture Details

  • ▸12-case permission matrix evaluating Read, Rename, and Archive actions across 4 actor types
  • ▸Server-side session actor derivation and organization ownership lookup
  • ▸Consistent 404 (cross-tenant obscurity) vs 403 (insufficient role) denial semantics
  • ▸In-memory SQLite verification asserting stored state remains intact after denied writes

Security Considerations

  • •Prevents Broken Object Level Authorization (BOLA) and Broken Function Level Authorization (BFLA)
  • •Asserts both positive (allowed) and negative (denied) cases to prevent false-positive blanket denials
  • •Logs authorization denials with request IDs without leaking credentials or sensitive payloads

Technology Stack & Evidence

PythonunittestSQLiteREST APIsOWASP API Security Top 10

Verification Evidence: 5 of 5 synthetic authorization lab tests passed in SHA-matched offline verification (SHADEX-Research-Portfolio).

Documentation & Repositories