CWP Bugs Allow Code Execution as Root on Linux Servers, Patch Now

CWP Bugs Allow Code Execution as Root on Linux Servers, Patch Now

Two security vulnerabilities that impact the Control Web Panel (CWP) software can be chained by unauthenticated attackers to gain remote code execution (RCE) as root on vulnerable Linux servers.

CWP, previously known as CentOS Web Panel, is a free Linux control panel for managing dedicated web hosting servers and virtual private servers.

The two security flaws found by Octagon Networks’ Paulos Yibelo are a file inclusion vulnerability (CVE-2021-45467) and a file write (CVE-2021-45466) bug that lead to RCE when chained together.

Also Read: What Does A Data Protection Officer Do? 5 Main Things

In short, successful exploitation requires bypassing security protections to prevent attackers from reaching the restricted API section without authentication.

This can be done by registering an API key using the file inclusion bug and creating a malicious authorized_keys file on the server using the file write flaw.

While the CVE-2021-45467 file inclusion vulnerability was patched, Octagon Networks says that they saw how “some managed to reverse the patch and exploit some servers.”

Octagon Networks says that, while the CVE-2021-45467 file inclusion vulnerability was patched, they saw how “some managed to reverse the patch and exploit some servers.”

Also Read: The DNC Registry Singapore: 5 Things You Must Know

The security researchers also said they would release a proof-of-concept exploit for this pre-auth RCE chain after enough Linux servers running CWP will get upgraded to the latest version.

According to CWP’s developers, their software supports the following operating systems: CentOS, Rocky Linux, Alma Linux, and Oracle Linux

While the CWP site claims that roughly 30,000 servers are running CWP, BleepingComputer found almost 80,000 Internet-exposed CWP servers on BinaryEdge. 

Over 200,000 can also be found on Shodan and Censys, according to the researchers who discovered the pre-authentication RCE chain.

Privacy Ninja

Recent Posts

Role of Enhanced Access Controls in Safeguarding Personal Data in Telecommunications

Role of Enhanced Access Controls in Safeguarding Personal Data in Telecommunications that every Organisation in…

2 weeks ago

Role of Effective Incident Response Procedures in Strengthening Data Security

Effective Incident Response Procedures in Strengthening Data Security that every Organisation in Singapore should know…

2 weeks ago

Strengthening Your Cyber Defenses: The Crucial Role of Regular Vulnerability Scanning

Crucial Role of Regular Vulnerability Scanning that every Organisation in Singapore should know. Strengthening Your…

2 weeks ago

Enhancing Data Security with Multi-Factor Authentication

Enhancing Data Security with Multi-Factor Authentication that every Organisation in Singapore should know. Enhancing Data…

3 weeks ago

A Strong Password Policy: Your Organization’s First Line of Defense Against Data Breaches

Strong Password Policy as a first line of defense against data breaches for Organisations in…

3 weeks ago

Enhancing Website Security: The Importance of Efficient Access Controls

Importance of Efficient Access Controls that every Organisation in Singapore should take note of. Enhancing…

4 weeks ago