OWASP Evolution

Mishandling of Exceptional ConditionsA10: Mishandling of Exceptional Conditions · 2025

Errors, unexpected states or resource exhaustion are handled insecurely, causing fail-open behavior, exposed information or inconsistent behavior.

Summary

Errors, unexpected states or resource exhaustion are handled insecurely, causing fail-open behavior, exposed information or inconsistent behavior.

How the attack works

A10 · How the attack worksAn attacker triggers an error during a security check; exception handling fails open and allows access.Check permissionResponse?UnauthorizedTimeoutDenyAllow

An attacker triggers an error during a security check; exception handling fails open and allows access.

Example

Vulnerable · Pseudocode
try: return authorize(user)
except TimeoutError:
    return True

Fix: On timeout, deny access and log the authorization failure.

Prevention

  • Define explicit error handling and fail securely.
  • Test exceptional paths, limits and dependency failures.
  • Apply timeouts, quotas, circuit breakers and minimal error messages.

Lineage

  1. 2025 · A10: Mishandling of Exceptional Conditions New in 2025

    Sources

    Buy me a coffee

    OWASP Evolution

    Editions
    Continues / movesContinues RenamedRenamed Merged / expandedMerged