LogRhythm Zero Days
The LogRhythm Web Console sent SmartResponse commands over WebSockets without proper authentication or access control, allowing a low-privileged user to execute arbitrary PowerShell commands as SYSTEM on any connected agent. Additionally, the WebSocket handshake lacked Origin validation, enabling a malicious website to hijack a victim's session and achieve remote code execution.
cybercx.com.au
Published on cybercx.com.au
{{media:1}} by Liam O’Shannessy
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the WebSocket implementation lacked authentication, access control checks, and Origin header validation, while the agent ran with SYSTEM privileges by default.
Impact
A low-privileged user could execute arbitrary code with SYSTEM privileges on all connected agent hosts, and a malicious website could exploit the CSWH vulnerability to achieve the same via a victim's browser, bypassing network restrictions.
What the attacker needed
A LogRhythm Web Console account; victim visits a malicious site (for CSWH); network access to the Web Console
The fix
LogRhythm released fixed versions (7.6 and later) and provided a hardening guide for browser security.
How it was found
- Intercept the WebSocket traffic that carries SmartResponse commands.
- Modify the PowerShell command in the WebSocket message to an arbitrary payload.
- Change the 4-digit parameter that identifies the target agent to one the user should not access.
- Send the modified WebSocket message to execute the command on the chosen agent.
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 write-up has not been written yet. The Original tab links to the source.
The LogRhythm Web Console lets users run commands on other computers. The commands were sent over a WebSocket connection that did not check who was sending them or which computer they were meant for. This meant a user with low permissions could run any command as the highest-privileged Windows account on any connected machine, and a malicious website could do the same if a logged-in user visited it.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.