CYBER LIBRARY
Explore the bootcamp
Security essentialsBeginner

Authorization

Learn how applications check permission for individual resources and actions, with an invoice example and practical access tests.

3 min readUpdated 12 Oct 202641 connections
Markdown

Permission belongs to a particular request

Authorization decides whether a subject may perform an action on a resource. The subject might be a signed-in person, a service account, or an anonymous visitor. The resource might be a document, a database record, or an administrative operation. A useful decision describes all three rather than asking only whether the requester has logged in.

Authentication establishes evidence about an identity. Authorization uses relevant policy to decide what that identity may do. Public reading can also be authorized without a login: a library can intentionally allow anyone to view an article while restricting who may edit it.

Two customers and one invoice endpoint

Consider a fictional billing application with two customers, Amara and Leon. Amara can open her invoice at a URL containing its identifier. Leon also has a valid account, but his account should not gain access to Amara's invoice simply because he knows that identifier.

The application needs a resource-level rule connecting the authenticated customer to the requested invoice. Hiding Amara's invoice from Leon's dashboard improves the interface, but the server must still reject a direct request that violates the rule. An identifier that is difficult to guess does not replace that check.

Now add an export feature. If the on-screen invoice is protected but the export route omits the same decision, the application has created another path to the information. This is why an authorization review follows the operation across interfaces rather than stopping at the most visible page.

Express the rule before testing it

Write a small permission table for the fictional application. Customers can read their own invoices; billing staff can read invoices for assigned accounts; only an approved workflow can change payment status. Separate reading, modifying, exporting, and deleting instead of treating them as one capability.

The table becomes a shared agreement between the service owner, developer, and reviewer. RBAC and ABAC explains ways to represent these rules, while Least privilege helps limit unnecessary capabilities. The implementation still needs reliable information about account ownership and staff assignments.

Test a permitted action and its nearest forbidden neighbor

In an authorized training environment, create two test accounts with different records. Confirm that each account can read its own record, then request the other account's record using the same interface. Repeat the comparison for an export or attachment if the application has one.

Record both the response and whether sensitive data appeared. A message saying “access denied” is insufficient if the response body still contains the invoice. Testing the forbidden neighbor reveals a different defect from testing whether the happy path works.

What changes after a role is removed?

Imagine a billing employee moves to another team. Their old browser session may still exist, but the application should apply the relevant updated access policy. How quickly changes take effect depends on the architecture and its documented requirements. Include role removal and stale permissions in the review.

When a rule fails, describe the specific capability and affected resources. Broken access control covers the vulnerability class; Access control places the individual authorization decision in the wider system of policy, enforcement, and review.

GO TO THE SOURCE

References & further reading

Original explanations, with primary references for deeper study.

NIST: An Introduction to Information SecurityOWASP: Authorization
EXPLORE THIS IDEA’S CONNECTIONS

A small part of a bigger picture.

38 notes · 73 connections
100%
Authorization · depth 1
Drag to pan · Pinch or use +/− to zoom · Click to preview · Double-click to read
Browse notes as a list (38)
Access controlAccess Token ManipulationREST API securityAuthenticationAuthorizationBroken access controlBusiness logic vulnerabilitiesData exfiltrationFile upload securityFirewallsGraphQL securityHTTP status codesHTTP and HTTPSIdentity and access managementIdentity federation and SSOInsecure direct object references (IDOR)Input validationInter-Process CommunicationJSON Web Token (JWT) securityLeast privilegeMass assignment vulnerabilitiesMicroservices securityMulti-tenant application isolationMutual TLS (mTLS)OAuth scopes and delegated permissionsOAuth 2.0 securityParameterized queries and prepared statementsPath traversalRetrieval-augmented generation (RAG) securityRBAC and ABACSecure code reviewSecure error handlingTLS and secure transportTransaction authorizationWeb application architectureWeb cache securityWebSocket securityXPath injection
FOLLOW ANOTHER THREADExplore the rest of the library
Start with a concept. Follow its connections.
Detection & responseAbuse Elevation Control MechanismElevation-control abuse bypasses or misuses mechanisms governing privileged execution.Making change happenAcceptance criteriaDefine observable conditions for a deliverable to be accepted.Security essentialsAccess controlUnderstand subjects, resources, permissions, and enforcement through a shared-drive example, including how access changes over time.Detection & responseAccess Token ManipulationAccess token manipulation changes or adopts operating-system security contexts.Risk & resilienceAccount Access RemovalAccount access removal disrupts legitimate users by changing, deleting, or restricting their identities.Evidence & investigationAccount DiscoveryAccount discovery enumerates identities available in a system or environment.Detection & responseAccount ManipulationAccount manipulation changes identity settings to preserve or expand access.Adversarial thinkingAcquire InfrastructureInfrastructure acquisition obtains domains, servers, or other resources used to support operations.Adversarial thinkingActive ScanningActive scanning probes target infrastructure to learn reachable services or weaknesses.Security essentialsAdversary in the middleAn intermediary may observe or alter a communication path.Security essentialsAESA symmetric block cipher whose safe use depends on its mode and implementation.Making change happenAgile deliveryUse short feedback cycles to adapt toward a useful outcome.