---
title: "CWE-204: Observable Response Discrepancy"
url: https://radicalnotion.ai/cwe/cwe-204
type: cwe
description: "The product provides different responses to incoming requests in a way that reveals internal state information to an unauthorized actor outside of the intended control sphere."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-204: Observable Response Discrepancy

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 221
- **Of those, in CISA KEV:** 0
- **New in 2026:** 108
- **CWE catalog version:** 4.21

## Description

The product provides different responses to incoming requests in a way that reveals internal state information to an unauthorized actor outside of the intended control sphere.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | An observable response discrepancy frequently occurs during authentication, where a difference in failed-login messages could allow an attacker to determine if the username is valid or not. The discrepancy could be inadvertent (bug) or intentional (design). |
| Implementation | An observable response discrepancy frequently occurs during authentication, where a difference in failed-login messages could allow an attacker to determine if the username is valid or not. The discrepancy could be inadvertent (bug) or intentional (design). |

## Applicable platforms

**Languages:** Go (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Access Control | Read Application Data, Bypass Protection Mechanism | - |

## Potential mitigations

### Architecture and Design (Separation of Privilege)

Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.

Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

### Implementation

Ensure that error messages only contain minimal details that are useful to the intended audience and no one else. The messages need to strike the balance between being too cryptic (which can confuse users) or being too detailed (which may reveal more than intended). The messages should not reveal the methods that were used to determine the error. Attackers can use detailed information to refine or optimize their original attack, thereby increasing their chances of success.

If errors must be captured in some detail, record them in log messages, but consider what could occur if the log messages can be viewed by attackers. Highly sensitive information such as passwords should never be saved to log files.

Avoid inconsistent messaging that might accidentally tip off an attacker about internal state, such as whether a user account exists or not.

## Demonstrative examples

### Example 1

The following code checks validity of the supplied username and password and notifies the user of a successful or failed login.

Bad code:

```perl
my $username=param('username');
my $password=param('password');

if (IsValidUsername($username) == 1)
{
    if (IsValidPassword($username, $password) == 1)
    {
        print "Login Successful";
    }
    else
    {
        print "Login Failed - incorrect password";
    }
}
else
{
    print "Login Failed - unknown username";
}
```

Result code:

```
"Login Failed - incorrect username or password"
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2002-2094 | This, and others, use ".." attacks and monitor error responses, so there is overlap with directory traversal. |
| CVE-2001-1483 | Enumeration of valid usernames based on inconsistent responses |
| CVE-2001-1528 | Account number enumeration via inconsistent responses. |
| CVE-2004-2150 | User enumeration via discrepancies in error messages. |
| CVE-2005-1650 | User enumeration via discrepancies in error messages. |
| CVE-2004-0294 | Bulletin Board displays different error messages when a user exists or not, which makes it easier for remote attackers to identify valid users and conduct a brute force password guessing attack. |
| CVE-2004-0243 | Operating System, when direct remote login is disabled, displays a different message if the password is correct, which allows remote attackers to guess the password via brute force methods. |
| CVE-2002-0514 | Product allows remote attackers to determine if a port is being filtered because the response packet TTL is different than the default TTL. |
| CVE-2002-0515 | Product sets a different TTL when a port is being filtered than when it is not being filtered, which allows remote attackers to identify filtered ports by comparing TTLs. |
| CVE-2001-1387 | Product may generate different responses than specified by the administrator, possibly leading to an information leak. |
| CVE-2004-0778 | Version control system allows remote attackers to determine the existence of arbitrary files and directories via the -X command for an alternate history file, which causes different error messages to be returned. |
| CVE-2004-1428 | FTP server generates an error message if the user name does not exist instead of prompting for a password, which allows remote attackers to determine valid usernames. |

## Real CVEs with this weakness (sample of 12 of 221)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2018-25350 | userSpice 4.3.24 Username Enumeration via existingUsernameCheck.php | critical | 9.3 | - | No | 2026-05-23 |
| CVE-2026-60007 | Observable Response Discrepancy in Eclipse Foundation Eclipse Milo | critical | 9.1 | - | No | 2026-08-04 |
| CVE-2026-15747 | Mojolicious versions from 4.59 before 9.48 for Perl expose a stable representation of the session CSRF token to a BREACH compression oracle | critical | 9.1 | - | No | 2026-07-14 |
| CVE-2026-33419 | MinIO: LDAP login brute-force via user enumeration and missing rate limit | critical | 9.1 | - | No | 2026-03-24 |
| CVE-2025-5485 | SinoTrack GPS Receiver Weak Authentication | high | 8.8 | - | No | 2025-06-12 |
| CVE-2026-69519 | Azure Stack HCI Information Disclosure Vulnerability | high | 8.6 | - | No | 2026-08-20 |
| CVE-2026-100164 | User Enumeration in Rolantis Information Technologies' Agentis | high | 7.5 | - | No | 2026-10-27 |
| CVE-2026-14177 | User Enumeration via Password Reset in IKAS Technology Inc.'s ikas E-Commerce Infrastructure | high | 7.5 | - | No | 2026-10-16 |
| CVE-2026-19205 | User Enumeration in GastroMenum's GastroMenum Web Panel | high | 7.5 | - | No | 2026-09-04 |
| CVE-2026-19080 | Username Enumeration in Menulux Software's Menulux Portal | high | 7.5 | - | No | 2026-09-04 |
| CVE-2026-27462 | Combodo iTop: User enumeration via password reset | high | 7.5 | - | No | 2026-08-21 |
| CVE-2025-46390 | - | high | 7.5 | - | No | 2025-08-06 |

## Related attack patterns (CAPEC)

- [CAPEC-331](https://radicalnotion.ai/capec/capec-331): ICMP IP Total Length Field Probe
- [CAPEC-332](https://radicalnotion.ai/capec/capec-332): ICMP IP 'ID' Field Error Message Probe
- [CAPEC-541](https://radicalnotion.ai/capec/capec-541): Application Fingerprinting
- [CAPEC-580](https://radicalnotion.ai/capec/capec-580): System Footprinting

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-203](https://radicalnotion.ai/cwe/cwe-203) | Observable Discrepancy |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Response discrepancy infoleak | - | - |
| OWASP Golang Secure Coding Practices Guide | Authentication and Password Management | - | - |

## Frequently asked questions

### What is CWE-204?

The product provides different responses to incoming requests in a way that reveals internal state information to an unauthorized actor outside of the intended control sphere.

### What CVEs are caused by CWE-204?

221 recorded CVEs are attributed to CWE-204, including CVE-2018-25350, CVE-2026-60007 and CVE-2026-15747.

### Is CWE-204 part of the OWASP Top 10?

CWE-204 maps to OWASP Golang Secure Coding Practices Guide: Authentication and Password Management in the OWASP security taxonomy.

### How do you prevent CWE-204?

Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.

### What are the consequences of CWE-204?

Exploiting CWE-204 can lead to: Read Application Data, Bypass Protection Mechanism.

### Is CWE-204 actively exploited?

221 recorded CVEs are caused by CWE-204; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/204.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-204). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
