Gift Certificate Security Concerns

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
page8worker
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Wed Dec 10, 2008 11:08 am

Gift Certificate Security Concerns

Post by page8worker » Mon Dec 15, 2008 10:48 am

I have a bit of a security concern on the gift certificate system in AbleCommerce, which I'm hoping someone can address for me here. I know that a gift certificate has a randomly generated 17 digit number, and that it must be activated before it can be used. I also know that a customer must login to see the serial number; however, it appears that once activated a serial number can be used by any customer, regardless if they actually purchase the gift certificate or not. That's to be expected, right? After all this is a gift certificate. More than likely I'm purchasing it to give to someone else, so I don't want it tied to me. However, since anyone can actually use the serial number once it has been activated it is also open to abuse by non intended recipients. For example what is stopping a hacker from using a brute force attack against the system to scan for valid gift certificate/serial numbers? After all, we are talking about potentially 1000s of active serial numbers sitting on a site with just decent traffic, and all the hacker would need to know is if the number is active or not. It seems that there should be a second layer of security, which is pretty standard (i.e. username/password, credit card/security code, debit card/PIN, etc...), such as a user assigned PIN.

Thoughts?

Thanks,
Last edited by page8worker on Tue Dec 16, 2008 1:13 am, edited 1 time in total.
Jackie Apshire Jr.
Page8 Studios.com
Specializing in eCommerce Integrations

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Gift Certificate Concerns

Post by jmestep » Mon Dec 15, 2008 1:32 pm

You could send the GC# with the activation email and take the serial number off the display page.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Gift Certificate Security Concerns

Post by Logan Rhodehamel » Tue Dec 16, 2008 11:17 am

I don't know if this will ease your concern, but there are 100,000,000,000,000 possible gift certificate numbers. Suppose you had 5000 numbers generated in your store, and a hacker managed to try a brute force attack a million times, their chances of discovering a valid number are still only 0.00005%.

We will discuss whether we can reduce that risk even further.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

page8worker
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Wed Dec 10, 2008 11:08 am

Re: Gift Certificate Security Concerns

Post by page8worker » Tue Dec 16, 2008 1:00 pm

Thank you guys for the responses. Logan, your example does make it seem less likely, which is good. Ultimately, though, this project could evolve into a very active site, so any additional security that could be added would be much appreciated.

Thanks again,
Jackie Apshire Jr.
Page8 Studios.com
Specializing in eCommerce Integrations

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Gift Certificate Security Concerns

Post by AbleMods » Tue Dec 16, 2008 7:59 pm

Your chances of getting hit with credit card fraud are far greater than a successful brute force attack searching for a gift certificate value.

A PIN code isn't going to resolve it either, it just increases the time before a successful guess is made.

A simple retry counter on the gift certificate failure during checkout with an automatic IP block after 10 failures would solve 99% of the problem.

In the end, a high-value website should always be augmented with network monitoring and intrusion detection tools. The full responsibility of website security should never rest with the site alone.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Gift Certificate Security Concerns

Post by Logan Rhodehamel » Tue Dec 16, 2008 8:38 pm

SolunarServices wrote:A PIN code isn't going to resolve it either, it just increases the time before a successful guess is made.
If we wanted to all but eliminate the risk of fraud, we could combine a randomly generated PIN with a certain number of retries before the gift certificate was deactivated. Of course, this will come with an added overhead to the merchant (legitimate users who mix up and need their certificate reactivated?). That may be overkill.
SolunarServices wrote:A simple retry counter on the gift certificate failure during checkout with an automatic IP block after 10 failures would solve 99% of the problem.
I have already registered a bug to have something of this nature done. Combined with the minimal chance of guessing a correct number it should be satisfactory. As with anything we can't prevent fraud completely, but here we should be able to reduce the risk even further without adding overhead.
SolunarServices wrote:In the end, a high-value website should always be augmented with network monitoring and intrusion detection tools. The full responsibility of website security should never rest with the site alone.
This is true. In my example above I mentioned the prospect of a million attempts - at this stage ideally you would have a firewall that is able to detect and prevent this kind of traffic.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

page8worker
Ensign (ENS)
Ensign (ENS)
Posts: 7
Joined: Wed Dec 10, 2008 11:08 am

Re: Gift Certificate Security Concerns

Post by page8worker » Wed Dec 17, 2008 12:42 pm

Again thank you for the replies. We have already been assessing additional security and had no intentions of placing all the responsibility on the site alone, rather we simply wanted to eliminate/reduce the chances of any of our customers being compromised, at least as much as possible. After all it is our responsibility to explore all possible scenarios, the what ifs if you will, on their behalf. Not to mention as easy as it is to circulate information online these days it would only take one customer being compromised, and then you can only guess what would potentially happen then...

Also, it is true that adding a PIN would not eliminate the chance of being compromised, but it would greatly reduce the probability. After all there is one factor that is not being added into these equations, which is simply blind luck. By adding something like a PIN the culprit can no longer simply stumble upon (be it through brute force or any other means) an active number, rather, they would also have to provide some sort of response to the challenge. Again though, I'm not saying that a PIN is the only way to go. I simply offered it as a suggestion. I also like the notion of adding some kind of auto block feature to the site.

Thanks again for all the feedback on this matter.
Jackie Apshire Jr.
Page8 Studios.com
Specializing in eCommerce Integrations

User avatar
WylieE
Captain (CAPT)
Captain (CAPT)
Posts: 281
Joined: Tue Mar 25, 2008 8:26 am
Location: Puyallup, WA
Contact:

Re: Gift Certificate Security Concerns

Post by WylieE » Tue Sep 29, 2009 11:33 am

This is probably an odd question related to gift certificate serial numbers. We have a legacy accounting system. I need to link gift certificates to customer prepayments. The serial number is the best choice, but my legacy system is limited in the number of fields available and the best choice is limited to 6 digits. In order to match the two up, I'm thinking of taking either the first 6 or last 6 numbers of the GC number.

Not knowing the exact formula use for generating the random numbers, I cannot judge which series of numbers would be least likely to ever be repeated. Unique numbers are much prefered?

Can anyone suggest which set of numbers would be my best choice?

Thanks,
Eric.
Eric Wylie
Warmoth Guitar Products, Inc.
http://www.warmoth.com

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Gift Certificate Security Concerns

Post by Logan Rhodehamel » Tue Sep 29, 2009 3:55 pm

Well... the last six. The first two are constant. Actually... the number is a faux card number in the sense that the last digit is a check digit for the 16 digit number. But it would also be considered random since it is calculated based on the random numbers generated previous.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

Post Reply