Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2024-28741: Pre-auth Stored XSS to RCE in NorthStar C2

Published Apr 6, 2024 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS78.2%100th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2024-28741CWE-79 · Improper Neutralization of Input…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
northstar_c2_xss_to_agent_rce.rbThis repository contains a single Metasploit module (modules/exploits/windows/http/northstar_c2_xss_to_agent_rce.rb) that exploits a stored XSS vulnerability (CVE-2024-28741) in NorthStar C2 prior to commit 7674a44 (March 11, 2024). The exploit targets the NorthStar C2 web interface, allowing an unauthenticated attacker to inject a malicious XSS payload via simulated agent registration. When an administrator views the logs page, the XSS executes, hijacking their session. The module then uses the stolen session to enumerate all live agents (typically Windows hosts) and issues arbitrary commands to them, achieving remote code execution. The exploit can also optionally kill the agent process. The module interacts with several HTTP endpoints on the NorthStar C2 server, including /getin.php, /clients.php, /functions/setCommand.nonfunction.php, /getresponse.php, and /login.php. The payload is customizable and delivered as a command to the agent. The exploit requires the attacker to configure a listener (SRVHOST) and is operational, providing real RCE on vulnerable deployments. The code is written in Ruby and is designed to be used within the Metasploit framework.Disclosed Mar 12, 2024 · Framework: metasploit · ruby · network · browserWeaponizedCVE-2024-28741-northstar-agent-rce-pocThis repository contains a proof-of-concept exploit for CVE-2024-28741, a stored XSS vulnerability in NorthStar C2 v1.0. The exploit is implemented in a single Python script (exploit.py) and is accompanied by a README.md that explains the vulnerability and provides background information. The exploit works by sending a series of malicious agent registration requests to the NorthStar C2 teamserver, incrementally constructing a JavaScript payload in the logs web page. When an administrator views the logs, the XSS is triggered, allowing the attacker to steal the admin's session cookie. The script then uses the stolen session to enumerate online agents and execute arbitrary commands on them, including downloading and running a DLL payload from the attacker's server. The exploit demonstrates full remote code execution on agent hosts. The code is operational and includes all necessary logic to perform the attack, including a local HTTP server to receive the stolen cookie and orchestrate the attack chain. The main endpoints involved are the NorthStar C2 teamserver (http://192.168.1.4:80) and the attacker's payload server (http://192.168.1.6:8000).chebuya · Disclosed Mar 12, 2024 · python · network · browserOperational
FAQ

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.
Activity feed

Recent activity

No public activity tracked yet. Mallory keeps watching.

View more in app →

No public activity observed for this vulnerability.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.