LycheeOrg Lychee
Lychee: Webshop checkout lets the client override the payment `amount` sent to the gateway via malicious crafted POST request
Lychee is a free, open-source photo-management tool. Prior to 7.7.1, the Supporter or Pro webshop POST /api/v2/Shop/Checkout/Process flow accepts an unrestricted additional_data array and CheckoutService::preparePurchaseParameters() merges it after server-computed purchase parameters. Because later string keys overwrite earlier keys, an unauthenticated buyer can replace amount, currency, returnUrl, cancelUrl, or transactionId before CheckoutService::processPayment() passes the parameters to a non-PayPal Omnipay gateway. An attacker can therefore make a gateway accept a successful payment for an attacker-selected amount and obtain auto-fulfilled goods while underpaying the merchant. The issue requires an enabled webshop, a purchasable item, and an affected Omnipay gateway. This issue is fixed in version 7.7.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 7.7.1
Fixed in 7.7.1
Mitigation
Upgrade Lychee to 7.7.1 or later.
References
- Vendor advisory github.com/LycheeOrg/Lychee/security/advisorie…
- Patch github.com/LycheeOrg/Lychee/pull/4514
- Patch github.com/LycheeOrg/Lychee/commit/24e6e11f1da…
1 more
- Release notes github.com/LycheeOrg/Lychee/releases/tag/v7.7.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.