Lune

MobiCom2023Top-tier venue

MagCode: NFC-Enabled Barcodes for NFC-Disabled Smartphones

Donghui Dai, Zhenlin An, Qingrui Pan, Lei Yang

Abstract

Mobile payment has achieved explosive growth in recent years due to its contactless feature, which lowers the infection risk of COVID-19. In the market, near-field communication (NFC) and barcodes have become the de facto standard technologies for mobile payment. The NFC-based payment outperforms barcode-based payment in terms of security, usability, and convenience. It is especially more user-friendly for the amblyopia group. Unfortunately, NFC functionality is unavailable in nearly half of smartphones in the market nowadays due to the shortage of NFC modules or being disabled for security reasons.

In this work, we present MagCode, a cross-technology communication between an NFC reader and a camera, which allows customers to enjoy the high security and convenience of NFC-based payment and the pervasiveness of cameras. At the heart of MagCode is the harmless magnetic interference on the CMOS image sensor of a smartphone placed nearby the NFC reader, resulting in a group of barcode-like stripes appearing on the captured images. We take advantage of these stripes to encode the data and achieve simplex communication from an NFC reader to an NFC-denied or NFC-disabled smartphone. In particular, we design and implement a stack of protocols from the physical to the transport layer and test the proof-of-concept prototype across 11 smart devices. Extensive evaluations demonstrate a maximum throughput of 2.58 kbps, which outperforms the magnetometer-based solution by 58×. It takes 1.8 seconds on average to accomplish the data exchange between an NFC reader to a smartphone in relation to mobile payments.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • SoK: Security of Cyber-physical Systems Under Intentional Electromagnetic Interference Attacks cites GhostShot: Manipulating the Image of CCD Cameras with Electromagnetic Interference
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. RFID+: Spatially Controllable Identification of UHF RFIDs via Controlled Magnetic FieldsDonghui Dai, Zhenlin An, Zheng Gong, Qingrui Pan et al.NSDI 2024 · 7 citations
  2. GhostTac: Manipulating Tactile Sensors without Physical ContactKun Wang, Xuancun Lu, Ruochen Zhou, Kai Wang et al.CCS 2026
  3. SoK: Security of Cyber-physical Systems Under Intentional Electromagnetic Interference AttacksQinhong Jiang, Yan Long, Youqian Zhang, Chen Yan et al.USENIX Security 2026
  4. GhostShot: Manipulating the Image of CCD Cameras with Electromagnetic InterferenceYanze Ren, Qinhong Jiang, Chen Yan, Xiaoyu Ji et al.NDSS 2025

Builds on3

  1. Picking Up My Tab: Understanding and Mitigating Synchronized Token Lifting and Spending in Mobile PaymentXiaolong Bai, Zhe Zhou, XiaoFeng Wang, Zhou Li et al.USENIX Security 2017 · 34 citations
  2. Deaf-aid: mobile IoT communication exploiting stealthy speaker-to-gyroscope channelMing Gao, Feng Lin, Weiye Xu, Muertikepu Nuermaimaiti et al.MobiCom 2020 · 29 citations
  3. MET: a magneto-inductive sensing based electric toothbrushing monitoring systemHua Huang, Shan LinMobiCom 2020 · 20 citations

Related papers

  1. One tag, two codes: identifying optical barcodes with NFCZhenlin An, Qiongzheng Lin, Xiaopeng Zhao, Lei Yang et al.MobiCom 2021 · 8 citations
  2. Do You See How I Pose? Using Poses as an Implicit Authentication Factor for QR Code PaymentChuxiong Wu, Qiang ZengUSENIX Security 2024 · 2 citations
  3. NFCGest: Contactless Gestural Interactions with NFC DevicesBu Li, Robert XiaoUIST 2025 · 2 citations
  4. NFCSense: Data-Defined Rich-ID Motion Sensing for Fluent Tangible Interaction Using a Commodity NFC ReaderRong-Hao Liang, Zengrong GuoCHI 2021 · 10 citations
  5. ABC: Enabling Smartphone Authentication with Built-in CameraZhongjie Ba, Sixu Piao, Xinwen Fu, Dimitrios Koutsonikolas et al.NDSS 2018 · 42 citations
Dusk over the sea between two cliffs drawn in fine vertical lines