Unrestricted file upload vulnerability in IMCE
An authenticated user could upload a PHP file through the IMCE file manager in the forum's signature editor by adding a .gif extension to bypass the upload filter. This could allow arbitrary PHP code to be uploaded to the server.
Originally disclosed on HackerOne
- Disclosed after 7 days
Summary
Steps To Reproduce
POC
- Go to "https://forum.acronis.com/" and creat user
- Click on edit profile and go to Signature click on (inser image usig imce file manger)
- Now upload php file and bypass to add .gif in the endpoint
Recommendations
https://www.incibe-cert.es/en/early-warning/vulnerabilities/cve-2006-7109 https://security-tracker.debian.org/tracker/CVE-2006-7109
Impact
allows remote authenticated users to upload arbitrary PHP code
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 filter only checked the file extension in a way that could be bypassed by appending an image extension, rather than validating the actual file content.
Impact
An authenticated remote user could upload arbitrary PHP code to the server.
What the attacker needed
A forum user account; access to the signature editor
How it was found
- Create a user account on the forum.
- Open the profile editor and go to the Signature section.
- Use the IMCE file manager to insert an image.
- Upload a PHP file, bypassing the filter by adding a .gif extension.
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 website lets logged-in users add a picture to their forum signature using a file upload tool. The upload check could be bypassed by naming a script file to look like an image, allowing a PHP file to be uploaded.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.