If this is your first visit, check our documentation. To post, register or login.
Forums / Fraud Prevention / Preventing Credit Card Slamming

Preventing Credit Card Slamming

Started by damonp on 25 Jun 2007, 6:44 PM · Views: 4,517

Results 21 to 30 of 30
25 Jan 2011, 11:35 PM
#21
fluffythecat avatar

fluffythecat

New Zenner

Join Date:
Jun 2007
Location:
Orange County
Posts:
55
Plugin Contributions:
0

Preventing Credit Card Slamming

DrByte:

The feature is already built-in to v1.3.9

Can we specify number of attempts in the admin? Or is this something hard coded into the 1.3.9 versions?

5 Sep 2011, 2:40 PM
#22
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

Re: Preventing Credit Card Slamming

Could this be adjusted such that after X failed cc attempts that the credit card option is then hidden but that check/money-order and paypal options are still displayed (and the customer is not logged out) ?

This way, they could still complete their order but they would be limited to X bites at the cc apple

Thanks

15 Nov 2011, 1:31 AM
#23
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
530
Plugin Contributions:
3

Re: Preventing Credit Card Slamming

DrByte:

The feature is already built-in to v1.3.9

I'm still running version 1.38a and need to add the credit card slamming auto logout feature.

Will the file includes/modules/checkout_process.php in version 1.39h work with version 1.38a if I just upload it overriding my current 1.38a verison?

marcopolo
Zen Cart 2.2.2 | PHP 8.5.13 | MariaDB 10.11.14

15 Nov 2011, 2:41 AM
#24
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Preventing Credit Card Slamming

marcopolo:

I'm still running version 1.38aYOU NEED TO UPGRADE IMMEDIATELY. PERIOD.
marcopolo:

and need to add the credit card slamming auto logout feature.You need to upgrade more than you need to add slamming protection. > marcopolo:

Will the file includes/modules/checkout_process.php in version 1.39h work with version 1.38a if I just upload it overriding my current 1.38a verison?No. That will break your checkout.
Smarter to upgrade.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Nov 2011, 10:58 AM
#25
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
530
Plugin Contributions:
3

Re: Preventing Credit Card Slamming

My website is modified allot upgrading is not that easy at the moment. Thanks for your reply.

marcopolo
Zen Cart 2.2.2 | PHP 8.5.13 | MariaDB 10.11.14

15 Nov 2011, 8:47 PM
#26
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,904
Plugin Contributions:
23

Re: Preventing Credit Card Slamming

Okay, please sign here verifying that you are more concerned with a minor problem than the security of your site and customer's data.

X ___ ___ ___ ___ ___ ___ ___

Seriously, why is security NOT the number one priority. AND....During the upgrade, you WILL get a better understanding of Zen Cart. A copy of WinMerge and a couple of hours will have you going in a matter of hours.

Doing a clean install of 1.3.9h and added any newer versions of the existing mods would be an even bigger plus.:yes:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 Nov 2011, 1:10 AM
#27
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
530
Plugin Contributions:
3

Re: Preventing Credit Card Slamming

Simple question is version 1.38a UNSAFE to use?

marcopolo
Zen Cart 2.2.2 | PHP 8.5.13 | MariaDB 10.11.14

16 Nov 2011, 4:21 AM
#28
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Preventing Credit Card Slamming

marcopolo:

Simple question is version 1.38a UNSAFE to use?
Ever since the hacker community was alerted to the serious security holes that were found in v1.3.8a (and fixed in 1.3.9), yes.

We're not telling you to upgrade for any other reason than that it's VERY IMPORTANT that you do. It's not some sick twisted mean streak to make you fret or stress out or to make more work for you. It's important.

We've been telling everyone to do that for a couple years now.

Now, let's not take this discussion thread any further off-topic.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Jan 2012, 11:26 AM
#29
kamion avatar

kamion

New Zenner

Join Date:
Mar 2011
Posts:
93
Plugin Contributions:
0

Re: Preventing Credit Card Slamming

I've discovered a problem with this implementation for a legit customer (assuming CC SLAM prevention checking for payment_attempt > 3):

First time - goes to payment gateway: payment fail, returns to checkout_process: payment_attempt = 1, goes to checkout_payment.
Second time - goes to payment gateway: payment fail, returns to checkout_process: payment_attempt = 2, goes to checkout_payment.
Third time - goes to payment gateway: payment fail, returns to checkout_process: payment_attempt = 3, goes to checkout_payment.
Fourth time - goes to payment gateway: payment succeeds, returns to checkout_process: payment_attempt = 4: zen_session_destroy(), goes to FILENAME_TIME_OUT.

So on the last attempt, the user gets to put in the payment, and succeeds, but the order is lost.

I think the CC Slam code should be done after checking the payment status from the payment gateway.

It's a bit tricky at the moment, because where would you put it in checkout_process?

$payment_modules->before_process() does the payment status checking, and if it fails, it just redirects straight to checkout_payment without returning to checkout_process.php.

20 Jan 2012, 1:19 AM
#30
kamion avatar

kamion

New Zenner

Join Date:
Mar 2011
Posts:
93
Plugin Contributions:
0

Re: Preventing Credit Card Slamming

I just added the payment attempt check within my payment->before_process( ) method and log the user out if it is the last payment_attempt instead of redirecting them to checkout_payment. I also set a 'payment_limit' session variable in checkout_process.

if (isset($_SESSION['payment_attempt']) && ($_SESSION['payment_attempt'] == $_SESSION['payment_limit']))
{
    $_SESSION['cart']->reset(TRUE);
    $messageStack->add_session('header', 'payment_attempt > '.$_SESSION['payment_limit'], 'warning');
    zen_session_destroy();
    zen_redirect(zen_href_link(FILENAME_TIME_OUT));
}

This seems to get around the problem I highlighted above by not letting the user attempt a payment when the path to a successful order is blocked.