Skip to content
Misconfiguration Write-up Advanced

From Bluetooth to CVE: Breaking Payment Terminal (mPOS) Security

The Bluetooth communication protocol of an mPOS terminal lacks authentication, replay protection, and encryption, allowing an attacker within range to connect, inject or replay transaction commands, and read cardholder data. The display command also accepts unauthenticated QR code and text injection, enabling PIX payment redirection and social engineering.

medium.com

Published on medium.com

Mobile payment terminals (mPOS) have become a core part of everyday transactions, especially for small businesses relying on accessible and low-cost payment solutions. But behind this convenience, there are often overlooked risks.

Davi Moura, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The Bluetooth channel was designed without any trust boundary: no authentication, integrity checks, replay protection, or encryption, leaving all security to the application layer which implemented none.

Impact

An attacker within Bluetooth range could impersonate the app, modify transaction parameters, replay commands, read sensitive cardholder data, and display fake QR codes or messages, potentially redirecting payments or facilitating fraud.

What the attacker needed

Bluetooth range to the terminal; Ability to capture or guess a valid command; No pairing PIN required

The fix

The protocol should be redesigned to include mutual authentication, cryptographic nonces, encryption, and removal of sensitive data from responses.

How it was found

  1. Capture the original Hex payload sent from the legitimate app to the terminal via Bluetooth sniffing.
  2. Reverse engineer the framing and TLV structure to understand the command format and checksum.
  3. Write a Python script that pairs with the terminal's MAC address and sends a crafted Hex payload.
  4. Connect to the terminal via RFCOMM without authentication and send the payload to inject or replay transactions.
  5. For display injection, send the 0002AA04 command with a crafted TLV payload containing a malicious QR code or text.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A mobile payment terminal talks to a phone app over Bluetooth. This research found that the terminal does not check who is connecting, does not stop old messages from being replayed, and sends card data without encryption. Anyone nearby with a Bluetooth device could pretend to be the app, change transaction details, or show a fake QR code on the terminal screen.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.