CWILL Shipment Tracking stored XSS in courier and tracking data
parcelpanel CWILL (Formerly ParcelPanel) – Shipment Tracking, Tracking & Order Tracking for WooCommerce
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| parcelpanel CWILL (Formerly ParcelPanel) – Shipment Tracking, Tracking & Order Tracking for WooCommerce |
| No fix yet |
Original description
The CWILL (Formerly ParcelPanel) – Shipment Tracking, Tracking & Order Tracking for WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'data[].courier_code, data[].tracking_number (plus pp_sign for the auth bypass)' parameter in all versions up to, and including, 4.6.2 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The authentication bypass is reachable only when the parcelpanel_api_key WordPress option is non-empty, which occurs automatically once an admin has opened or connected the ParcelPanel admin page; at that point any unauthenticated attacker can bypass the sole access gate by supplying a JSON boolean true as pp_sign, which PHP's loose == operator coerces to true when compared against the non-empty md5 hex string.
From the CVE record · Wordfence
References
- wordfence.com/threat-intel/vulnerabilities/id/e7270d51-004b-40bc-8afd-d201c7293686?source=cve
- plugins.trac.wordpress.org/browser/parcelpanel/tags/4.6.2/includes/Api/RestApi.php#L250
- plugins.trac.wordpress.org/browser/parcelpanel/tags/4.6.2/includes/Api/Admin/AdminShipment.php#L554
- plugins.trac.wordpress.org/browser/parcelpanel/tags/4.6.2/assets/js/admin-wc.min.js
- plugins.trac.wordpress.org/browser/parcelpanel/tags/4.6.2/includes/Api/Admin/AdminShipment.php#L27
- plugins.trac.wordpress.org/browser/parcelpanel/tags/4.6.2/includes/Action/ShopOrder.php#L172
- plugins.trac.wordpress.org/changeset/3785353/parcelpanel/trunk/includes/Api/Admin/AdminShipment.php