Authentication (ATQ)

AUTHENTICATION
Q

Johan kan omgå autentisering fordi den ikke håndheves med like strenghet for alle typer autentiseringsrelatert funksjonalitet (f.eks. registrering, passordendring, passordgjenoppretting, utlogging, administrasjon) eller på tvers av alle versjoner/kanaler (f.eks. mobil nettsted, mobilapp, nettsted, API, hjelpesenter)

How to play?

The key concept for this card is inconsistent authentication. See AT J for missing authentication, AT K for changing the executing authentication code, 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: Johan’s Authentication Bypass Across Various Functions and Channels

Imagine a scenario where Johan bypasses authentication by exploiting inconsistencies in the enforcement of authentication processes. This happens because:

  1. Varying Rigor in Authentication Functions: Not all authentication-related functions, like registration, password change, recovery, logout, or administration, have the same level of security rigor.
  2. Inconsistent Authentication Across Channels: Different versions or channels of the system, such as mobile websites, apps, full websites, APIs, or call centers, do not uniformly enforce authentication standards.

Example

Johan discovers that while the main website of a service enforces strong authentication, its mobile app version has weaker security checks, particularly for password recovery. Exploiting this, Johan uses the mobile app to request a password reset for a user account. The app does not implement additional security measures, like sending a confirmation to the user's registered email or requiring answers to security questions, allowing Johan easy unauthorized access.

Threat Modeling

STRIDE

This scenario is clearly STRIDE: Spoofing.

Spoofing covers impersonating a legitimate user or entity. Johan exploits inconsistent authentication enforcement across channels/functions to gain unauthorized access. Even though the main website is secure, weaker checks in the mobile app allow him to bypass identity verification, effectively impersonating a user.

What can go wrong?

The degree of identity assurance may not be the same for all web application functions. Or the authentication function may be available in a weaker manner in some other mode or channel, thus compromising the web application. Such inconsistencies can lead to unauthorized access and exploitation of authentication weaknesses, posing a significant risk to user data and system integrity.

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?

  1. Ensure uniform implementation of robust authentication measures across all functionalities and channels, including mobile and web platforms, APIs, and customer service points.
  2. Regularly review and update authentication protocols to maintain consistent security standards across all access points.
  3. Conduct thorough testing and audits to identify and rectify any disparities in authentication enforcement.

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 (v5.0): 6.1.3,6.4.3,6.4.4,6.8.4,7.5.1,7.5.3,13.2.1

OWASP DevGuide: A1,A2,A9,A10,A11,P5,AC6,AC7

STRIDE: Spoofing

CAPEC™: 50,114,115,179

SAFECode™: 14,28

CAPEC Map

CodeTitleASVS
50Password Recovery Exploitation
113Interface Manipulation
114Authentication Abuse
115Authentication Bypass
179Calling Micro-Services Directly

ASVS (5.0) Cheat Sheet Series Index

Password Guessing/Brute Force Attacks

Credential Stuffing

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.