Static Web Server: Timing-Based Username Enumeration in Basic Authentication
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| static-web-server | static-web-server | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Static-web-server | Static Web Server |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-qhp6-635j-x7r2 | Static Web Server affected by timing-based username enumeration in Basic Authentication due to early response on invalid usernames |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.394% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:static-web-server:static_web_server:*:*:*:*:*:rust:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Static-web-server
Static-web-server static Web Server |
|
| Vendors & Products |
Static-web-server
Static-web-server static Web Server |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Static Web Server (SWS) is a production-ready web server suitable for static web files or assets. In versions 2.1.0 through 2.40.1, a timing-based username enumeration vulnerability in Basic Authentication allows attackers to identify valid users by exploiting early responses for invalid usernames, enabling targeted brute-force or credential-stuffing attacks. SWS checks whether a username exists before verifying the password, causing valid usernames to follow a slower code path (e.g., bcrypt hashing) while invalid usernames receive an immediate 401 response. This timing discrepancy allows attackers to enumerate valid accounts by measuring response-time differences. This issue has been fixed in version 2.41.0. | |
| Title | Static Web Server: Timing-Based Username Enumeration in Basic Authentication | |
| Weaknesses | CWE-204 | |
| References |
| |
| Metrics |
cvssV3_1
|