CVE-2024-28741: 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.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
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.
Mitigation
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.
Remediation
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.
Exploits
2 exploits validated by Mallory's analysis.
References
Frequently asked questions
- Is CVE-2024-28741 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2024-28741 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-28741?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2024-28741, the earliest disclosed Mar 12, 2024.
- Is there a patch for CVE-2024-28741?
- 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.
- How severe is CVE-2024-28741?
- CVE-2024-28741 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 78.2% (100th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.