PT-2026-55274 · Fiber · Fiber
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
Fiber versions prior to 3.3.0
Description
The default
Authorizer function in the BasicAuth middleware, located in middleware/basicauth/config.go, uses short-circuit evaluation when validating credentials. If a username does not exist, the system skips the password hash comparison entirely. This creates a significant timing difference between requests for valid and invalid usernames—approximately 100ms versus 100ns when using bcrypt—which allows a remote attacker to reliably perform username enumeration by measuring response latency.Recommendations
Update Fiber to version 3.3.0 or later.
Exploit
Fix
Side Channel Attack
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Fiber