Authentication (AT3)

AUTHENTICATION
3

O Muhammad pode obter a palavra-passe de um utilizador ou outros segredos, como códigos MFA ou biometria, através da observação (por cima do ombro) durante a sua introdução, ou de uma cache local, ou da memória, ou em trânsito, ou lendo-a de algum local desprotegido, ou porque é amplamente conhecida ou foi exposta

How to play?

This card is related to insecure handling of secrets and credentials.

Scenario: Muhammad’s Secret Acquisition

Imagine a scenario where Muhammad, a skilled eavesdropper, obtains a user's password or other confidential information like MFA codes (stored in your password manager without password protection) or your fingerprint. He exploits various vulnerabilities:

  1. Observation During Entry: Muhammad watches as a user enters their password.
  2. Local Cache Access: He retrieves passwords stored in a local cache on a user's device.
  3. Memory Extraction: Muhammad accesses passwords or secrets stored in the memory of a system.
  4. Interception in Transit: He captures data as it travels across a network.
  5. Unprotected Storage Locations: Muhammad finds passwords stored in unsecured locations.
  6. Widely Known Passwords: He exploits commonly used or default passwords.
  7. Static Passwords: Muhammad takes advantage of passwords that never expire.
  8. Inability of Users to Change Passwords: He benefits from systems where users cannot change their passwords regularly.

Example

Muhammad targets a company’s website where passwords are transmitted without encryption. He intercepts network traffic and captures the plaintext passwords as they travel from the user’s device to the server. This lack of secure transmission allows him to gather user credentials easily, leading to unauthorized access.

Threat Modeling

STRIDE

The scenario maps directly to STRIDE: Information Disclosure.

Muhammad gains access to confidential information (passwords, secrets) that should have been protected. STRIDE’s Information Disclosure category is specifically about unauthorized exposure of sensitive data. The example (plaintext password interception) is a textbook case of information disclosure due to lack of encryption in transit.

What can go wrong?

Such vulnerabilities can lead to widespread unauthorized access, data breaches, identity theft, and compromise of sensitive information. Common attacks include:

  1. Stealing a password/secret in transit (e.g. in an email message, over an unencrypted HTTP connection)
  2. Observing a password/secret being entered on screen
  3. Weak password recovery (e.g. reliance only on 'security' questions)
  4. Use of weak 'remember me' functionality
  5. Re-use of passwords making them guessable
  6. Passwords/secrets recorded in logs
  7. Passwords/secrets exposed in form data/URLs
  8. Client-side caching or storage of passwords/secrets
  9. Hard-coding of passwords/secrets into code
  10. Passwords never changed by user

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. Implement and enforce secure password policies, including regular changes and strong, unique passwords.
  2. Use encryption for data in transit and secure storage methods for sensitive information.
  3. Educate users about secure practices, like avoiding password reuse and being cautious of their surroundings when entering passwords.
  4. Ensure systems are designed to allow users to change their passwords and keep security questions confidential.

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: Information Disclosure

OWASP ASVS: 6.2.6,6.2.10,6.2.11,6.2.12,6.3.1,6.3.2,6.3.3,6.3.8,6.5.6,6.5.7,12.2.1,12.3.1,12.3.2,12.3.3,12.3.4,12.3.5,13.3.1,14.2.1,14.2.2,14.2.6,14.3.1,14.3.2,14.3.3

CAPEC: 37,49,116,151,543,560,568,654

OWASP DevGuide: A14,P14,P15,DP6,PDR3,SL6

SAFECode: 28

CAPEC™ Map

CodeTitleASVS
37Retrieve Embedded Sensitive Data
49Password Brute Forcing
116Excavation
117Interception
151Identity Spoofing
508Shoulder Surfing
543Counterfeit Websites
560Use of Known Domain Credentials
568Capture Credentials via Keylogger
654Credential Prompt Impersonation

ASVS (5.0) Cheat Sheet Series Index

Attacks

Local Cache exploitation

Insecure Session Storage

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.