swag/paypal is vulnerable to Insecure Direct Object Reference (IDOR)
53
CVE Score
Medium
Insecure Direct Object Reference (IDOR)
SwagPayPal's /handle-payment store-api endpoint accepts a paypalOrderId value and writes it directly into the order transaction's custom fields without validating it against PayPal's API or checking that it belongs to the current transaction. Submitting the PayPal order resource ID of a different, already-paid order lets that unrelated Shopware transaction be moved to paid status, and arbitrary or non-existent IDs are passed straight through to the data abstraction layer. The PayPal order resource ID of any order is exposed via /store-api/order, so a shopper can read another order's ID and reuse it against their own transaction. The fix reserves each PayPal order ID in a dedicated database table with a unique primary key and rejects the request with a bad-request error when the ID is already tied to a different transaction.
Upgrade the swag/paypal and/or the store.shopware.com/swagpaypal library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 8.12.0
Fixed in 8.12.10.0.1 - 9.13.0
Fixed in 9.13.10.0.1 - 10.8.0
Fixed in 10.8.1swag/paypal is vulnerable to Insecure Direct Object Reference (IDOR) in versions 0.0.1 - 8.12.0, 0.0.1 - 9.13.0 and 0.0.1 - 10.8.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.