GeoVision GV-VMS V20 WebCam Server Login stack overflow vulnerability
The WebCam Server login handler copies the user-supplied username into a fixed-size stack buffer without checking its length, so an oversized username overflows the stack. An unauthenticated attacker could overwrite the return address and, because the process lacks ASLR, potentially execute arbitrary code as SYSTEM.
Originally disclosed on Cisco Talos
A stack overflow vulnerability exists in the WebCam Server Login functionality of GV-VMS V20 (version(s): 20.0.2). A specially crafted HTTP request can lead to an arbitrary 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 login logging routine uses an unbounded string copy (strcpy) to place the username into a fixed-size stack buffer, with no length validation and no stack cookie.
Impact
Successful exploitation could lead to remote code execution as SYSTEM on the host machine; the lack of ASLR makes this more likely.
What the attacker needed
WebCam Server remote access enabled; unauthenticated network access to the server
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 login page saves the username you type into a fixed-size space in memory. If you send a much longer username than expected, it spills past that space and overwrites nearby memory, including the address the program returns to. Because the program's memory layout is predictable, an attacker could redirect execution to 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.