Relative Path Traversal to Remote Code Execution in pandorafms/pandorafms
Reported on
Feb 20th 2022
Description
Pandora FMS v7.0NG.759 allows relative path traversal in File Manager where a privileged user could upload a .php file outside the intended images directory which is restricted to execute the .php file. The impact could lead to Remote Code Execution with running application privilege.
Proof of Concept
Affected version: Pandora FMS v7.0NG.759 - OUM 759 - MR 51
Affected component: Console
Affected endpoint:
POST http://$HOST/pandora_console/index.php?sec=gsetup&sec2=godmode/setup/file_manager
~
Request file passwd: X4v9W4qP87
Impact
This vulnerability is capable of executing OS Command with running application privilege.
This feature is allowed to upload all type of files. There is a ACL system in Pandora FMS where you can limit the upload of these files.