💳💰Swap the CardGate Gateway API to receive all the payments from target store



Lincoln

Senior Fraud Engineer
Elite
Premium
Joined
13.07.22
Messages
471
Reaction score
11,193
Points
93
4DB5F824-A6C4-4AB3-9357-0F36F09A4762.pngSharing a good method that still works on some stores that use the card gate gateway(typically used by invision forums):
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 signature but without real payment) and/or receive all subsequent payments (on behalf of the store).

Usage:
1. Change values of the constants (see below for TARGET & ORDER*)
2. Host this script somewhere (must be bulletproof vps or cpanel from Https://blacknic.pro)
3. Register a merchant at https://cardgate.com
4. Sign into "My CardGate" dashboard
5. Add fake site or choose existing one
6. Click "Setup your Webshop" button in site preferences
7. Paste the URL of this script into the pop-up window and click "Save"
8. The target store the settings of your site, enjoy :]

Note: It works perfectly in both Staging and Live modes, regardless of the current mode of the target shop.

Script (save it as gateway.php in a publicly accessible folder with permission 775):

To run it, go to your-url.tld/gateway.php
If you have questions like… 🤔HOW TO FIND MANY POTENTIAL TARGETS? dm or contact my support:
 
Last edited:

Dimpuls_97

Premium
Joined
28.11.24
Messages
28
Reaction score
10
Points
3
i find this fascinating but i’m not going to lie i have no idea who to carry out something like this. i’m keen to learn though. where do i start?
 

kardachev

Premium
Joined
02.01.25
Messages
7
Reaction score
7
Points
3
View attachment 52902Sharing a good method that still works on some stores that use the card gate gateway(typically used by invision forums):
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 signature but without real payment) and/or receive all subsequent payments (on behalf of the store).

Usage:
1. Change values of the constants (see below for TARGET & ORDER*)
2. Host this script somewhere (must be bulletproof vps or cpanel from Https://blacknic.pro)
3. Register a merchant at https://cardgate.com
4. Sign into "My CardGate" dashboard
5. Add fake site or choose existing one
6. Click "Setup your Webshop" button in site preferences
7. Paste the URL of this script into the pop-up window and click "Save"
8. The target store the settings of your site, enjoy :]

Note: It works perfectly in both Staging and Live modes, regardless of the current mode of the target shop.

Script (save it as gateway.php in a publicly accessible folder with permission 775):
*** Hidden text: cannot be quoted. ***

To run it, go to your-url.tld/gateway.php
If you have questions like… 🤔HOW TO FIND MANY POTENTIAL TARGETS? dm or contact my support:
need that code haha
 

kardachev

Premium
Joined
02.01.25
Messages
7
Reaction score
7
Points
3
Top Bottom