Join our Newsletter — 33% off our NHI Course
Home› FAQ› Cyber Security› Why do SAST and DAST miss API authorization…
Cyber Security

Why do SAST and DAST miss API authorization flaws in practice?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 11, 2026 Domain: Cyber Security

SAST sees code before runtime, while DAST sees live behaviour without always understanding the full identity chain. API authorisation failures usually depend on state, object relationships, and multi-step sequences, so neither method alone can reliably prove whether access should have been allowed. Teams need both, plus identity-aware runtime context, to get useful signal.

Why API authorization flaws sit outside what SAST and DAST can prove

SAST and DAST are useful, but they often miss API authorization flaws because the question is not just “does this endpoint exist?” It is “should this actor be allowed to do this to this object, in this state, under this sequence of requests?” That answer usually depends on runtime context, object relationships, and policy decisions that static code scans and black-box probes do not fully reconstruct.

Authorization bugs in APIs commonly hide in business logic rather than in a single obvious check. A request may be syntactically valid, the endpoint may respond correctly, and the code may include some guardrails, yet the real failure appears only when one identifier, token, tenant, or workflow step is combined with another. That is why teams need to think in terms of object-level and function-level authorization, not just generic “access control.”

The practical issue is that many APIs expose data or actions across multi-step flows. A single request can look harmless, but a chain of requests can reveal whether the system enforces ownership, tenant boundaries, and state transitions consistently. Tools that do not maintain identity, session, and state across the full sequence can see traffic, but still miss the condition that makes access unauthorized.

Why object state and request sequencing defeat simple checks

Authorization flaws are often stateful. The answer may change depending on whether the object was created by the caller, belongs to another account, has already advanced to a later state, or can be referenced indirectly through an identifier. In practice, that means a scanner can observe a 200 response and still fail to determine whether the access was correct, because the true decision depends on hidden relationships in the application model.

This is also why API authorization is harder than input validation. Validation asks whether the request is well formed. Authorization asks whether the caller is entitled to the exact resource, action, and condition being exercised. When those dimensions are distributed across different services or enforced inconsistently, the flaw becomes an architectural problem rather than a single-code-path problem. Authorisation Models Guide is useful background for the move from simple role checks to relationship and policy-based decisions.

Sequence matters too. Many real API flaws appear only after a create, read, update, delete, or workflow transition changes object ownership or permissions. A one-off request replay may not reproduce the issue if the vulnerable state is only reachable after prior actions. That is why test coverage must include object transitions, not just isolated endpoints.

What practitioners need beyond SAST and DAST

Teams get better signal when they add identity-aware runtime context, not just more scanning. That means correlating the authenticated subject, the token or session, the tenant boundary, the object owner, and the policy outcome at the moment of access. It also means testing the authorization model directly, instead of hoping the code path itself will expose the problem.

For API-heavy systems, the strongest signal usually comes from combining design review, policy testing, and runtime observation. SAST is still valuable for finding missing checks or dangerous patterns in code. DAST is still valuable for probing live behaviour. But neither can reliably confirm whether a request should have been allowed unless the test harness understands the access model the same way the application does. That is why API security guidance focuses so heavily on broken authorization as a first-class risk. OWASP API Security Top 10 is the clearest external reference for that class of failure, and API Key Management Guide helps when the exposed surface includes client credentials that shape access decisions.

The goal is not to replace scanning, but to make it aware of authorization context. In practice, that means validating the policy decision point, the enforcement point, and the identity context together, then checking whether the same request is treated differently when the subject, object, or workflow state changes.

Risk and Threat Considerations

Broken API authorization is attractive to attackers because it can turn a valid login or token into broader data exposure, cross-tenant access, or unauthorized actions without triggering obvious failures. The danger is amplified when the API trusts object identifiers, route parameters, or workflow state more than it trusts the caller’s actual entitlement.

Failure mechanism: the application authorizes the request path or token, but not the specific object, action, or state transition, so a caller can access records or functions outside its legitimate scope.

Impact: attackers can escalate from one account or tenant into many, exfiltrate sensitive data, or perform business actions that should have been blocked even though the request appears technically valid.

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 NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API1 — Broken Object Level AuthorizationAPI object access flaws depend on per-object entitlement, not just endpoint reachability.
API5 — Broken Function Level AuthorizationMissing action checks let callers invoke API functions they should not access.
Recommendation — Test object ownership and tenant scoping for every read and write path. Verify that each API function enforces caller-specific authorization.
NIST SP 800-53 Rev 5AC-3 — Access EnforcementAPI authorization flaws are enforcement failures at the point of access decision.
AU-2 — Event LoggingRuntime authorization testing needs logs that show who accessed what and when.
IA-2 — Identification and Authentication (Organizational Users)Authorization testing depends on knowing which authenticated subject made the request.
Recommendation — Enforce access decisions at the resource and action level for each request. Log authorization decisions and object access events for investigation and verification. Bind each request to a verified subject before evaluating access.

Practitioner Guidance

What to verify: test authorization at the object, action, and workflow level, not just at the endpoint level. If the same token can read, update, or enumerate records after changing an identifier, tenant, or state, you have a control gap, regardless of what SAST reported.

Decision rule: if a flaw depends on who owns the object or where it sits in a workflow, treat it as a policy-testing problem first and a scanner finding second. Use runtime tests that preserve identity and sequence, because isolated request replay usually underestimates the risk.

Practitioner takeaway: SAST and DAST can surface weak spots, but authorization assurance only becomes credible when the test process understands identity, object ownership, and stateful access decisions together.

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 October 11, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org