Vulnerability identifier: #VU25725
Vulnerability risk: Medium
CVSSv3.1: 5.9 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N/E:P/RL:O/RC:C]
CVE-ID:
CWE-ID:
CWE-346
Exploitation vector: Network
Exploit availability: Yes
Vulnerable software:
CardGate module for Magento 2
Web applications /
Modules and components for CMS
Vendor: CardGate
Description
The vulnerability allows a remote attacker to compromise the target system.
The vulnerability exists due to a lack of origin authentication at IPN callback processing function in "Controller/Payment/Callback.php" file. A remote attacker can 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 signature but without real payment) and/or receive all subsequent payments (on behalf of the store).Mitigation
Install updates from vendor's website.
Vulnerable software versions
CardGate module for Magento 2: 2.0.1 - 2.0.30
External links
http://github.com/cardgate/magento2/issues/54
http://snyk.io/vuln/SNYK-PHP-CARDGATEMAGENTO2-552157
http://www.exploit-db.com/exploits/48135
http://github.com/cardgate/magento2/pull/53/commits/93fb0d1de8c3b85d72d986e46bdf97db5206efda
http://github.com/cardgate/magento2/pull/53
http://github.com/cardgate/magento2/blob/715979e54e1a335d78a8c5586f9e9987c3bf94fd/Controller/Payment/Callback.php#L88-L107
Can this vulnerability be exploited remotely?
Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.
Is there known malware, which exploits this vulnerability?
No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.