Skip to content
CSRF Write-up Intermediate

Taking Remote Control of Computer Hardware

The Logitech Options software ran a local WebSocket server that did not check the Origin header during the handshake and used only a process ID for authentication. An attacker could brute-force the process ID and then send commands to control the user's mouse and other hardware from any website the user visited.

netsparker.com

Published on netsparker.com

Increased digitization means that web browsers are integral to our daily lives. For example, I’m writing this article on a cloud-based word processing application, whereas a few years ago, I may only have had the option of using an executable desktop application.

The author, on netsparker.com

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 server did not validate the Origin header during the handshake and relied on a guessable process ID for authentication.

Impact

An attacker could remotely control the user's mouse and potentially other hardware, but only if the user visited a malicious website while Logitech Options was running.

What the attacker needed

Logitech Options installed and running; victim visits a malicious website

The fix

The WebSocket server should validate the Origin header during the handshake and enforce proper authentication instead of relying on a process ID.

How it was found

  1. The user installs Logitech Options, which starts a local WebSocket server on port 10134.
  2. The attacker hosts a website that opens a WebSocket connection to localhost:10134.
  3. The server accepts the connection without checking the Origin header.
  4. The attacker brute-forces the process ID to authenticate.
  5. The attacker sends crafted JSON messages to control the device.

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.

A WebSocket is a way for a web page to keep a two-way connection open with a server. Here, a program on the computer (Logitech Options) ran a small server that any website could connect to because it did not check which website was asking. The only protection was a number (process ID) that could be guessed by trying many values, so an attacker could take control of the mouse.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.