Lucene search
K

Python urllib HTTP Header Injection

🗓️ 16 Jun 2016 00:00:00Reported by Timothy D. MorganType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 28 Views

Python urllib vulnerability to HTTP Header Injectio

Code
`  
Python's built-in URL library ("urllib2" in 2.x and "urllib" in 3.x)  
is vulnerable to protocol stream injection attacks (a.k.a. "smuggling"  
attacks) via the http scheme. If an attacker could convince a Python  
application using this library to fetch an arbitrary URL, or fetch a  
resource from a malicious web server, then these injections could  
allow for a great deal of access to certain internal services.  
  
URLs of the following form allow injection into the HTTP stream:  
  
http://127.0.0.1%0d%0aX-injected:%20header%0d%0ax-leftover:%20:12345/foo  
http://localhost%00%0d%0ax-bar:%20:12345/foo  
  
More details here:  
http://blog.blindspotsecurity.com/2016/06/advisory-http-header-injection-in.html  
  
Thank you,  
tim  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation