Skip to content
Vulnerabilities

XWorm C2 Panel Flaw Allows Remote Code Execution Without Authentication

An unauthenticated remote code execution flaw in XWorm versions up to 7.4 lets attackers take over command servers using details from client configs.

Illustration: A sleek black server tower sits on a concrete floor, its rear ports exposed to the air.
AI-generated illustration: AppSec Scoop

Key points

  • Versions up to 7.4 of the XWorm C2 panel contain an unauthenticated remote code execution flaw.
  • Attackers can exploit the flaw using the panel address, port and communication key found in client configurations.
  • Researcher Mootoo confirmed the vulnerability is being exploited on a limited scale against infrastructure.

An unauthenticated remote code execution vulnerability affects the command and control panel of the XWorm remote access trojan, specifically versions up to 7.4. Independent researcher Mootoo disclosed a proof-of-concept exploit for this flaw after reverse-engineering a sample used in an attack attempt against them.

What happened

Mootoo, an independent researcher based in Oman, identified the vulnerability on 4 October while analysing an XWorm sample. The researcher published a proof-of-concept exploit demonstrating how an attacker can execute arbitrary code on the C2 host without authentication. According to SecurityWeek, the flaw allows an adversary to pose as an infected machine by leveraging the panel’s address, port and communication key, all of which are accessible within the XWorm client’s configuration files.

The attack mechanism involves overwriting a dynamic link library through path traversal. This action results in code execution on the command and control server without requiring any action from the malware operator. Mootoo told SecurityWeek that they used this flaw to compromise infrastructure linked to the individual behind the attack attempt. The researcher noted that the vulnerability appears to be exploited on a limited scale, indicating active but not widespread abuse of this specific vector.

Why it matters

This flaw inverts the typical threat model by allowing external actors to compromise the attacker’s own infrastructure. For security operations teams monitoring for XWorm activity, this represents a significant opportunity to disrupt malicious campaigns. The ability to execute code on the C2 server means defenders can potentially identify operator identities, trace infrastructure and disrupt ongoing attacks. However, the public availability of the proof-of-concept exploit increases the risk that other threat actors may use this method to seize control of rival command and control panels.

What happens next

Organisations should verify whether any internal systems are running XWorm C2 panel software, particularly if they operate honeypots or threat intelligence infrastructure. Teams should check for any unauthorised changes to dynamic link libraries on servers hosting such panels. If the software is in use, administrators should review access logs for signs of path traversal attempts. Security teams should also monitor for unusual outbound connections from these servers, which could indicate that an attacker has gained control and is relaying commands.

Patch priority

Teams usually prioritise systems that host command and control infrastructure or are exposed to the internet. Check whether your environment runs any versions of XWorm up to 7.4. If so, isolate these systems immediately to prevent further exploitation. Back up configuration files before making any changes to the software. Test any available updates in a controlled environment before rolling them out to production systems. If no fix is available, restrict network access to the panel and monitor for unauthorised DLL modifications.

Background: Remote code execution vulnerabilities

Remote code execution often occurs because developers trust user input without validation, fail to restrict file permissions, or neglect to update dependencies. Fix these errors by enforcing strict input sanitisation, applying least-privilege principles, and integrating automated security checks into your secure software development lifecycle to prevent arbitrary command execution.

Read the full guide: Seven Configuration Mistakes That Allow Remote Code Execution

What to do and how to stay safe: XWorm

  • Verify if any internal servers are running XWorm C2 panel software, particularly versions up to 7.4.
  • Restrict network access to command and control panels to trusted IP addresses only.
  • Monitor server logs for path traversal attempts or unauthorised modifications to dynamic link libraries.
  • Review client configuration files to ensure communication keys and addresses are not exposed.

Step-by-step guide: Patch Management: Definition, Purpose and Operational Reality

General security guidance from the AppSec Scoop newsroom. It is not confirmed advice from the organisations named in this story.

Frequently asked questions

Which versions of XWorm are affected by this vulnerability?

Versions up to 7.4 of the XWorm C2 panel are affected by the unauthenticated remote code execution flaw.

How can an attacker exploit this vulnerability?

An attacker can use the panel’s address, port and communication key, found in the client configuration, to pose as an infected machine and execute code.

Is this vulnerability currently being exploited in the wild?

Researcher Mootoo stated that the flaw appears to be exploited on a limited scale, with evidence of infrastructure compromise.

Sources

  1. SecurityWeek
XWormMootooC2 panelremote code executionSecurityWeek

Related stories

Adobe Photoshop Patch Fixes High-Severity Remote Code Execution Flaw

A fix is available for a high-severity vulnerability in Adobe Photoshop that allows remote code execution via malicious PDF files containing JPEG data.