Authentication (ATK)

AUTHENTICATION
K

Olga peut influencer ou modifier du code/routines d'authentification de telle manière que celle-ci soit contournée

How to play?

Unlike other cards in this suit, this AT K relates to an attacker being able to change the executing code. This may be due to inadequate source code control, deployment controls or server protection, or compromise of delegated authentication, but could also be modification of client-side code. See AT J for missing authentication, AT Q for inconsistent authentication, and other cards in this suit for individual authentication issues (e.g. missing notification, inadequate password protection, enumeration, weak account management, weak use of temporary passwords, bypass, missing re-authetication, etc).

Scenario: Olga's Manipulation of Authentication Code

Visualize a scenario where Olga, exploiting vulnerabilities within a system, manages to alter or influence authentication code or routines, thereby bypassing security measures. She achieves this by:

  1. Direct Manipulation of Authentication Code: Olga finds a way to access and modify the source code responsible for authentication.
  2. Influencing Authentication Routines: She exploits weaknesses in the system to indirectly influence how authentication routines behave, leading to security lapses.

Example

Olga targets an application with inadequate security measures in its code deployment process. She injects malicious code into the authentication module during an update. This altered code introduces a backdoor that allows her to bypass normal authentication checks. Whenever she accesses the system, the modified code recognizes her specific input pattern and grants access without the need for legitimate credentials.

Threat Modeling

STRIDE

This scenario maps primarily to STRIDE: Tampering.

Tampering involves unauthorized modification of data or code. Olga alters the authentication module itself, changing how it behaves so she can bypass normal checks. The attack is not just exploiting weak authentication, it’s modifying the code that enforces authentication, which is classic integrity compromise, i.e., Tampering.

What can go wrong?

This form of attack can lead to unauthorized system access, data breaches, and potentially allow for widespread manipulation of system functions.

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?

In general, all authentication routines should be on the server-side using robust, tested and protected routines.

  1. Implement strict access controls and security measures in the code development and deployment process to prevent unauthorized modifications.
  2. Regularly review and audit authentication modules to detect any unauthorized changes or vulnerabilities.
  3. Employ continuous monitoring tools to track and alert any unusual behavior within authentication routines.

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: Tampering

OWASP ASVS: 5.4.3,7.2.1,10.1.1,10.1.2,10.2.1,13.2.1,13.2.3,13.3.1,13.3.2,13.3.3,13.3.4,15.1.1,15.1.2,15.2.4,15.2.5,16.3.3,16.3.4,16.5.3

CAPEC: 115,207,443,445,446,461,511,523,554

OWASP DevGuide: A3

SAFECode: 14,28

CAPEC™ Map

CodeTitleASVS
115Authentication Bypass
207Removing Important Client Functionality
443Malicious Logic Inserted Into Product by Authorized Developer
445Malicious Logic Insertion into Product Software via Configuration Management Manipulation
446Malicious Logic Insertion into Product via Inclusion of Third-Party Component
461Web Services API Signature Forgery Leveraging Hash Function Extension Weakness
511Infiltration of Software Development Environment
523Malicious Software Implanted
554Functionality Bypass

ASVS (5.0) Cheat Sheet Series Index

Attacks

Weak Authentication Protocols

Insider Threats

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.