1---2name: pentest-authentication-authorization-review3description: Authentication and authorization security assessment for sessions, tokens, MFA, account takeover, IDOR, BOLA, BFLA, privilege escalation, tenant isolation, and identity boundary validation. Hands off to recon, input/protocol, access-control deep dive, exploit, or reporting workflows when those become the owner phase.4---56# Authentication & Authorization Review78## Use When9- Session replay, token lifecycle, MFA behavior, account takeover, tenant isolation, or identity-boundary validation is the main question.10- The task needs paired-role testing for object, function, or workflow authorization.11- The next step is to distinguish authentication failure from authorization failure.1213## Handoff Criteria14- Hand off to `pentest-advanced-access-control-auditor` for a deep IDOR, BOLA, BFLA, RBAC, or ownership test matrix.15- Hand off to `pentest-input-protocol-manipulation` when parser behavior or request mutation becomes the owner blocker.16- Hand off to `pentest-evidence-structuring-report-synthesis` when live validation is complete.1718## Output Schema19- Access-control matrix: `actor`, `resource`, `action`, `expected`, `observed`20- Session/token lifecycle findings: `issued`, `replayed`, `revoked`, `result`21- Confirmed boundary breaks with attacker capability statement2223## Instructions241. Define identity roles and expected permissions before testing.252. Validate both horizontal and vertical boundaries with paired-role comparisons.263. Test session and token invalidation across interfaces and time windows.274. Confirm authorization at object, function, and workflow levels.285. Distinguish authentication weakness from authorization weakness in output.296. Escalate only confirmed boundary failures into exploit chaining.3031## Verification Gate32- Use explicit role-to-action test cases.33- Capture full evidence for accepted and denied control paths.34- Verify revocation behavior, not just issuance behavior.35- Do not infer access-control findings from UI behavior alone.36- Do not conflate missing data with denied access.37- Mark privilege escalation only with deterministic proof of a crossed boundary.3839## Situational Awareness40- Cross-check high-impact authz claims with an alternate role, alternate object, alternate method, or alternate interface.41- Track confirmed, rejected, and unknown role/action pairs separately.