Remote code execution in CentOS Web Panel - CVE-2025-48703
The CentOS Web Panel file manager's change-permission action did not properly verify authentication, so a request without a user identifier was still processed. The file permission mode parameter was passed unsanitised into a shell chmod command, letting an attacker who knows a valid username run arbitrary commands on the server before logging in.
fenrisk.com
Published on fenrisk.com
CentOS Web Panel (CWP) is a free web hosting control panel used to manage servers based on CentOS and other RPM-based distributions. CWP was first introduced in 2013 as a free, open-source web hosting control panel…
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
Likely the file manager action trusted the username in the URL path instead of the session, and passed the permission mode parameter into a shell command without sanitising it.
Impact
A remote attacker who knows a valid non-root username could execute arbitrary commands on the server without authenticating, as the user running the panel service.
What the attacker needed
Knowledge of a valid non-root username; network access to the user panel port
The fix
The vulnerability was fixed in version 0.9.8.1205, released in June 2025.
How it was found
- Send the change-permission request with the user identifier removed from the URL and observe it is still processed.
- Replace the permission mode value with a shell command substitution.
- Start a listener on a controlled server.
- Send the crafted request so the server connects back to the listener.
- Run commands through the resulting shell.
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 control panel is a web app for managing a server. Its file manager lets users change file permissions, and the server does this by running a system command. Two mistakes combined: the page did not check who was asking, and the permission value was pasted into a shell command, so extra shell instructions ran as commands on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.