CVE-2024-31839 is a cross-site scripting vulnerability in tiagorlampert CHAOS (CHAOS RAT) version 5.0.1. The flaw is present in the sendCommandHandler function in the handler.go component. A remote attacker may exploit the issue to escalate privileges; public exploitation material describes an XSS-to-RCE attack path.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a single Metasploit module (chaos_rat_xss_to_rce.rb) targeting the CHAOS RAT (Remote Administration Tool) web application, specifically version 5.0.8 and commit 7d5b20ad7e58e5b525abdcb3a12514b88e87cef2, running on Linux/Unix. The module exploits two vulnerabilities: CVE-2024-30850 (remote command execution) and CVE-2024-31839 (cross-site scripting). The exploit can be performed in three ways: (1) using valid credentials to log in and trigger RCE, (2) using a JWT token from a compromised agent to emulate a host and trigger XSS leading to RCE, or (3) extracting a JWT token from a Chaos Agent binary. The module is operational and provides remote command execution on the target. The main endpoints involved are the root URI (/) and the authentication endpoint (/auth). The code is written in Ruby and is structured as a standard Metasploit exploit module, making use of Metasploit's HTTP client and server mixins. No hardcoded IPs or domains are present; the module is configurable for target host, port, credentials, JWT, and agent binary.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.