254 points · by metahost · 6y ago · 33 comments
They found and exploited a stack-based buffer overflow in the EMV parsing of a particular device, which allowed them to deliver a payload from the smart-card itself. To demo this attack, they wrote a flappy bird clone which was played using the number pad of the mPOS device. It weighed in at ~4k though, so positively heavyweight compared to this!
There's more info here: https://labs.f-secure.com/assets/BlogFiles/MWRI-Labs-BHUS14-..., with a video demo here: https://vimeo.com/89924160
I wouldn't knock that achievement: this implementation is 228 byte of Javascript and I'm guessing that was 4k bytes of binary that only had access to a less-featureful standard library. You really should add the size of the JS runtime this implementation needs to make the comparison fair. Otherwise, I could blow you all out of the water with my 11 byte implementation:
runFlappy()
(...which runs in FlappyLang, which includes a Flappy Bird implementation in the standard library.)I see your 11 byte implementation, and raise you my 6!
flpy()MWR have done other work on standard EMV devices which probably ARE connected "directly" to the internet, so the situation you describe may be more likely.
I've always liked the idea of having a card that cause the device to behave as if the transaction had gone through successfully. Sort of like an AMEX Black card, but without the repayments.
Again, I wasn't involved with any of this, so take my comments with a pinch of salt.
Fortunately it's not that easy. Almost all chip card transactions are online only these days, i.e. the issuing bank's host system has the final say on whether a payment goes through or not.
You control the "bird" (the dot). Click to ascend and fly through the approaching openings.
(And another nuance is that I am not in the US and so also not part of the ten thousand per day average.)
I wouldn’t go this far.
Quite an interesting watch.