RCE By import channel field
A malicious administrator could use a crafted Channel Set to upload a PHP file that they normally lack permission to upload. If the temporary folder name could be guessed and the system folder was web-accessible, this could lead to arbitrary code execution.
Originally disclosed on HackerOne
- Triaged in 11 hours
- Fixed in 5 days
- Disclosed after 9 days
Summary by the program
The reporter determined that a malicious Channel Set could be used to allow an administrator to upload a PHP file that they might otherwise not have permission to upload. Combined with the temporary folder name algorithm being available in the source code, the malicious administrator could potentially guess its location, and if the site were running with a web-accessible system folder, could allow them to run arbitrary code.
The issue was resolved to prevent potential discovery of the temporary folder, and decreased the TTL of that folder to further prevent from any brute-force guessing of the folder name.
It should be noted that post-installation best-practices is to move the system folder above web-root, which by itself would make such an attack impossible even for a CMS administrator.
Summary by the researcher
i found RCE Because they just blocked .php at upload function so i bypassed it ^_^
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the upload restriction for Channel Sets was incomplete, allowing a PHP file to be uploaded, and the temporary folder name was predictable enough to guess.
Impact
A malicious administrator could potentially run arbitrary code if the temporary folder was web-accessible and its name could be guessed; moving the system folder above web-root would prevent this.
What the attacker needed
Administrator access to the CMS; system folder is web-accessible; temporary folder name can be guessed
The fix
The issue was fixed by preventing discovery of the temporary folder and reducing its TTL to hinder brute-force guessing.
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 report has not been written yet. The Original tab links to the source.
A CMS (content management system) lets people manage website content. Normally only certain users can upload certain file types, but a flaw let an administrator sneak in a PHP file, which is a script that runs on the server. If that file could be found and run, an attacker could take control of the site.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.