Authentication (ATX)

AUTHENTICATION
10

Pravin può aggirare i controlli di autenticazione perché non viene utilizzato un modulo/framework/servizio di autenticazione centralizzato, standard, testato e approvato, separato dalla risorsa richiesta

How to play?

The key concept for this card is missing centralized authentication or using centralized authentication that hasn't been properly vetted.

Scenario: Pravin’s Bypass of Decentralized Authentication Controls

Envision a scenario where Pravin bypasses authentication controls due to the absence of a centralized, standardized authentication system. This situation arises because:

  1. Lack of Centralized Authentication: The system does not utilize a centralized module, framework, or service for authentication, leading to inconsistencies and vulnerabilities.
  2. Dependence on Decentralized, Unproven Methods: Different parts of the application use their own untested and potentially insecure methods for authentication.

Example

Pravin discovers that an online service uses different authentication mechanisms for its various modules. Instead of a uniform, centralized authentication system, each module has its own method, some of which are outdated or poorly implemented. Pravin targets the weakest module with rudimentary authentication checks, easily bypassing it to gain unauthorized access to the system.

Threat Modeling

STRIDE

This case is a STRIDE: Spoofing issue.

Spoofing is about impersonating a legitimate user or entity by defeating authentication. Here, Pravin bypasses authentication by exploiting fragmented, weak, or inconsistent authentication routines. The system’s failure is that it doesn’t enforce authentication uniformly through a centralized, proven mechanism. That lets him log in (spoof identity) without legitimate credentials.

What can go wrong?

This decentralized approach to authentication can lead to uneven security standards, making it easier for attackers to find and exploit the weakest link in the system.

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?

Centralized authentication routines are a good programming practice, but like other routines, developers need to understand how they work, how to use them and any limitations. These should preferably be the framework's in-built authentication support. If third party authentication libraries are used, it is important to test each routine before its implementation.

  1. Implement a centralized, standard authentication module or service that is rigorously tested and approved for security.
  2. Ensure this centralized system is consistently used across the entire application or network for all authentication processes.
  3. Regularly review and update the centralized authentication system to keep it secure against evolving threats.

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

OWASP ASVS (v4.0): 1.1.6,1.4.4

OWASP DevGuide: A5,A6,A7,A8

STRIDE: Spoofing

OWASP SCP: 25,26,27

OWASP AppSensor: -

CAPEC™: 114,115

SAFECode™: 14,28

ASVS (4.0.3) Cheat Sheet Series Index

Password Guessing/Brute Force Attacks

Credential Stuffing

Insider Threats

Social engineering attack

OWASP Cornucopia

OWASP Cornucopia is a mechanism in the form of a card game to assist software development teams identify security requirements in Agile, conventional and formal development processes. It is language, platform and technology-agnostic, and is free to use. OWASP Cornucopia is licensed under the Creative Commons Attribution-ShareAlike 4.0 license, so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar licence to this one.

© 2012-2025 OWASP Foundation. The Open Worldwide Application Security Project (OWASP) is a nonprofit foundation that works to improve the security of software.