Connect with us

Hi, what are you looking for?


Mobile & Wireless

Samsung Pay Token Flaw Allows Fraudulent Transactions

A researcher has discovered several security issues in the Samsung Pay mobile payment service, including a vulnerability that can be exploited to make fraudulent transactions.

A researcher has discovered several security issues in the Samsung Pay mobile payment service, including a vulnerability that can be exploited to make fraudulent transactions.

Samsung Pay provides users a digital wallet where they can keep their plastic credit, debit, gift, loyalty and membership cards. When customers want to use one of their cards, they simply select it, enter their PIN or scan their fingerprint, and hold their smartphone near the card reader.

At the Black Hat security conference last week, researcher Salvador Mendoza shared the results of his Samsung Pay analysis. The expert discovered static passwords used to protect databases, weak obfuscation, and comments in the code – all of which could eventually allow a clever attacker to access sensitive data.

Mendoza also noticed that the mobile application uses tokens to perform transactions instead of the actual card data – this ensures that the original card data is not exposed. A new token is generated for each transaction and, according to the researcher, an attacker might be able to predict future tokens based on previously used tokens.

Another attack method, which the expert has managed to put into practice, is related to unused tokens. Each token is invalidated after the transaction is completed. However, if for some reason the transaction is not completed, the token remains valid for one day, even after a new token is generated.

If attackers can obtain unexpired tokens, they can use them to make transactions without needing the victim’s smartphone. Mendoza created a small device, one that can be attached to a person’s wrist, that can capture tokens from nearby phones running Samsung Pay. In a scenario described by the expert, the attacker asks the victim to show them how the mobile payment system works, a process in which a token is generated, but remains unused.

The captured token can then be added to a device such as MagSpoof, an open source wireless credit card and magstripe spoofer created by researcher Samy Kamkar. MagSpoof can emulate a traditional magnetic stripe card by generating a strong electromagnetic field.

Advertisement. Scroll to continue reading.

A video made available by Mendoza shows how he was able to use a slightly modified version of MagSpoof to make a purchase with the captured Samsung Pay token.

SecurityWeek has reached out to Samsung to find out if the company is aware of the vulnerability and if it plans on addressing it.

“Samsung Pay has to work harder on the token’s expiration date to suspend it as quickly as possible after the app generates a new one, or the app may dispose of the tokens which were not implemented to make a purchase,” Mendoza explained in a paper published after Black Hat. “Also, Samsung Pay needs to avoid using static passwords to ‘encrypt’ its files and databases with the same function because eventually someone will be able to reverse it. The databases are very sensitive. They contain delicate information to update the token status, server connection instructions and validation certificates.”

UPDATE. Samsung has published a brief statement, calling the recent report inaccurate:

“Each Samsung Pay transaction uses a digital token to replace a card number. The encrypted token combined with certificate information goes through multiple security layers and can be used only once to make a payment. Samsung Pay is designed so that merchants and retailers cannot see or store the actual card data, and our customers are notified with each transaction. Multiple layers of security from Samsung Pay and our partners are in place to detect threats to security,” the company said.

However, Mendoza told SecurityWeek that he reported the issues in May and Samsung said it was working on addressing them. The researcher last tested the application before his Black Hat presentation and the token flaw was still there.

Related: Flaws in Venmo Payment App Allowed Hackers to Steal Money

Related: SSL Flaw in Intel Crosswalk Exposes Apps to MitM Attack

Written By

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Click to comment

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

SecurityWeek’s Threat Detection and Incident Response Summit brings together security practitioners from around the world to share war stories on breaches, APT attacks and threat intelligence.


Securityweek’s CISO Forum will address issues and challenges that are top of mind for today’s security leaders and what the future looks like as chief defenders of the enterprise.


Expert Insights

Related Content

Mobile & Wireless

Infonetics Research has shared excerpts from its Mobile Device Security Client Software market size and forecasts report, which tracks enterprise and consumer security client...

Mobile & Wireless

Apple rolled out iOS 16.3 and macOS Ventura 13.2 to cover serious security vulnerabilities.

Mobile & Wireless

Critical security flaws expose Samsung’s Exynos modems to “Internet-to-baseband remote code execution” attacks with no user interaction. Project Zero says an attacker only needs...

Mobile & Wireless

Technical details published for an Arm Mali GPU flaw leading to arbitrary kernel code execution and root on Pixel 6.

Mobile & Wireless

Two vulnerabilities in Samsung’s Galaxy Store that could be exploited to install applications or execute JavaScript code by launching a web page.

Mobile & Wireless

The February 2023 security updates for Android patch 40 vulnerabilities, including multiple high-severity escalation of privilege bugs.

Mobile & Wireless

Apple’s iOS 12.5.7 update patches CVE-2022-42856, an actively exploited vulnerability, in old iPhones and iPads.


A digital ad fraud scheme dubbed "VastFlux" spoofed over 1,700 apps and peaked at 12 billion ad requests per day before being shut down.