SECURITY ENGINEERING, IN PRACTICE.ANALYSIS / TECHNICAL NOTES / FIELD NOTES
Packet Notes.

Clear thinking on software,
infrastructure and security.

Technical note

Every object needs an authorization decision

A difficult-to-guess identifier does not tell you who may use the object.

Start from ownership

Applications commonly place object identifiers in routes, request bodies and downloadable links. Those identifiers locate a resource. They do not establish that the caller is entitled to read or modify it.

OWASP’s authorization guidance recommends checking permissions on every request and controlling access to the underlying object. The intended ownership and sharing model needs to remain true across each route that reaches it.

Review the second path

Our suggested review starts with a familiar object and lists all of its representations: detail page, export, attachment, search result and background-job output. Give each representation an audience. A secure primary endpoint is insufficient when an auxiliary download exposes the same material under a different rule.

Use a matrix of actor, resource and operation. Include at least two ordinary accounts with different ownership, then add the roles that intentionally permit sharing. The matrix should explain both allowed and rejected combinations.

Keep checks near the resource

Determine where the authoritative decision occurs and how new routes reuse it. Avoid relying on the interface to conceal actions from unauthorized users. When ownership or membership changes, review the cached and asynchronous paths that may continue using an earlier decision.

Source & further reading

OWASP · Authorization Cheat Sheet ↗