CVE-2020-8818
The Magento CardGate payment module's callback endpoint accepted unauthenticated requests that replaced the store's merchant settings with attacker-controlled values. An attacker could then spoof order statuses or receive all subsequent payments.
github.com
Published on github.com
Lack of origin authentication (CWE-346) at IPN callback processing function allow (even unauthorized) attacker to remotely replace critical plugin settings (merchant id, secret key etc) with known to him and therefore bypass payment process (eg. spoof order status by manually sending IPN callback request with a valid…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could replace the store's payment credentials and then spoof order statuses or receive all subsequent payments, in both staging and live modes.
What the attacker needed
A merchant account at the payment provider; ability to host a public script; target runs affected module version
The fix
The issue was fixed by adding origin authentication to the callback handler.
How it was found
- Register a merchant account at the payment provider and add a site.
- Use the provider's setup feature to point the target shop at a script you host.
- The script fetches your site's configuration and sends it to the target's callback endpoint.
- The target replaces its merchant settings with yours and returns a confirmation string.
- Optionally send a signed callback with a fake order reference to mark an order as paid.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A payment plugin lets a shop talk to a payment provider. This plugin had a web address that, when visited with certain parameters, would overwrite the shop's payment settings with whatever the visitor supplied. Because no login was needed, anyone could point the shop at their own payment account and fake successful orders.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.