Information Exposure Affecting follow-redirects package, versions <1.15.6
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.04% (12th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-FOLLOWREDIRECTS-6444610
- published 15 Mar 2024
- disclosed 14 Mar 2024
- credit 4xpl0r3r
Introduced: 14 Mar 2024
CVE-2024-28849 Open this link in a new tabHow to fix?
Upgrade follow-redirects
to version 1.15.6 or higher.
Overview
Affected versions of this package are vulnerable to Information Exposure due to the handling of the Proxy-Authorization
header across hosts. When using a dependent library, it only clears the authorization header during cross-domain redirects but allows the proxy-authentication header, which contains credentials, to persist. This behavior may lead to the unintended leakage of credentials if an attacker can trigger a cross-domain redirect and capture the persistent proxy-authentication header.
PoC
const axios = require('axios');
axios.get('http://127.0.0.1:10081/',{
headers: {
'AuThorization': 'Rear Test',
'ProXy-AuthoriZation': 'Rear Test',
'coOkie': 't=1'
}
}).then(function (response) {
console.log(response);
})
References
CVSS Scores
version 3.1