Skip to content
CSRF Write-up Intermediate

MeshCentral Cross-Site Websocket Hijacking Vulnerability (CVE-2024-26135)

MeshCentral's websocket endpoint lacked origin checks, allowing a malicious site to open a cross-site websocket connection as the victim. An attacker could then create login tokens and read the server configuration to obtain the session signing key, leading to account compromise.

Adam Crosser Follow

Published on praetorian.com

In this article we discuss a recent cross-site websocket hijacking (CSWSH) vulnerability that we identified in MeshCentral, a web-based remote monitoring and endpoint management solution. MITRE assigned the CVE identifier CVE-2024-26135.

Justin Copeland, on praetorian.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

What the attacker needed

Victim logged into MeshCentral; victim clicks a link; attacker controls a same-site subdomain

The fix

The vulnerability was fixed by adding origin checks to the websocket endpoint, as indicated by the security advisory.

How it was found

  1. Set up an attacker-controlled page on a subdomain of the same site to bypass SameSite=Lax.
  2. Have the victim visit that page while logged into MeshCentral.
  3. From the page, open a websocket connection to the control.ashx endpoint.
  4. Send actions such as serverconfig, authcookie, and createLoginToken over the websocket.
  5. Read the responses and exfiltrate the sensitive data to an attacker-controlled system.

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.

Websockets let a web page talk to a server in real time. Normally a site should only accept these connections from its own pages, but MeshCentral did not check where the connection came from. So a malicious page could connect as the logged-in user and perform actions like creating a new login token.

What is CSRF?

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

More by Adam Crosser

View all

8 more disclosed reports, best first.

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.