GeoVision GeoWebPlayer Websocket Server connectInfo handler stack-based buffer overflow vulnerabilities
The GeoWebPlayer websocket server copies JSON fields (username, password, key, ip) into fixed-size stack buffers without checking length, causing stack-based buffer overflows. An attacker could stage a malicious webpage that sends a crafted websocket message to achieve arbitrary code execution.
Originally disclosed on Cisco Talos
Multiple exploitable stack-based buffer overflow vulnerabilities exist in the Websocket Server connectInfo handler functionality of GeoWebPlayer (version(s): 1.1.1.0). A specially crafted websocket message can lead to a 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 code copies JSON string values into fixed-size stack buffers using unbounded loops, without checking the length of the input.
Impact
An attacker could achieve arbitrary code execution by tricking a user into visiting a malicious webpage that sends a crafted websocket message.
What the attacker needed
Victim visits a malicious webpage; GeoWebPlayer websocket server running
The fix
The vendor released a patch; the code should check input length before copying into fixed-size buffers.
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.
A websocket is a two-way connection between a web page and a server. The server here takes text from the message and copies it into a small fixed-size box in memory without checking if it fits. If the text is too long, it spills over into nearby memory, which can let an attacker 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.