Samsung SmartThings Hub hubCore Port 39500 HTTP Header Injection Vulnerability
The hubCore process on the SmartThings Hub accepts unauthenticated JSON messages on port 39500 and relays them to remote servers, which build an HTTP request to the internal video-core service without stripping CRLF sequences from the camera ID. An attacker on the network could inject extra HTTP requests into that internal request, and the text says this can be chained with other vulnerabilities to reach code execution.
Originally disclosed on Cisco Talos
An exploitable HTTP header injection vulnerability exists in the remote servers of Samsung SmartThings Hub. The hubCore process listens on port 39500 and relays any unauthenticated message to SmartThings’ remote servers, which insecurely handle JSON messages, leading to partially controlled requests generated toward…
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 remote SmartThings servers build an internal HTTP request from attacker-controlled JSON without neutralising CRLF sequences in the camera ID.
Impact
An attacker on the network could inject pipelined HTTP requests into the internal video-core service, and the text states this can be chained with other vulnerabilities to achieve arbitrary code execution without authentication.
What the attacker needed
Network access to the hub on port 39500; no authentication required
The fix
The vendor patched the issue according to the timeline.
How it was found
- Send a sync request containing a camera ID with embedded CRLF sequences to port 39500 on the hub.
- hubCore forwards the JSON to the remote SmartThings servers.
- The servers build a DELETE request to video-core using the camera ID without stripping the CRLF characters.
- hubCore forwards the resulting request, including the injected pipelined request, to video-core on port 3000.
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.
The hub has a small internal web service that only the hub itself should talk to. A second program on the hub passes messages from the network to the vendor's servers, and those servers write a request back to the internal service using text the attacker supplied. Because newline characters in that text are not removed, an attacker can sneak in a whole extra request, like adding an extra line to a letter so the reader sees a second message.
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.