Skip to content
OpenAdvisories

Weakness (CWE)

CWE-1385: Missing Origin Validation in WebSockets

Variant Incomplete

The product uses a WebSocket, but it does not properly verify that the source of data or communication is valid.

How to prevent it (7 mitigations)
  1. Implementation

    Enable CORS-like access restrictions by verifying the 'Origin' header during the WebSocket handshake.

  2. Implementation

    Use a randomized CSRF token to verify requests.

  3. Implementation

    Use TLS to securely communicate using 'wss' (WebSocket Secure) instead of 'ws'.

  4. Architecture and Design, Implementation

    Require user authentication prior to the WebSocket connection being established. For example, the WS library in Node has a 'verifyClient' function.

  5. Implementation

    Leverage rate limiting to prevent against DoS. Use of the leaky bucket algorithm can help with this.

  6. Implementation

    Use a library that provides restriction of the payload size. For example, WS library for Node includes 'maxPayloadoption' that can be set.

  7. Implementation

    Treat data/input as untrusted in both directions and apply the same data/input sanitization as XSS, SQLi, etc.

Source: MITRE CWE-1385

25 results · Clear filters · Feed

  • Medium 6.5

    Goobi viewer: WebSocket endpoints lack server-side authentication and origin validation

    The Goobi viewer is a web application that allows digitised material to be displayed in a web browser. From version 4.11.0 to before version 26.05, several Jakarta WebSocket endpoints in goobi-viewer-core (DownloadTaskEndpoint, CampaignEndpoint, AutocompleteE…

  • Medium 4.3

    Network-AI 5.0.0 before 5.15.2 Cross-Site WebSocket Hijacking via DashboardServer

    Network-AI 5.0.0 before 5.15.2 contains a cross-site WebSocket hijacking vulnerability in DashboardServer that allows remote attackers to read live agent topology because handleUpgrade performs no Origin or token validation. Attackers can lure a victim runnin…

  • Medium 5.3

    Punk versions from 0.48 before 0.55 for Perl route Extended CONNECT requests to any GET route without an Origin check in ps_serve_one

    Punk versions from 0.48 before 0.55 for Perl route Extended CONNECT requests to any GET route without an Origin check in ps_serve_one. On HTTP/2 and HTTP/3 a WebSocket handshake arrives as an Extended CONNECT, which is matched as a GET and so reaches every GE…

  • Medium 5.3

    RabbitMQ: CSWSH on Web-STOMP / Web-MQTT (no Origin validation)

    RabbitMQ is a messaging and streaming broker. Prior to versions 3.13.15, 4.0.20, 4.1.11, 4.2.6, and 4.3.0, Neither the Web-MQTT handler (deps/rabbitmq_web_mqtt/src/rabbit_web_mqtt_handler.erl:104) nor the Web-STOMP handler (deps/rabbitmq_web_stomp/src/rabbit_…

  • Medium 4.7

    rhwp browser extension performs SSRF / private-network requests and leaks HWP preview data to untrusted pages

    rhwp is an HWP viewer and editor implemented in Rust and WebAssembly. Prior to rhwp 0.7.15 and rhwp Chrome and Firefox extension 0.2.4, the browser extensions use an all-URLs host permission to detect HWP and HWPX links on visited pages, but the service worke…

  • Medium 5.4

    Security vulnerabilities have been addressed in IBM Verify Identity Access and IBM Security Verify Access

    IBM Verify Identity Access is missing origin validation which could allow a remote attacker to perform operations as the victim and potentially launch further attacks against the systems.

  • Medium 4.3

    IBM i is Affected By Multiple Vulnerabilities in Navigator for i and Digital Certificate Manager for i.

    IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote attacker to obtain sensitive information due to improper validation of the WebSocket origin.

    IBM i
  • Medium 5.8

    career-ops: Local dashboard API accepted cross-origin and non-loopback requests, allowing unauthenticated command execution

    career-ops is an open-source AI-assisted job search and application management tool. Prior to 0.8.0, the career-ops local web dashboard web/ exposed command-spawning and user-file-writing /api routes without validating request origin or restricting clients to…

  • Medium 6.9

    PassPortal browser extension: vault token disclosure via unvalidated postMessage

    vault token disclosure via unvalidated postMessage vulnerability in N-able PassPortal allows Authentication Abuse. This issue affects the PassPortal browser extension: before 3.49.6.

  • Medium 6.8

    Midscene Bridge Server - Session Hijack via Unauthenticated WebSocket

    Midscene Bridge Server through 1.10.3, fixed in commit 86f4118, contains a missing authentication and CORS misconfiguration vulnerability that allows unauthenticated remote attackers to hijack active bridge sessions by opening a cross-origin WebSocket connect…

  • Medium 6.5

    Kubetail: Cross-Site WebSocket Hijacking allows attacker to read Kubernetes logs from authenticated users

    Kubetail is a real-time logging dashboard for Kubernetes. Prior to 0.14.0, Kubetail's dashboard exposes WebSocket endpoints that did not adequately validate the Origin header on connection upgrade. A malicious web page visited by a user with an active Kubetai…

  • Medium 5.5

    Nginx-UI vulnerable to Cross-Site WebSocket Hijacking (CSWSH) via missing origin validation on all WebSocket endpoints

    Nginx UI is a web user interface for the Nginx web server. Prior to version 2.3.5, all WebSocket endpoints in nginx-ui use a gorilla/websocket Upgrader with CheckOrigin unconditionally returning true, allowing Cross-Site WebSocket Hijacking (CSWSH). Combined …

  • Medium 5.3

    Missing origin validation in GraphicalData web service requests

    A missing origin validation in WebSockets vulnerability affects the GraphicalData web services used by the WebVue, WebScheduler, TouchVue and SnapVue features of PcVue in version 12.0.0 through 16.3.3 included. It might allow a remote attacker to lure a succe…

  • Medium 6.5

    @farmfe/core is Missing Origin Validation in WebSocket

    npm @farmfe/core before 1.7.6 is Missing Origin Validation in WebSocket. The development (hot module reloading) server does not validate origin when connecting to a WebSocket client. This allows attackers to surveil developers running Farm who visit their web…

  • Medium 6.5

    Mailpit is vulnerable to Cross-Site WebSocket Hijacking (CSWSH) allowing unauthenticated access to emails

    Mailpit is an email testing tool and API for developers. Prior to version 1.28.2, the Mailpit WebSocket server is configured to accept connections from any origin. This lack of Origin header validation introduces a Cross-Site WebSocket Hijacking (CSWSH) vulne…

  • Medium 4.5

    Bokeh server applications have Incomplete Origin Validation in WebSockets

    Bokeh is an interactive visualization library written in Python. In versions 3.8.1 and below, if a server is configured with an allowlist (e.g., dashboard.corp), an attacker can register a domain like dashboard.corp.attacker.com (or use a subdomain if applica…

  • Medium 5.3

    GroupSession Free edition prior to ver5.3.0, GroupSession byCloud prior to ver5.3.3, and GroupSession ZION prior to ver…

  • Medium 6.3

    IBM Db2 Mirror for i cross-site websocket hijacking

    IBM Db2 Mirror for i 7.4, 7.5, and 7.6 GUI is affected by cross-site WebSocket hijacking vulnerability. By sending a specially crafted request, an unauthenticated malicious actor could exploit this vulnerability to sniff an existing WebSocket connection to th…

  • Medium 5.4

    Cross-Site WebSocket Hijacking Vulnerability in Hitachi Ops Center Analyzer

    Cross-Site WebSocket Hijacking vulnerability in Hitachi Ops Center Analyzer (RAID Agent component).This issue affects Hitachi Ops Center Analyzer: from 10.8.0-00 before 11.0.4-00; Hitachi Ops Center Analyzer: from 10.9.0-00 before 11.0.4-00.

  • Medium 6.5

    Vite allows any websites to send any requests to the development server and read the response

    Vite is a frontend tooling framework for javascript. Vite allowed any websites to send any requests to the development server and read the response due to default CORS settings and lack of validation on the Origin header for WebSocket connections. This vulner…

  • Medium 5.8

    CWE-1385 vulnerability in OpenText Documentum D2 affecting versions16.5.1 to CE 23.2. The vulnerability could allow upl…

  • Medium 6.0

    Uptime Kuma Missing Origin Validation in WebSockets

    Uptime Kuma is an easy-to-use self-hosted monitoring tool. Prior to version 1.23.9, the application uses WebSocket (with Socket.io), but it does not verify that the source of communication is valid. This allows third-party website to access the application on…

  • Medium 4.7

    Unintentional leakage of private information via cross-origin websocket session hijacking

    NodeBB is affected by a Cross-Site WebSocket Hijacking vulnerability due to missing validation of the request origin. Exploitation of this vulnerability allows certain user information to be extracted by attacker.

  • Medium 4.3

    Cross-Site WebSocket Hijacking in CBOT's Chatbot

    Missing Origin Validation in WebSockets vulnerability in CBOT Chatbot allows Content Spoofing Via Application API Manipulation. This issue affects Chatbot: before Core: v4.0.3.4 Panel: v4.0.3.7.

  • Medium 5.5

    lukehutch Gribbit HttpRequestHandler.java messageReceived missing origin validation in websockets

    A vulnerability was found in lukehutch Gribbit. It has been classified as problematic. Affected is the function messageReceived of the file src/gribbit/request/HttpRequestHandler.java. The manipulation leads to missing origin validation in websockets. The nam…