vproxy
Affected
- introduced
0, fixed2.4.0(semver)
Fixed versions
2.4.0
Fix
- Fixed version
2.4.0cargo update -p vproxy --precise 2.4.0
Advisory
Also known as: CVE-2025-54581
vproxy Divide by Zero DoS Vulnerability
Summary
Untrusted, user-controlled data from the HTTP Proxy-Authorization header can induce a denial of service state.
Details
Untrusted data is extracted from the user-controlled HTTP Proxy-Authorization header and passed to Extension::try_from and flows into parse_ttl_extension where it is parsed as a TTL value. If an attacker supplies a TTL of zero (e.g. by using a username such as 'configuredUser-ttl-0'), the modulo operation 'timestamp % ttl' will cause a division by zero panic, causing the server to crash causing a denial-of-service.
The code assumed to be responsible for this can be found here: https://github.com/0x676e67/vproxy/blob/ab304c3854bf8480be577039ada0228907ba0923/src/extension.rs#L173-L183
PoC
curl -x "http://test-ttl-0:[email protected]:8101" https://google.comImpact
The resulting crash renders the proxy server unusable until it is reset.
Finally, one last note: I'm reporting this on behalf of another researcher at Black Duck. Credit for discovery should be attributed to David Bohannon (dbohannon)
High Basis: The source's own band: HIGH
0, fixed 2.4.0 (semver)2.4.0
2.4.0cargo update -p vproxy --precise 2.4.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0