Skip to content
RCE Write-up Intermediate

Remote code execution in CentOS Web Panel - CVE-2025-70951

The add-ons module of CentOS Web Panel still allowed requests without authentication, and the dompath parameter was passed unsanitised to a shell command. An attacker who knew a valid username could run arbitrary commands on the server.

fenrisk.com

Published on fenrisk.com

As part of our ongoing research into web hosting control panels, we recently published an analysis of Control Web Panel (CWP), a widely used open-source administration panel designed to manage web servers running…

The author, on fenrisk.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The authentication bypass fix was applied only to the filemanager module, and the dompath parameter in the add-ons install feature was passed unsanitised to a shell command.

Impact

A remote attacker who knows a valid username could execute arbitrary commands on the server, potentially leading to full compromise.

What the attacker needed

Knowledge of a valid username

The fix

The vulnerability was fixed in version 0.9.8.1224.

How it was found

  1. Send a request to the add-ons install endpoint without authentication cookies, using a known username in the path.
  2. Include the dompath parameter with a command substitution payload.
  3. Observe the command execution in the strace output.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A web hosting control panel is software that lets people manage a server through a web page. This report found that one part of the panel, the add-ons installer, did not check whether a request came from a logged-in user, and it also put a value from the request straight into a system command. By combining these two mistakes, someone who knew a username could make the server run their own commands.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.