94 points · by robin0 · 7y ago · 29 comments
Slides: https://media.defcon.org/DEF%20CON%2025/DEF%20CON%2025%20pre...
I have verified that Requests, which uses us, appears to have its own handling, back at least to requests 2.0 (released in 2013) that prevents this when used directly as an abstraction layer on top of urllib3.
Since it was just a one off use case and ultimately very simple, I didn't see the need for any more functionality. Why bother with the extra packages? Or do you think it's still worthwhile to use Requests even still? Is it not just unnecessary bloat that might slow runtime?
Edit: this bug sat around for almost 2 years, it will be interesting to see if it gets fixed now that it is getting attention on Hacker News
https://github.com/kennethreitz/requests/blob/75bdc998e2d430...
hannob opened an issue asking about this:
actual CVE entry: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-9740
golang had the same bug which was fixed in this commit: https://github.com/golang/go/commit/829c5df58694b3345cb5ea41...
urllib3 is a 3rd-party library that powers requests. It tries to offer a more powerful set of features behind a better interface.