Pre-auth Stored XSS to RCE in NorthStar C2
CVE-2024-28741 is a pre-authentication stored cross-site scripting (XSS) vulnerability in the NorthStar C2 command and control framework. The vulnerability exists in the way agent registration data, specifically the agent ID, is logged and displayed unsanitized in the operator's web panel logs (logs.php). An unauthenticated attacker can register multiple malicious agents with specially crafted IDs, incrementally constructing a persistent JavaScript payload in the logs page. When an operator views the logs, the payload executes in their browser context, enabling further attacks such as session hijacking and remote code execution (RCE) on all connected agents. The vulnerability is due to insufficient input sanitization in the agent registration and log display processes.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows a remote, unauthenticated attacker to execute arbitrary JavaScript in the context of the operator's session. This can be chained to exfiltrate the operator's PHPSESSID cookie, gain authenticated access to the C2 panel, issue arbitrary commands to all connected agents, terminate existing agents, and deploy the attacker's own C2 agents. This effectively enables full compromise of the C2 infrastructure and all machines under its control. The vulnerability is critical due to its pre-authentication nature and the potential for mass compromise.
If you can’t patch tonight, do this now.
If immediate patching is not possible, restrict access to the NorthStar C2 web panel to trusted IP addresses only. Monitor for suspicious agent registrations and unusual log entries. Consider disabling or limiting the logs page until the patch can be applied. Employ web application firewalls (WAFs) to filter malicious input targeting the logs.php endpoint.
Patch, then assume compromise.
Upgrade to the patched version of NorthStar C2 that includes the fix for CVE-2024-28741. The vulnerability was addressed in a commit to logs.php (SHA 7674a44) on March 11, 2024. Ensure all instances are updated to this or a later version. Review and sanitize all user-supplied input, especially in agent registration and log display functionality.
2 exploits validated by Mallory's analysis.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.