Samsung SmartThings Hub video-core REST Request Parser HTTP Pipelining Injection Vulnerabilities
The video-core HTTP server on the Samsung SmartThings Hub mishandles pipelined HTTP requests, so callbacks for the URL, body and method reuse shared buffers and the last request overwrites earlier ones. An attacker able to reach the local service could smuggle a request whose method, path and body come from different pipelined requests, and chain this with other bugs to reach code execution.
Originally disclosed on Cisco Talos
Multiple exploitable vulnerabilities exist in the REST parser of video-core’s HTTP server of the Samsung SmartThings Hub. The video-core process incorrectly handles pipelined HTTP requests, which allows successive requests to overwrite the previously parsed HTTP method, URL and body.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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
The parser callbacks keep a single shared buffer and length per component instead of resetting state per request, so pipelined requests overwrite each other's method, URL and body.
Impact
An attacker who can reach the local service could smuggle requests to evade detection and chain these flaws with other video-core bugs to achieve arbitrary code execution without authentication.
What the attacker needed
Local network access to port 3000; ability to send pipelined HTTP requests
The fix
The vendor patched the issue, presumably by giving each pipelined request its own parser state rather than shared buffers.
How it was found
- Send two pipelined requests on one connection to the local video-core HTTP port, with the first carrying the path and the second carrying the body.
- Observe that the server treats the combined path and body as a single request and updates the camera record.
- Send a first request with one method and a second request with another method to the same connection.
- Observe in the logs that the method from the second request is used with the path from the first.
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.
When a web server reads several requests sent back-to-back on one connection, it must keep each request's details separate. Here the hub's video service stored the path, body and method in shared slots that each new request overwrote, so the server acted on a mix of two requests. Someone who could talk to that local service could therefore make it do something different from what the first request appeared to ask.
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.