You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One who is able to log into the admin panel can gain Remote Code Execution via uploading a malicious Plugin file via Plugins upload functionality.
Reproduction of the Issue
Login to the admin panel (http:///admin/login)
Prepare the malicious plugin file (We used a sample GoogleMaps (https://github.com/ttimot24/GoogleMaps) file and modified the "/resources/lang/en/message.php" to introduce our own PHP code)
Zip the GoogleMaps plugin folder and upload it via Plugins functionality in the admin portal.
Install & activate the Plugins
Using "Add location" add an arbitrary location and click "Save" --> When its condition is met for "successfully_added_location," it will run our code ($shell) instead of printing out the original message 'Location added succesfully!'
Screenshots
Modifying the message.php file in the sample GoogleMaps plugin file:
Zip and upload the GoogleMaps plugin:
$ zip -r google.zip GoogleMaps
Install --> Activate --> Google Maps Plugin is created in the menu bar:
Add location --> Click Save (to initiate the message.php code)
Listener Receiving a Reverse Shell
Root Cause
The application is taking an arbitrary plugin file and execute the user supplied PHP code without proper sanitization.
Please let us know if you have any questions or need further information. Thanks.
Daniel Min & Chi Tran
The text was updated successfully, but these errors were encountered:
Hope all is well. Thank you for labeling the issues as security. We are wondering if you are planning to remediate the issues any time soon. If not, would it be okay for us to write a short blog about our findings on the HorizontCMS? Thanks.
Description of the Issue
One who is able to log into the admin panel can gain Remote Code Execution via uploading a malicious Plugin file via Plugins upload functionality.
Reproduction of the Issue
Screenshots
Modifying the message.php file in the sample GoogleMaps plugin file:
Zip and upload the GoogleMaps plugin:
$ zip -r google.zip GoogleMaps
Install --> Activate --> Google Maps Plugin is created in the menu bar:
Add location --> Click Save (to initiate the message.php code)
Listener Receiving a Reverse Shell
Root Cause
Please let us know if you have any questions or need further information. Thanks.
Daniel Min & Chi Tran
The text was updated successfully, but these errors were encountered: