CVE-2020-8818
Cardgate Payments vulnerability
An issue was discovered in the CardGate Payments plugin through 2.0.30 for Magento 2. Lack of origin authentication in the IPN callback processing function in Controller/Payment/Callback.php allows an attacker to remotely replace critical plugin settings (merchant ID, secret key, etc.) and therefore bypass the payment process (e.g., spoof an order status by manually sending an IPN callback request with a valid signature but without real payment) and/or receive all of the subsequent payments.
Affected products
Cardgate Payments, Magento. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Cardgate Payments runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- packetstormsecurity.com/files/156505/Magento-WooCommerce-CardGate-Payment-Gateway-2.0.30-B · Exploit
- github.com/cardgate/magento2/blob/715979e54e1a335d78a8c5586f9e9987c3bf94fd/Controller/Paym · Exploit
- github.com/cardgate/magento2/issues/54 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2020-8818
- cve.org/CVERecord?id=CVE-2020-8818
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.