# Welcart e-Commerce <= 2.12.5 - Authenticated (Editor+) SQL Injection via 'log_id' and 'log_key' Parameters

- **ID:** WPSEC-2026-1571
- **Plugin:** Welcart e-Commerce (`usc-e-shop`), https://wordpress.org/plugins/usc-e-shop/
- **Affected versions:** all versions before 2.12.6
- **Fixed in:** 2.12.6 (Update to 2.12.6 or later.)
- **Severity:** Medium 4.9 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N)
- **Weakness:** CWE-89
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-23)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/usc-e-shop
- **Fix released:** 2026-10-23
- **Published:** 2026-10-24
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1571/

## Description

The Welcart e-Commerce plugin for WordPress is vulnerable to SQL Injection via the 'log_id' and 'log_key' parameters of the payment log and payment error log download and deletion features in all versions up to, and including, 2.12.5. This is due to user-supplied IDs being joined into a single prepared placeholder and then passed through stripslashes(), which removes the escaping applied by the prepared statement. This makes it possible for authenticated attackers with editor-level access and above (users with the wel_manage_order capability) to append additional SQL queries to existing queries and extract sensitive information from the database.

## References

- https://wpsec.com/vuln/WPSEC-2026-1571/
- https://plugins.svn.wordpress.org/usc-e-shop/tags/2.12.6/
- https://wordpress.org/plugins/usc-e-shop/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-1571/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
