7 ms·
The form doesn't require any sort of authentication, so I imagine someone could write a script to submit all (or a large portion of) the set of card numbers to
by throwaway894345 6y ago
The form doesn't require any sort of authentication, so I imagine someone could write a script to submit all (or a large portion of) the set of card numbers to this API. Might need to work around rate limiting and so on, but seems feasible?
- bitexploder 6y agoAlso, if there is any sort of timing difference on valid/invalid card numbers. Boom... timing attack / CC oracle :)
- ev1 6y agoThere's already Luhn and a list of valid starting digits...
- kelnos 6y agoI think the parent meant "card number that actually is in use and works" when saying "valid", not "follows the rules of card numbers".
- sgjohnson 6y agoYes, which aids the spamming. The first 6 digits of a card number is called the BIN code. That leaves just 9 digits that have to be spammed. The fact that BIN lists are publicly available is reducing the space significantly.
- Nextgrid 6y agoI'd expect any submissions to this are just appended to a database without any actual validation beyond the trivial Luhn checksum and then there's a batch process once a day (maybe the same one that actually generates whatever marketing "insights" they claim to provide) that reads from there and ignores any card numbers from the opt-out DB.
- bitexploder 6y agoYou would hope that. I’ve been in infosec doing application security as a consultant a long time. Developers have often destroyed my hopes :)
- vageli 6y ago> You would hope that. I’ve been in infosec doing application security as a consultant a long time. Developers have often destroyed my hopes :) I used to work at a big bank in the US and the parent's description sounds exactly like how it would work.
- earthboundkid 6y agoGovernment and banks have been continuously using computers since the 60s, so as a result there’s a lot of “fancy web API to collect data… that gets batch processed by an ETL on a mainframe overnight.” Much more of it than I realized as a young dev at least.
- bitexploder 6y agoYou could be right but I have found almost this exact bug in production systems (credit card oracle sitting on the public Internet of a big card processor with no rate limiting and a really obvious timing delta). Both scenarios (batch or live processing) are pretty likely IMO. Just depends on what mess of APIs you happen to end up on.
- netsharc 6y agoHuh... create script to fill DB with all possible Visa numbers, tomorrow's "marketing insight" will suddenly be an empty file because everything will be excluded. Bonus, if they can't separate which exclusions were from legitimate requests and which came from this script, they can't just delete those entries from the database. Of course, no one should do this...
- overscore 6y ago> Bonus, if they can't separate which exclusions were from legitimate requests and which came from this script, they can't just delete those entries from the database. I think they would probably just declare them all invalid, and roll back to yesterday.
- morpheuskafka 6y agoChecked and the Mastercard one someone posted below doesn't seem to be vulnerable to this. My real card number and a dummy mastercard number with valid prefix and check digit both returned a 200 OK in around 1.01s. A random 16digit number without valid check digit returned 400 Bad Request in about 800ms. Decided to check that one since they have a completely useless machine-readable catchpa. For Visa it was 835ms for valid, 762ms for dummy, prefix and check digit appears to be checked client side.
- bitexploder 6y ago100ms is /massive/ for a timing delta but you really need a lot of samples. I have exploited timing deltas that were not much more than a handful of machine code instructions in terms of execution time. But you really do need a lot of samples to confirm small deltas. It starts getting impractical for many APIs (someone will notice, hopefully).
- texasbigdata 6y agoThis comment is why I love hackernews
- bitexploder 6y agoSee: https://rdist.root.org/2010/07/19/exploiting-remote-timing-attacks/ https://rdist.root.org/2010/07/19/exploiting-remote-timing-a... and Crosby 2007. I got into infosec around 06 and tptacek, Nate Lawson and some others were my heroes. Now I run my own consulting firm with a bunch of cool people :) Also in infosec: what is old is new. We still find shitty comparison routines (timing attacks) and SQL injection... some day :)
- dmix 6y ago> someone will notice, hopefully Or more likely "someone will notice, eventually"
- animex 6y agoI just found a use-case for the sleep( rand(1000) ) function :-)
- TylerE 6y agoCard number alone doesn't get you anywhere. An expiration date will get you a bit farther, but you really need the CVV also.
- notretarded 6y agoWhich would give you worthless information
- dzikimarian 6y agoComing from the industry - MC & Visa typically don't know if exact card is valid or not. They admit range of numbers to an issuer (bank, revolut-type, whatever), and issuers system is queried for each transaction - card can be created at any time without notifying card schemes. There's some exceptions (tokens etc.), but not relevant to this use case.
- WaxProlix 6y agoThere's an unspoken assumption here and elsewhere that the captcha doesn't present any kind of difficulty at all; is that true? If so, why?
- xzel 6y agoMost open source text captchas have ML/DL or OpenCV OCR solutions and more advanced captchas like gcaptcha/hcaptcha you can send to a solver farm like 2captcha. The cost for the farm solutions is pretty cheap.
- WaxProlix 6y agoI'd only seen relatively pricey solver farm solutions, hence the question. What constitutes "cheap" here? For a baseline, .05USD/captcha seems not cheap to me.
- hshshs2 6y agofor a server farm you could purchase as a normal citizen, but what do governments pay?
- adanto6840 6y agoCan be had much cheaper, especially if OK with a non-zero failure rate (and/or bit more latency). Note that my hands-on experience with this stuff is now relatively dated, from a "prior career" -- coming up on 10 years now, even. If anything though, then I'd guess that it's become cheaper over time, not more expensive.
- BeefySwain 6y agoLook again, that is per thousand captchas. Still pretty expensive if you wanted to do every single Valid CC #, though.
- xzel 6y ago2captcha is about 0.0005/solve, give or take do to their failure rate. There are other services as well and pre-paid bulk purchases lead to lower pricing. I wouldn't want to ballot stuff the crazy number that is the combination of all Visa credit cards but for much smaller problem spaces 2captcha and others are very reasonably priced.
- asdfasgasdgasdg 6y agoHaven't people been sent to jail for doing this much or less? I recall something happening to a guy who probed AT&T's phone number registry or something?
- texasbigdata 6y agoHow is this illegal? You make a form that says “XYZ” and buy a domain “abc.com” and if someone enters a random submission they go to jail for it? Maybe I’m misunderstanding.
- asdfasgasdgasdg 6y agoAs the other person linked, it did happen, although perhaps it would not happen again. On the other hand, I would not risk it, especially since any competent database admin would have your edits rolled back quickly. What would it accomplish? They'll undo the edits then make it harder to remove yourself from the list in the future. Who does that serve?
- cle 6y agoIf something is sufficiently scary to the lay person, you have a good chance of going to jail. I wouldn't make the mistake of thinking that laws are interpreted and applied fairly.
- alexchamberlain 6y ago
- justinzollars 6y agoplease opt me out
- deleted 6y ago[deleted]
- harikb 6y agoBut then you are giving VISA a perfect reason to throw out all optouts and start fresh. Stuff like this happened during FTC net neutrality debate
- cabaalis 6y agoWhy would you want to make an option intended to give some semblance of privacy useless? The net result of submitting all card numbers will not be "oh, well, I guess all card numbers are private now.." it will instead be "clear that table and start over."
- zelly 6y agoThey'll just throw out all the ones spammed from your IP. If you become obnoxious they will call the FBI because this would be a CFAA violation.
- boston_clone 6y agoNot a lawyer - would it really be a violation of the CFAA? I'd also be surprised if Visa involved the FBI for someone excessively hitting their API...
- eximius 6y agoCFAA is draconian, the courts are behind the times, and even if you win, it'd be in court where you don't want to be in the first place.
- tatersolid 6y agoI didn’t check, but the terms of service surely state that you must only enter your own active card numbers for which you are the authorized account holder. Doing otherwise -> access in excess of authority -> CFAA violation Just because you can easily walk through an unlocked door doesn’t mean doing so is always legal.