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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers4
- RFID+: Spatially Controllable Identification of UHF RFIDs via Controlled Magnetic FieldsDonghui Dai, Zhenlin An, Zheng Gong, Qingrui Pan et al.NSDI 2024 · 7 citations
- GhostTac: Manipulating Tactile Sensors without Physical ContactKun Wang, Xuancun Lu, Ruochen Zhou, Kai Wang et al.CCS 2026
- SoK: Security of Cyber-physical Systems Under Intentional Electromagnetic Interference AttacksQinhong Jiang, Yan Long, Youqian Zhang, Chen Yan et al.USENIX Security 2026
- GhostShot: Manipulating the Image of CCD Cameras with Electromagnetic InterferenceYanze Ren, Qinhong Jiang, Chen Yan, Xiaoyu Ji et al.NDSS 2025
Builds on3
- 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
- Deaf-aid: mobile IoT communication exploiting stealthy speaker-to-gyroscope channelMing Gao, Feng Lin, Weiye Xu, Muertikepu Nuermaimaiti et al.MobiCom 2020 · 29 citations
- MET: a magneto-inductive sensing based electric toothbrushing monitoring systemHua Huang, Shan LinMobiCom 2020 · 20 citations
Related papers
- One tag, two codes: identifying optical barcodes with NFCZhenlin An, Qiongzheng Lin, Xiaopeng Zhao, Lei Yang et al.MobiCom 2021 · 8 citations
- Do You See How I Pose? Using Poses as an Implicit Authentication Factor for QR Code PaymentChuxiong Wu, Qiang ZengUSENIX Security 2024 · 2 citations
- NFCGest: Contactless Gestural Interactions with NFC DevicesBu Li, Robert XiaoUIST 2025 · 2 citations
- NFCSense: Data-Defined Rich-ID Motion Sensing for Fluent Tangible Interaction Using a Commodity NFC ReaderRong-Hao Liang, Zengrong GuoCHI 2021 · 10 citations
- ABC: Enabling Smartphone Authentication with Built-in CameraZhongjie Ba, Sixu Piao, Xinwen Fu, Dimitrios Koutsonikolas et al.NDSS 2018 · 42 citations
