
This repository contains exploits for iTOP CVE-2024-52002, 52000, 31998, 31448 that involve CSRF+XSS chaining to get RCE
This repository contains exploits for iTOP CVE-2024-52002, 52000, 31998, 31448 that involve CSRF+XSS chaining to get admin privileges on the software.
sudo docker run -d -p 8090:80 --name=my-itop2 vbkunin/itop:3.1.1
sudo docker logs my-itop2 | grep -A7 -B1 "Your MySQL user 'admin' has password"
It should look something like this

Feel free to explore the iTOP software.
As an attacker the most valuable thing would be to get access to the software remotely via admin login located at http://localhost:8090/pages/UI.php?c%5Bmenu%5D=UserAccountsMenu
Let's start by testing XSS exploit, you can use the xss.csv in this github repo to test this.
http://localhost:8090/pages/csvimport.php?c%5Bmenu%5D=CSVImportSelect a File and upload the xss.csv
Simulate the import we can see the XSS

Let's explore CSRF as the CVE pages tell us that there are CSRF on multiple pages. Both CSRF & XSS alone don't give us much but together we could do something to eventually create an admin account.
first_step_import_data.html)
python3 -m http.server 9001first_step_add_user.html and last_step_add_user.html
We can see that when user clicks on the link first_step_add_user.html it first uses the CSRF+XSS to get the action token and then uses that to create the user by chaining.
Essentially it becomes CSRF+XSS+CSRF
The vulnerable link can be sent to the user using a sample phishing email added in the github repo.