Skip to content
RCE Write-up Intermediate

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 author, on cybercx.com.au

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

  1. Intercept the WebSocket traffic that carries SmartResponse commands.
  2. Modify the PowerShell command in the WebSocket message to an arbitrary payload.
  3. Change the 4-digit parameter that identifies the target agent to one the user should not access.
  4. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.