Join our Newsletter — 33% off our NHI Course
Authentication, Authorisation & Trust

CWE-306

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Authentication, Authorisation & Trust

A weakness where software does not properly verify that a caller is authorised to use a function, interface, or service. The check may be missing, incomplete, or only applied to some endpoints, which lets an unauthenticated or low-privileged actor reach privileged operations. It is a common access-control flaw in web apps, APIs, and internal services.

How CWE-306 Works

CWE-306 describes a failure of access control mediation: software exposes a function, interface, or service without reliably checking whether the caller is allowed to use it. The weakness can appear as a missing check, an incomplete check, or a check applied only on some paths, which makes privileged operations reachable to unauthorised callers.

In practice, the flaw is about trust boundaries. The application assumes the caller is entitled to invoke a sensitive action, but the enforcement point is absent or inconsistent. That is why the same weakness can show up in web endpoints, internal APIs, administrative functions, and service-to-service calls.

Why Missing Authorisation Checks Are Dangerous

When authorisation is not enforced consistently, security depends on obscurity, route selection, or frontend behaviour rather than a real policy decision. An attacker who can discover an unprotected endpoint may bypass intended controls, reach data they should not see, or trigger business actions reserved for higher-privileged users.

This is especially dangerous when the exposed function performs state-changing or privileged operations, because the flaw can turn a low-risk interface into a control-plane issue. A single missed check can defeat role separation, break tenant isolation, or expose internal functionality that was never meant to be directly callable.

For a broader view of how this weakness fits into secure coding and weakness management, see the CWE Top 25 Guide.

Where CWE-306 Typically Appears

Common failure patterns include administrative endpoints that rely on the UI to hide access, APIs that validate authentication but not function-level permission, and backend services that trust a caller because it came from an internal network segment. Partial mediation is another recurring pattern, where one route or method enforces access control while a sibling route does not.

These weaknesses often cluster with other access-control problems, such as broken object-level authorisation, broken function-level authorisation, and missing checks around sensitive workflows. The practical lesson is that each sensitive operation needs its own enforcement point, not just a shared assumption that "some earlier layer" already handled access control.

For a wider reference on the relationship between weakness classes and vulnerability records, see the CVE, CWE and CPE Guide.

How Teams Prevent and Detect It

Prevention starts with explicit, server-side authorisation checks on every sensitive function, not just at login or in the user interface. The check should be tied to the action being performed, the resource being accessed, and the caller's actual entitlement, so that privilege decisions remain consistent across all entry points.

Detection usually requires both code review and runtime verification. Reviewers should look for endpoints, handlers, and service methods that perform sensitive actions without a clear permission check, while testers should try alternate routes, direct calls, and low-privilege identities to confirm that the enforcement is really present.

Where the subject is API exposure, the OWASP API Security Top 10 is a useful companion reference for broken authentication and authorisation failure modes. For control mapping, the NIST SP 800-53 Rev 5 Security and Privacy Controls catalogues access-control and authentication controls that help prevent this weakness.

Risk and Threat Considerations

CWE-306 creates direct privilege-escalation and access-bypass risk because an attacker only needs to find a path that lacks a proper authorisation decision. The danger increases when the exposed operation touches account administration, financial actions, configuration changes, or data retrieval at scale.

Failure mechanism: A sensitive function is reachable without a reliable server-side authorisation check, or the check is applied inconsistently across code paths, so an unauthorised caller can invoke privileged behaviour.

Impact: Attackers can access restricted data, modify protected state, abuse administrative features, or move deeper into the environment by chaining the exposed operation into broader compromise.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while OWASP ASVS, NIST SP 800-53 Rev 5, CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV8 — AuthorizationCWE-306 is a failure to verify that the caller may use a function or service.
Recommendation — Verify every sensitive action enforces server-side authorization before it executes.
NIST SP 800-53 Rev 5AC-3 — Access EnforcementThis weakness is the absence or inconsistency of access enforcement at the function boundary.
Recommendation — Enforce access decisions at each protected function and interface.
OWASP API Security Top 10API5 — Broken Function Level AuthorizationCWE-306 commonly appears when API functions are callable without proper privilege checks.
Recommendation — Test each API function for direct invocation by low-privilege callers.
CIS Controls v8CIS-6 — Access Control ManagementAccess-control weakness is addressed through managing and validating who can use sensitive functions.
Recommendation — Review and remove excess access paths to sensitive functions and services.
NIST CSF 2.0PR.AA-05 — Identity and Access ManagementCWE-306 is a failure to consistently authorize use of protected functions and services.
Recommendation — Apply access-control logic consistently across all privileged functions and interfaces.

Practitioner Guidance

Why practitioners should care: Treat CWE-306 as an enforcement defect, not a presentation bug. If authorisation exists only in the UI, in one endpoint, or in a shared gateway rule, the application may still expose privileged behaviour through alternate paths.

What to watch for: Look for sensitive handlers that make business decisions before checking the caller's right to perform them, especially in internal services, admin functions, and older code paths that were added after the initial access model was designed.

Practitioner takeaway: Validate authorisation at the point of action, and test every sensitive route as if the caller is untrusted, because missing mediation is often easiest to exploit where teams assume it is already covered.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org