Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Security & accessibilityMiddleOccasionalRisk analysis

Which risks and test oracles matter most for object-level authorization after authentication state changes?

Answer

Prioritize the risk that an authorization decision was cached at login and never re-checked against current account state, since that is what lets access silently outlive a security-sensitive event. Focus on object-level authorization after authentication state changes. Use explicit, server-side authorization rules and secure defaults as the oracle: every object-fetch should re-validate against the account's current state, not a claim issued earlier in the session. Cover password resets, privilege downgrades, role changes and account suspension, checking that a token issued before the change is rejected or re-validated on the next request. Keep data and dependencies controlled enough to reproduce failures, including the exact timing of the state change relative to the request. Release only when no authorization decision relies on a claim that predates the most recent authentication-state change.

Strong answer includes

  • explicit risk and test oracle for object-level authorization
  • tests server-side re-validation against current account state
  • covers password resets, privilege changes and account suspension
  • measurable evidence and residual-risk statement

Practical example

After a password reset, an old session token issued before the reset could still fetch another user's profile document for another 20 minutes because authorization checks relied on a cached role claim instead of re-validating against current account state. The team prioritized this as the highest risk because it silently persisted access after a security-sensitive event, and made 'token issued before state change is rejected' the test oracle.

#security#accessibility#object-level-authorization

Sources

OWASP Web Security Testing GuideOWASP · Web application security test coverageOWASP API Security Top 10 — 2023OWASP · Authorization, authentication, resource consumption and API-specific risks