News for hackers. Stuff that matters.
Re:Chip and PIN by rogier_hofboer on Thursday February 12, 2015 @04:57PM (#9041635)
First beware this is already an old blog article from the 10th of August 2013.

To me, the article seems (at least) incorrect at two points:

1. The number of PIN retries cannot be reset. The command described to perform this reset in the blog post is the same as for checking the tries. Checking the tries just doesn't reset the number of tries, only providing the correct PIN does. But please prove me wrong by supplying the correct command to reset the PIN tries...

The original paper about this http://fc13.ifca.ai/proc/9-2.pdf describes a way to have 2 'free' guesses, but after those 2 guesses, you'll need to try again with a correct PIN. On a hacked reader, you could eventually find out someones PIN if the person uses the reader enough. Once the retries are exhausted, the card is blocked. Beware you'll need up-to 10.000 guesses, so up-to 5000 usages of the card. (note it is actually a little bit less, because not all PIN codes are allowed on production cards)

2. With EMV cards issued the last few years, the Track2 equivalent data on the EMV chip does not contain correct, usable data to create a magstripe card from. The Pin Verification Value in the EMV Track2 Equivalent data record is set to all zeros instead of the original PVV on the magstripe, rendering it pretty useless. So in short, you cannot create a working magstripe card with PIN by using data from the EMV chip.

Re:Chip and PIN by lucaspiller on Friday February 13, 2015 @12:20AM (#9043012)
In the UK if you have blocked the PIN on the chip, you can unblock it at an ATM (usually only one belonging to your bank) if you know the correct PIN. ATMs will of course swallow the card after three failures, but the logic is there to reset the chip. I don't know if this is a different process from that the article describes mind.
Re:Chip and PIN by rogier_hofboer on Friday February 13, 2015 @04:56AM (#9043622)
OK, via EMV commands it is not possible, but ATM's can run special (encrypted, signed and non-replayable) security scripts on the card to do card management. To be able to do this, you'll need keys only available to the card issuer. That is also the reason it only works at your own bank.
Re:Chip and PIN by gergles on Thursday February 12, 2015 @03:14PM (#9041090)
> This is the cardholder’s name and all of the track one and track two data7. These records provide all that’s needed to clone an EMV smart card. See appendix section 0 for complete records.

It provides all that you need to create a magstripe card from the PAN stored in the Chip. That is ALL you can do. You can't clone the card and can't get cryptograms. Any sane issuer will decline transactions made with the magstripe at a chip-capable terminal, so this doesn't help much. In any event, a lot of the information you need to clone the magstripe is... on the magstripe.

The rest of the attacks are on the offline functionality of the card which won't be used in almost any US implementations and is being phased out of most of the other places where it is in use.

Re:Chip and PIN by emptybits on Thursday February 12, 2015 @04:01PM (#9041362)
You're right, obviously, about having everything needed to clone a magstripe on the magstripe itself.

> Any sane issuer will decline transactions made with the magstripe at a chip-capable terminal, so this doesn't help much.

Regarding this... Where I live and use Chip-and-PIN cards every day (Canada), it's extremely common for a chip-capable terminal to fail on a chip card for a variety of reasons and immediately instruct the cardholder and/or merchant to "please swipe card". Customer swipes and places a signature-resembling mark on paper. Merchant and issuer accept this. And so it goes.

Anecdotal data: We've had Chip-and-PIN for years here. Currently, despite my Amex being Chip-and-PIN, more than 50% of terminals fail with the chip ("it's an Amex thing," we're told, years into this) and revert to swiping, and my Visa Chip-and-Pin still fails as a chip card and falls back to a swipe transaction approximately 10% of the time.

So the easy fraud vector is still there with magstripes even in a mature Chip-and-PIN environment.

Re:Chip and PIN by derefr on Thursday February 12, 2015 @04:22PM (#9041471)
Actually, those "failures" are (here in Canada) caused by merchants who have upgraded their hardware to chip-and-pin, but haven't actually switched chip-and-pin processing on for their POS merchant account.

Or, more commonly, they're with a POS provider that bought, and then rolled out, chip-and-pin terminals as part of its standard four-year-replacement cycle, but who don't even support chip-and-pin yet.

Either way, usually the merchant knows ahead of time that their terminal won't accept your (or anyone's) chip, and could put up a sign to that effect.

Re:Chip and PIN by emptybits on Thursday February 12, 2015 @05:29PM (#9041816)
What you say makes sense for Amex failures... I have heard merchants say "chips work with everything but Amex."

But for the Visa chip failures I experience, it's generally happening at my regular haunts where chip cards work (mine and others). The occasional chip failure is accompanied by the stock service industry script of, "oh, yeah, that terminal has been having problems all day -- just swipe it and sign, sorry."

I do wonder if the merchant is charged higher discount rates or fees on those transactions because of higher fraud likelihood.

Re:Chip and PIN by derefr on Thursday February 12, 2015 @06:51PM (#9042114)
> oh, yeah, that terminal has been having problems all day

There is a phenomenon related to this, that I would almost describe as being like an inorganic physical virus.

Sometimes plastic or lint from a wallet solidifies onto the chip on your card—and then rubs off on the contacts inside the POS terminal when you insert it. Now the terminal can't read the card, because there's goop in the way. So you take your card out (which is now slightly cleaner, and thus likely to work on the next terminal.)

Next, someone else puts theirs in. Now the gunk is on the terminal contacts, and gets rubbed onto that person's card, and once again, the card doesn't work. Now that person's card is dirty as well.

It seems that there's less card->terminal gunk transfer than terminal->card gunk transfer, but every once in a while you'll take your card out of one non-working terminal and then it won't work in any other terminal—until you notice there's a smudge on the chip, rub it off, and then it starts working again.

Perhaps they need "cleaning cards" for these terminals that are like the old VHS head cleaners.

Re:Chip and PIN by emptybits on Friday February 13, 2015 @12:46AM (#9043086)
Interesting. You know "too much" (or think too much) about these terminals! :) Cheers!
Re:Chip and PIN by pricechild on Thursday February 12, 2015 @06:02PM (#9041932)
In the UK at least, if the card is swiped rather than chip & pin then the card company may refuse to cover fraud losses and the merchant must swallow it. If the same fraud happenned via chip & pin, the merchant would've been "insured". http://www.theukcardsassociation.org.uk/cards-transactions/c...
Re:Chip and PIN by ryanlol on Friday February 13, 2015 @04:37AM (#9043572)
Or just chips failing to read? Their failure rates seem to be much higher than magstripe.

In my experience if you try to use a broken chip+pin card you will almost always be allowed to use the magstripe "bypass" instead.

Re:Chip and PIN by semi-extrinsic on Thursday February 12, 2015 @05:43PM (#9041860)
Regarding declining magstripe transactions: a friend of mine had a card with a literally broken (in half) chip. The magstripe still worked fine for many purchases in the UK, in particular, he never had any issues withdrawing cash from ATMs. So my guess is that cloning the magstripe onto a card with a deliberately broken chip will work in many situations.
Re:Chip and PIN by Sanddancer on Thursday February 12, 2015 @02:44PM (#9040908)
The lack of security surrounding Chip and PIN doesn't surprise me. A friend of mine is dyslexic, and one of the symptoms is that she has a real hard time remembering arbitrary sequences of numbers, like PINs tend to be. As such, she's one of the few people on chip and sign, and has no PIN attached to her card. Even with that, she /still/ has to deal with fraud departments every few years saying that someone used her card and "PIN" in some obscure location, and this is obviously all her fault. It takes quite a bit of frustration for her before the fraud department finally comprehends that there is no pin to clone there.

Of course, me being stateside, I still have to deal with antiquated magstrips and /their/ various faults. I've got cards with chips in them, but no one is taking them yet, and the bank I'm with (Wells Fargo) isn't even planning on rolling out chips on their debit card line until the end of the year, and even then, by request only. The whole financial security system is just ridiculous.

Re:Chip and PIN by pyre on Thursday February 12, 2015 @03:08PM (#9041069)
On the other hand, with Chip & PIN, if someone uses the Chip and PIN they will claim that they don't have to protect you from fraud.

I recall reading a few years ago about auto insurance companies denying claims on stolen cars because it was "impossible" for the car to be stolen due to the new key tech at the time. They were ignoring that the dealerships help the master keys, and car thieves would just attack that as the weak point (i.e. get an insider to cut the keys, and give you the address for the owner). The real reason that the insurers were denying claims is that they want to just push all of the risk onto the consumer, while still taking their money to 'insure' them.

Re:Chip and PIN by mattmanser on Thursday February 12, 2015 @03:50PM (#9041306)
Re:Chip and PIN by tzs on Thursday February 12, 2015 @04:01PM (#9041360)
> A friend of mine is dyslexic, and one of the symptoms is that she has a real hard time remembering arbitrary sequences of numbers, like PINs tend to be.

Are the PINs assigned by the card issuer and unchangeable, or can the user change the PIN?

If the user can change them, couldn't she change the PIN to something that isn't arbitrary to her?

Re:Chip and PIN by Sanddancer on Thursday February 12, 2015 @04:49PM (#9041620)
For her, it's remembering and being able to put in any number sequence, so in this case, she really can't.
Re:Chip and PIN by chrisfosterelli on Thursday February 12, 2015 @04:06PM (#9041388)
The PINs are typically changeable.
Re:Chip and PIN by gergles on Thursday February 12, 2015 @03:14PM (#9041093)
WF is issuing EMV-enabled debit cards as of yesterday. Just call and ask for one.
Re:Chip and PIN by callahad on Thursday February 12, 2015 @03:37PM (#9041240)
AFAIK, no US bank is actually offering true "chip-and-pin" cards. USAA used to, but they re-ordered the CVMs on cards issued since last June. Now their cards prefer signatures over PINs, just like most other American EMV cards.
Re:Chip and PIN by vel0city on Thursday February 12, 2015 @04:45PM (#9041596)
It seems like many places in the US that accept chipped cards don't even ask for a signature. I put in the card, it asks to verify the amount, and then processes it. I've had some large (>$100) transactions get approved with just a card, no PIN or signature.

I can't recall a single time I've had to enter a PIN or sign for an EMV transaction.

Re:Chip and PIN by mcmancini on Thursday February 12, 2015 @05:19PM (#9041747)
Isn't Barclaycard issuing Chip-and-PIN cards, albeit signature priority, that work in PIN-only situations?
Re:Chip and PIN by otterley on Thursday February 12, 2015 @10:48PM (#9042777)
Yes, they are.
Re:Chip and PIN by Sanddancer on Thursday February 12, 2015 @03:21PM (#9041129)
I was just in a wells fargo branch yesterday and asked about it and was told they were planning on rolling them out later this year. Probably one of those left hand not knowing what the right hand is doing situations.
Re:Chip and PIN by JosephRedfern on Thursday February 12, 2015 @02:51PM (#9040949)
Out of interest, how does Chip and Sign work at an ATM?
Re:Chip and PIN by sliverstorm on Thursday February 12, 2015 @04:02PM (#9041371)
I don't know for sure, but debit cards already follow the chip&pin model, except it's magstripe&pin. So I would imagine it would read the chip, and you would enter your ATM pin.
Re:Chip and PIN by selectodude on Thursday February 12, 2015 @03:00PM (#9041014)
For now, banks are only doing chip+sig on credit cards. I imagine chip+pin on debit cards for ATMs is a 2016 issue.
Re:Chip and PIN by edwintorok on Thursday February 12, 2015 @02:24PM (#9040778)
It is worrying that there is a PIN try counter that can be reset so easily.
Re:Chip and PIN by dfox on Thursday February 12, 2015 @05:29PM (#9041817)
The article is hugely unclear about how the author actually managed to reset the pin counter. The command Cla=80 Ins=CA P1=9F P2=17 Lc=00 means GET DATA 9F17 (PIN try counter) and has nothing to do with overwriting whatever value is stored there (the command is defined in EMV Book 3 section 6.5.7).

And also the discretionary data field on both magnetic stripe and track image data stored on chip is usually not used as "PIN Verification Value", but is either unused or used as CVC/CVV1. Even when these data were the real PVV, this information is mostly useless for deducing the PIN. (and the fact that the magstripe image stored on chip does not match the real magstripe is mostly to be expected)

Re:Chip and PIN by raverbashing on Thursday February 12, 2015 @04:15PM (#9041422)
Yeah, I didn't read through the details

The way this works in GSM SIM cards is the following: If an operation needs authentication you have to provide your PIN to the chip.

This operation returns OK or not. There's no counter to be checked (IIRC) and it can't be reset.

If you got the PIN right then operations will succeed (like listing SMSs, Phone book, or making a call) otherwise they'll return a "needs auth" error code

GSM 11.11

Re:Chip and PIN by AlyssaRowan on Friday February 13, 2015 @01:56AM (#9043236)
I wish I could say something, but I'm still under embargo, 11 years later (the last time I agreed an embargo without an expiry, lesson learned!).

Don't let someone get your card, and if you think they do, report it to your bank. At least since 2009 you won't be liable for any fraud.

Re:Chip and PIN by achalkley on Thursday February 12, 2015 @02:36PM (#9040860)
Great summary :)
Re:Chip and PIN by gghh on Thursday February 12, 2015 @03:40PM (#9041256)
related to EMV security, Andrea Barisani gave a talk at 31C3 last December: "Practical EMV PIN interception and fraud detection"

http://media.ccc.de/browse/congress/2014/31c3_-_6120_-_en_-_...

Re:Chip and PIN by joshstrange on Thursday February 12, 2015 @04:09PM (#9041399)
IMHO Chip and Pin is a huge fucking joke.

There have been multiple posts showing how to get around it or otherwise compromise these cards. That coupled with banks trying to move all liability to the user makes me sick. All of this coming at a time that I swipe my card (physically) way less than ever before. Chip and Pin seems to mean nothing for online purchases AFAICT, feels a lot like failing to solve a problem that is slowly going away and ignoring online purchases.....

Re:Chip and PIN by timthorn on Thursday February 12, 2015 @04:31PM (#9041518)
At least in the UK, the banks moved liability to the merchants, not the cardholder.
Re:Chip and PIN by organsnyder on Thursday February 12, 2015 @04:33PM (#9041530)
Correct. In addition, in the US merchants are only liable if they haven't upgraded to chip-and-pin—i.e. the banks are making sure that retailers have an incentive to upgrade aging hardware.
Re:Chip and PIN by laurencerowe on Friday February 13, 2015 @02:41AM (#9043312)
There is plenty of scope for moving cash purchases to card in the US. When I lived in Norway it was normal for even small purchases to be made with Chip and Pin. Many people hardly used cash at all.
Re:Chip and PIN by joshstrange on Friday February 13, 2015 @09:53AM (#9044578)
I already use my card for everything, I haven't used cash in quite some time (Even use Venmo to share paying for pizza and the like). I guess I'm vastly underestimating the amount of cash still being used. Because of that my original statement may be flawed
Re:Chip and PIN by umsm on Thursday February 12, 2015 @04:57PM (#9041634)
> having the ability to verify a PIN and the ability to reset the ‘tries’ counter, one can trivially check every possible PIN automatically until the correct PIN is found.

This is the key part for me. Being able to brute-force a pin is a huge vulnerability.

Re:Chip and PIN by deadgrey19 on Thursday February 12, 2015 @06:01PM (#9041930)
"Chip and PIN is broken" is old news: http://www.cl.cam.ac.uk/research/security/banking/nopin/oakl...

Here's a video of them applying the exploit: https://www.youtube.com/watch?v=JPAX32lgkrw

Re:Chip and PIN by blahpro on Thursday February 12, 2015 @03:10PM (#9041076)
Interesting article, but would greatly benefit from a "TL;DR" summary at the top.