Multiple vulnerabilities in AbanteCart e-commerce platform

Title

Multiple vulnerabilities in AbanteCart e-commerce platform

Product

AbanteCart e-commerce platform

Vulnerable Version

<1.3.2

Fixed Version

1.3.2

CVE Number

CVE-2021-42050, CVE-2021-42051

Impact

medium

Found

19.07.2021

By

Daniel Teo and Ian Chong (Office SG)

AbanteCart suffers from multiple vulnerabilities such as unrestricted file upload and DOM-based cross-site scripting.

Vendor description

"The meaning of the word 'abante' is to move forward or lead. AbanteCart community stand behind exceptional work quality and dedication to creating outstanding eCommerce software services. Our inspiration comes from the developers that like developing with AbanteCart and constantly work to expand and keep this project alive."
Source: www.abantecart.com

 

Business recommendation

SEC Consult recommends all companies who are using the AbanteCart software, to upgrade to the latest version which is available at the vendor's official website.
An in-depth security analysis performed by security professionals is highly advised, as the software may be affected from further security issues.

 

Vulnerability overview/description

1) Unrestricted File Upload (CVE-2021-42051)

Any low privileged user with file upload permissions can upload malicious SVG files that contain a JavaScript payload. 
By proceeding to the SVG file location, the payload will be executed on the client-side.


2) DOM Based Cross-Site Scripting (CVE-2021-42050)

DOM Based XSS is an XSS attack wherein the attack payload is executed as a result of modifying the DOM "environment" in the victim's browser used by the original client-side script, so that the client-side code runs in an "unexpected" manner.

The application was found to have a cross-site scripting vulnerability where user supplied input is directly reflected in the Document Object Model, leading to execution of arbitrary code. The vulnerable location is an input form which allows users to perform search actions.

 

Proof of concept

1) Unrestricted File Upload (CVE-2021-42051)

A PoC SVG file can be created as follows:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg">
   <rect width="300" height="100" style="fill:rgb(0,0,255);
stroke-width:3;stroke:rgb(0,0,0)" />
   <script type="text/javascript">
      alert("sectest XSS");
   </script>
</svg>

2) DOM Based Cross-Site Scripting (CVE-2021-42050)

A payload was used in the search engine:

<script>alert(document.domain)</script>

 

Vendor contact timeline

2021-08-16 Contacting vendor through help@abantecart.com
2021-08-27 Vendor responded and indicated that the AbanteCart team have scheduled a release on 25 September 2021 to address the issues.
2021-12-07 Multiple emails to check with the vendor on the release date. However, no response from the AbanteCart team but noticed that they had released the new version on 26 Nov 2021.
2021-12-13 Release of security advisory

Solution

Upgrade to the latest version available v1.3.2 at the vendor's download page:
www.abantecart.com/download


Workaround

None


Advisory URL

sec-consult.com/vulnerability-lab/

EOF Daniel Teo, Ian Chong / @2021

Interested in working with the experts of SEC Consult? Send us your application.

Interested in improving your cyber security with the experts of SEC Consult? Contact our local offices.