Categories: Hacking

Hacking RFID payment smart cards with an Android App

TrendMicro explained the mechanisms behind the hacking of RFID payment smartcards, explained how to do it with an Android App.

Security experts recently spotted an Android app used to hack the NFC based electronic payment system used in Chile, the “Tarjeta BIP!”. The malicious Android app detected as ANDROIDOS_STIP.A was designed to attack NFC devices and distributed online through forums and blogs. TrendMicro published an interesting post to explain how it is possible to hack RFID Payment Cards with Android App, the post focuses on the security risk of RFID payment cards in general.

Payments through RFID technology are becoming very popular also thanks to the rapid diffusion of NFC technology on mobile devices. Several institutions and merchants issue RFID cards to their customers with prepaid credits, but it is important to consider the security Issues related to their adoption.

Analyzing the case of Tarjeta bip! card hacking the experts highlighted that the they were Mifare smartcards, a contactless and proximity technology that is wide spread (billions of Mifare smart card chips are available on the market).

“Looking at the code of the Android app, we found that if it runs on a device equipped with NFC it can read and write to these cards.  The malicious app writes predefined data onto the card, raising the user’s balance to 10,000 Chilean pesos (approximately 15 US dollars). This particular trick will only work with this particular fare card, since it relies on the format of the card in question.” states the blog post from Trend Micro.

The analysis of the source code of the Android app reveals that it is able read and write smartcard running on NFC enable mobile devices. As highlighted in the post published by Trend Micro, the author of the app was able to interact with the card without being blocked by authentication mechanism, because the smartcards are based on an older implementation of the Mifare (MIFARE Classic), which is affected by multiple security problems. The vulnerability presents in the implementation of Mifare allows a bad actor to clone or modify an MIFARE Classic card using an equipment which is common available online (i.e. Proxmark3).

The attacker can easily crack the card’s authentication key using one of the tools widely available, once obtained the key the attacker can easily implement a mobile app that is able to reprogram the card using the native NFC support in Android a device.

As explained in the post, not only MIFARE Classic cards are vulnerable to attacks, also MIFARE DESFire and MIFARE Ultralight are affected by security issues.

“We know of at least three vulnerable cards which we have: a social security card with banking service, a payment card for transportation and shopping, and a dining card. The social security card has approximately seven million users.” states the post.

One of the card tested by experts at Trend Micro was a MIFARE Classic card, the other two were MIFARE DESFire smarcards, which are vulnerable to side-channel attacks.

“The cryptosystems in these cards leak information if the power used is monitored; the keys can be recovered within seven hours. If the issued keys are not random, customer cards can be cloned or manipulated similarly to MIFARE Classic cards.  Or even worse, credits can also be manipulated within a NFC-enabled mobile device.”

The principal cause for the success of the attacks is the adoption of an outdated technology still issued because their low price.

The experts suggest to customers to periodically check the balances of their accounts and take care of the type of cards they are currently using.

Pierluigi Paganini

(Security Affairs –  RFID – Mifare, hacking)

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

Nova Scotia Power discloses data breach after March security incident

Nova Scotia Power confirmed a data breach involving the theft of sensitive customer data after…

10 hours ago

Coinbase disclosed a data breach after an extortion attempt

Coinbase confirmed rogue contractors stole customer data and demanded a $20M ransom in a breach…

12 hours ago

U.S. CISA adds a Fortinet flaw to its Known Exploited Vulnerabilities catalog

U.S. Cybersecurity and Infrastructure Security Agency (CISA) adds a Fortinet vulnerability to its Known Exploited Vulnerabilities…

22 hours ago

Kosovo authorities extradited admin of the cybercrime marketplace BlackDB.cc

Kosovar citizen extradited to the US for running the cybercrime marketplace BlackDB.cc appeared in federal…

23 hours ago

U.S. CISA adds Microsoft Windows flaws to its Known Exploited Vulnerabilities catalog

U.S. Cybersecurity and Infrastructure Security Agency (CISA) adds Microsoft Windows flaws to its Known Exploited…

1 day ago

Ivanti fixed two EPMM flaws exploited in limited attacks

Ivanti addressed two Endpoint Manager Mobile (EPMM) software vulnerabilities that have been exploited in limited…

2 days ago