Search GimmeJob

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

What evidence would you require to make a release decision about session management across user roles and tenants?

Answer

Frame the release decision around evidence that a session token issued for one tenant or role cannot be reused to act as another, since session scope, not just object-level checks, is what a tenant-switching attack actually exploits. Focus on session management across user roles and tenants. Use explicit, server-side authorization rules and secure defaults as the oracle: session validity must be checked against the tenant and role encoded server-side, never a client-supplied tenant-ID header or cookie. Cover session fixation across tenants, privilege escalation through a stale role claim, and data leakage if a session briefly serves the wrong tenant's data during a switch. Keep data and dependencies controlled enough to reproduce the exact switch sequence that triggered the gap. Release only when a full test suite confirms every session is scoped to a single tenant and role, with no cookie or header value alone able to change that scope.

Strong answer includes

  • explicit risk and test oracle for session management
  • tests server-side session scope, not client-supplied tenant identifiers
  • covers session fixation and stale role claims across tenants
  • measurable evidence and residual-risk statement

Practical example

Before shipping a new admin panel, the team asked for evidence that an admin's session couldn't be reused to access a different tenant's admin panel simply by switching a tenant-ID cookie, since a similar bug had let one customer see another's data in a past incident. Only after a test suite confirmed every session was scoped to a single tenant and role did the release get approved.

#security#accessibility#session-management

Sources

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