# Welcart e-Commerce <= 2.12.4 - Authenticated (Editor+) SQL Injection via Order List Search Condition Cookie

- **ID:** WPSEC-2026-0930
- **Plugin:** Welcart e-Commerce (`usc-e-shop`), https://wordpress.org/plugins/usc-e-shop/
- **Affected versions:** all versions before 2.12.5
- **Fixed in:** 2.12.5 (Update to 2.12.5 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-14)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/usc-e-shop
- **Fix released:** 2026-10-13
- **Published:** 2026-10-14
- **URL:** https://wpsec.com/vuln/WPSEC-2026-0930/

## Description

The Welcart e-Commerce plugin for WordPress is vulnerable to SQL Injection via the search condition cookie of the legacy order list in all versions up to, and including, 2.12.4, due to the 'searchSql' and 'searchSkuSql' SQL fragments being read back from a user-controlled cookie and placed into the order query's HAVING/WHERE clause without being rebuilt or escaped. The order and product CSV exports use the same legacy list code, so the flaw is reachable with default settings. This makes it possible for authenticated attackers with order management access (Editor-level and above by default) to append SQL to existing queries and extract sensitive information from the database.

## References

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

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

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.
