> OK - while we're on the topic.  You state . . .that CC 
> numbers have patterns in them that drastically reduce 
> the number of valid resultsets . . . why not use brute 
> force to just churn out a bunch of valid credit card 
> numbers and use them ????

If by "use them" you mean "try to make purchase with them", you need more
than a number which falls within the set of possible credit card numbers.
You need a number which has specifically been assigned to a card and that
card's user.

However, the fact that all card numbers fall within a set of possible
numbers makes it relatively easy to figure out if some number could possibly
be a credit card number.

I would strongly recommend that you don't simply rely on "munging" the data
to make it secure. As Jochem mentioned, an attacker could simply make a
purchase through your site, then - knowing that number - find your key.

As for generating a separate key for each card number, that would eliminate
the above possibility. However, you'd then have to secure the card numbers
AND the set of keys, and your application would still require access to both
to fetch a card number at runtime. So, the clever attacker would simply find
the key for their card number, then find the location of that key value, and
then you're back where you started.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to