Authentication Bypass through HTTP Request Smuggling on https://apm.ap.tesla.services
The service at apm.ap.tesla.services was vulnerable to HTTP request smuggling, allowing an attacker to bypass front-end security controls and access protected resources such as /metrics. The attacker could access any protected resource using the same controls.
Tesla
Originally disclosed on Bugcrowd
- Accepted in 22 days
- Fixed in 23 days
- Disclosed after 5 months
Summary by riramar
The service under https://apm.ap.tesla.services is vulnerable to HTTP Request Smuggling allowing an attacker to bypass front-end security controls.
Report details
-
Submitted
06 Sep 2020 00:11:13 UTC
-
Target Location
*.tesla.services -
Target category
Web App
-
VRT
Broken Authentication and Session Management > Authentication Bypass
-
Priority
P3
-
Bug URL
https://apm.ap.tesla.services/metrics -
Description
The service under https://apm.ap.tesla.services is vulnerable to HTTP Request Smuggling allowing an attacker to bypass front-end security controls. As PoC I'm using the URL https://apm.ap.tesla.services/metrics which returns 401 (Unauthorized) when you access it.
By performing the Burp Intruder attack below with the CLTE payload an attacker can bypass the front-end and access https://apm.ap.tesla.services/metrics.
Notice the path /metrics is just an example. Any protected resource using the same security controls can be exploited in the same way. Please check the video attached (apm.ap.tesla.services-poc.mp4) for reference to reproduce and I'm providing the Burp Intruder payload below.
-
HTTP request
POST /?cb=906971031432954 HTTP/1.1 Transfer-Encoding : chunked Host: apm.ap.tesla.services Connection: keep-alive ID: §0§ User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36 Content-type: application/x-www-form-urlencoded; charset=UTF-8 Content-Length: 65 1 Z 0 GET /metrics HTTP/1.1 Host: apm.ap.tesla.services 0
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a discrepancy in how the front-end and back-end servers parse the Transfer-Encoding and Content-Length headers, allowing a smuggled request to be processed by the back-end.
Impact
An attacker could bypass front-end security controls and access any protected resource that uses the same controls, potentially leading to information disclosure or further compromise.
What the attacker needed
Network access to the service
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
HTTP request smuggling is a technique where an attacker sends a specially crafted request that is interpreted differently by two servers (like a front-end proxy and a back-end server). This can let the attacker sneak in a second request that bypasses security checks. Here, the attacker could access a protected page (/metrics) that normally returns 401 Unauthorized.
What is Smuggling / CRLF?
A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.