Sony IPELA E Series Camera 802dot1xclientcert remote code execution vulnerability
A stack-based buffer overflow in the 802dot1xclientcert.cgi endpoint of Sony IPELA E Series cameras allows an attacker to send a crafted POST request with an overly long boundary value in the Content-Type header, leading to remote code execution. The vulnerability is due to unchecked copying of the boundary string into a fixed-size stack buffer.
Originally disclosed on Cisco Talos
An exploitable stack-based buffer overflow vulnerability exists in the 802dot1xclientcert.cgi functionality of Sony IPELA E Series Camera. A specially crafted POST can cause a stack-based buffer overflow, resulting in remote code execution.
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 code copies the boundary string from the Content-Type header into a fixed-size stack buffer without verifying its length, causing a stack-based buffer overflow.
Impact
An attacker could remotely execute arbitrary code on the device, potentially taking full control of the camera.
What the attacker needed
Authentication as admin (PR:H); network access to the camera
The fix
The vendor patched the vulnerability, likely by adding a length check before copying the boundary data.
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.
This is a buffer overflow bug in a camera's web interface. The camera takes a part of an HTTP header (the 'boundary' value) and copies it into a small memory space without checking its length. If an attacker sends a very long boundary, it overwrites nearby memory, which can let them run their own commands on the camera.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.