Authentication (AT6)

AUTHENTICATION
6

Sven puede reutilizar contraseñas temporales porque el usuario no realizó el cambio en el primer logueo. o tiene demasiado tiempo y no tiene vencimiento, o no usa un método correcto de entrega (por ejemplo, publicación, aplicación móvil, SMS)

How to play?

The key concept for this card is the use of temporary credentials without enforcing proper authentication management controls (e.g. password expiry).

Scenario: Sven's Temporary Password Misuse

Envision a scenario where Sven capitalizes on the shortcomings in temporary password management. He exploits various system vulnerabilities:

  1. No Mandatory Change on First Use: Users are not required to change temporary passwords upon first login.
  2. Excessive or No Expiry: Temporary passwords remain valid for too long or don't have an expiration time.
  3. Insecure Delivery Methods: Temporary passwords are delivered through insecure channels, rather than more secure out-of-band methods like post, mobile apps, or SMS.

Example

Sven discovers that a company’s system issues temporary passwords to users which do not expire quickly and do not require a change upon first use. He intercepts or guesses these temporary passwords and gains access to user accounts, exploiting the extended period these passwords remain valid and the lack of a mandatory password reset on initial login.

Threat Modeling

STRIDE

This scenario is a clear case of STRIDE: Spoofing.

Spoofing is about pretending to be another user or system by falsifying identity. Sven takes advantage of weakly managed temporary credentials to log in as a legitimate user. The system fails to enforce proper lifecycle rules (expiry, one-time use, out-of-band delivery), which makes impersonation possible.

What can go wrong?

This oversight can lead to unauthorized account access, data breaches, and potential exploitation of system vulnerabilities.

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?

Temporary passwords must expire within a suitably short time period. Enforce the changing of temporary passwords on the next use - no user should be utilising a temporary password on a regular or ongoing basis.

  1. Implement policies that require users to change their temporary passwords upon first login.
  2. Set short expiration times for temporary passwords to minimize the risk window.
  3. Use secure, out-of-band methods for delivering temporary passwords to ensure their confidentiality and integrity.

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

CAPEC: 50,151,633

OWASP DevGuide: A14,A15,P8,P9

OWASP AppSensor: -

SAFECode: 28

ASVS (4.0.3) Cheat Sheet Series Index

Attacks

Password Guessing/Brute Force Attacks

Account Takeover (ATO) Attacks

Insider Threats

Replay attacks

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.