Milesight UR32L uhttpd login buffer overflow vulnerability
A stack-based buffer overflow exists in the uhttpd login function of Milesight UR32L v32.3.0.5. An attacker can send a specially crafted network request to trigger the overflow, potentially leading to remote code execution.
Originally disclosed on Cisco Talos
A buffer overflow vulnerability exists in the uhttpd login functionality of Milesight UR32L v32.3.0.5. A specially crafted network request can lead to 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 decrypted password is written into a fixed-size stack buffer without checking its length, allowing a buffer overflow.
Impact
An attacker could potentially execute arbitrary code remotely without authentication, but the report does not confirm successful exploitation.
What the attacker needed
Network access to the router's web interface
The fix
The vendor did not release a patch within 90 days, so the vulnerability remains unpatched; it should be fixed by adding a length check before decrypting into the stack buffer.
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 router's login page takes a password, decrypts it, and stores the result in a small fixed-size memory area on the stack. If an attacker sends a very long password, the decrypted data overflows that area, corrupting nearby memory. This can crash the router or allow the attacker to run their own code.
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.