User Enumeration via Distinct Error Messages in langgenius/dify-web
In langgenius/dify-web version 1.6.0, the authentication mechanism reveals the existence of user accounts by returning different error messages for non-existent and existing accounts. Specifically, when a login or registration attempt is made with a non-existent username or email, the system responds with a message such as "account not found." Conversely, when the username or email exists but the password is incorrect, a different error message is returned. This discrepancy allows an attacker to enumerate valid user accounts by analyzing the error responses, potentially facilitating targeted social engineering, brute force, or credential stuffing attacks.
Problem Types
| Type | CWE ID | Description |
|---|
| CWE | CWE-544 | CWE-544 Missing Standardized Error Handling Mechanism |
Type: CWE
Description: CWE-544 Missing Standardized Error Handling Mechanism
Metrics
| Version | Base score | Base severity | Vector |
|---|
| 3.0 | 4.3 | MEDIUM | CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Version: 3.0
Base score: 4.3
Base severity: MEDIUM
Vector: CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N