Skip to content

Fix Websocket hijacking vulnerability#34

Open
wwwarrior wants to merge 1 commit intopurpleworks:masterfrom
wwwarrior:master
Open

Fix Websocket hijacking vulnerability#34
wwwarrior wants to merge 1 commit intopurpleworks:masterfrom
wwwarrior:master

Conversation

@wwwarrior
Copy link

WebSockets don't follow the Same-Origin Policy. This means that if the application relies on cookies (or Basic authentication) to perform authentication/authorization, a malicious website can get a victim to access this application via a WebSocket and potentially access/modify sensitive data as this user.

I created a Proof of Concept (malicious html-page) allowing read logs through this vulnerability.

More information about the vulnerability you can find here:
https://portswigger.net/web-security/websockets/cross-site-websocket-hijacking

To prevent this issue, the Origin header check was added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant