Search GimmeJob

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

How would you design a focused test strategy for object-level authorization with malicious and malformed input?

Answer

Build the smallest useful model of the behavior by fuzzing the object-identifier parameter itself: negative numbers, other tenants' UUIDs, SQL-injection strings, oversized values and non-existent IDs. Focus on object-level authorization with malicious and malformed input. Use explicit, server-side authorization rules and secure defaults as the oracle, and require that every case returns a safe 403 or 404, never a 500 with a stack trace or, worse, a fallback response that leaks someone else's object. Cover parser and ORM edge cases specifically, since malformed input often crashes a lower layer before the authorization check even runs. Keep every malformed-input case and the exact response it produced logged so a regression can be reproduced. Release only when malformed and malicious identifiers never fall back to a cached or default object instead of a clean rejection.

Strong answer includes

  • explicit risk and test oracle for object-level authorization
  • tests server-side authorization
  • fuzzes the identifier parameter for parser and ORM edge cases
  • measurable evidence and residual-risk statement

Practical example

The strategy fuzzed the object-ID parameter on a document-download endpoint with negative numbers, UUIDs from other tenants, SQL-injection strings and non-existent IDs, checking that every case returned a safe 403 or 404 rather than a 500 with a stack trace or, worse, the wrong document. The malformed-input cases exposed that a non-numeric ID crashed the ORM layer and briefly returned a generic admin document from a fallback cache.

#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