Komari Cross-Site WebSocket Hijacking Vulnerability Allowing Remote Code Execution
Vulnerability
A Cross-Site WebSocket Hijacking vulnerability has been identified in Komari versions prior to 1.0.4-fix1. The issue arises because the WebSocket upgrader disabled origin checking, allowing any third-party website to send requests to the terminal WebSocket endpoint with the user's browser cookies. This could lead to remote code execution on the server.
Impact
Exploitation of this vulnerability allows for remote code execution on the server where Komari is running.
Reproduction
To reproduce this vulnerability, log into a Komari instance and host an HTML page that sends a WebSocket request to the terminal endpoint, including the necessary cookies. When the page is visited, the WebSocket connection will be established, and commands can be sent to the server for execution.
Remediation
Users can upgrade to Komari version 1.0.4-fix1 to address this vulnerability.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
