Authentication (AT8)
Kate kan authenticatie omzeilen omdat het niet veilig faalt (d.w.z. het staat standaard niet-geverifieerde toegang toe)
The key concept for this card is permitting access, even though authentication checks were undertaken and detected a failure. See AT 4 for the similar authorization failure.
Scenario: Kate’s Authentication Bypass
Consider a scenario where Kate finds a way to bypass authentication mechanisms due to a system's failure to default securely. This occurs because:
- Failure to Fail Securely: The system is designed in such a way that if authentication processes fail, it defaults to allowing access, rather than denying it.
Example
Kate targets a web application that has a flaw in its authentication process. During a system failure or when the authentication service is down, instead of denying access, the system defaults to granting access. Kate exploits this by triggering a fault in the authentication mechanism, either through direct attack or by exploiting system instability. As a result, she gains unauthorized access without needing legitimate credentials.
Threat Modeling
STRIDE
That scenario maps directly to STRIDE: Spoofing
Spoofing covers impersonating a legitimate user or system. Here, Kate bypasses authentication entirely because the system fails insecure (defaults to granting access). Even though no valid credentials were provided, the system treats her as authenticated → she is spoofing identity. There might be secondary impacts that maps to the other STRIDE categories depending on the context.
What can go wrong?
This vulnerability can lead to unauthorized access to sensitive data and systems, potentially compromising the entire network or application.
For more things that can go wrong, see the Common Attack Patterns related to this card in the table below.
What are we going to do about it?
Once an authentication failure is detected, access needs to be blocked. It is also useful to log (associated with the user's identity if possible) and flag these as possibly malicious activity for further analysis, or as input for application intrusion detection systems.¨
- Design and configure authentication mechanisms to default to a 'deny access' state in case of any failure.
- Regularly test and validate the authentication process to ensure it behaves as expected during system errors or downtime.
- Implement robust monitoring and alerting mechanisms to quickly detect and respond to authentication system failures.
For detailed advice on how to mitigate threats related to the card, see the ASVS and OWASP Developer Guide requirements in the table below.
Mappings
STRIDE: Spoofing
OWASP ASVS: 16.3.1,16.3.3,16.3.4,16.5.2,16.5.3
OWASP DevGuide: A4
SAFECode: 28
CAPEC™ Map
| Code | Title | ASVS |
|---|---|---|
| 114 | Authentication Abuse | 16.3.1,16.3.3,16.3.4,16.5.2,16.5.3 |
| 461 | Web Services API Signature Forgery Leveraging Hash Function Extension Weakness | 16.3.3,16.5.3 |