Cross Site WebSocket Hijacking
The WebSocket endpoint did not validate the Origin header, so a malicious site could open a WebSocket to it using the victim's cookies. An attacker could then read server responses and perform actions as the victim, similar to CSRF but with readable responses.
- Disclosed after 7 months
Description:
The given URL fails to validate Origin header- leading to Cross-Site WebSocket Hijacking.
Impact:
The impact, however, depends on how the server is configured. For example, it might require an authentication token which are user specific. In such cases, it might not be as sever as it would be in cases where server doesn't require anything at all.
Since almost all the request in the site are performed in web socket, it might be possible to hijack the websocket. The impact would be similar to side-wise CSRF plus every response from server could be possible to be read by attacker.
Affected Domain:
app.legalrobot.com/socketjs/444/jfalksf/websocket
Reference:
https://www.christian-schneider.net/CrossSiteWebSocketHijacking.html https://www.notsosecure.com/how-cross-site-websocket-hijacking-could-lead-to-full-session-compromise/
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
Impact
An attacker could hijack the WebSocket to read server responses and act as the victim, with severity depending on whether the server requires a user-specific authentication token.
What the attacker needed
Victim interacts with attacker-controlled content; server configuration permits hijack
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.
WebSockets are a way for a browser to keep a two-way connection open with a website. Normally a site checks the Origin header, which tells it which website the connection came from, to stop other sites from connecting. Here that check was missing, so a page on another site could connect to the victim's session and read what came back.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.