Exponent CMS 2.3.7 - Command Execution Vulnerability
-
Sachin Wagh
Hi dleffler,
I achieved this through File Manager. It allows to upload .php file and you can access it through http://localhost/exponent-2.3.7/files/$filename$.php
It allows to execute system level command as shown in the POC.
The interesting part is that once its uploaded unauthenticated user can also access same file and execute malicious command.
Thanks a lot.
-
Sachin Wagh
Hi dleffler,
Agree for below point
"the 'page not found' exponent message is due to attempting to open a folder which the main .htaccess file has the server kick over as a 404 error. This is expected behavior with an attempt to open any 'folder' path within the exponent folder system under apache"
If you access '/files/' it's giving error as expected.
But if you access '/files/$uploaded_file$.php' it will not giving any error (e.g authorized failed/page not found/bad request) even user is not login to the application.Uploaded scripts gets executed.
Thanks a lot.
-
Sachin Wagh
Hi dleffler,
Any update on this.
Thanks.
Best Regards,
Sachin Wagh.
-
Sachin Wagh
Hi dleffler,
I verified again. It is possible to execute PHP script.After uploading PHP script if you access directly as http://www.example.com/files/shell.php.
Thanks.
Best Regards,
Sachin Wagh
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
