'BadBarcode' Vulnerability in Barcode Sensors Can Be Used to Hack Computers

Advertisement
By Manish Singh | Updated: 17 November 2015 16:52 IST

Imagine somebody walking to a checking counter at an airport, and using his boarding pass to hack a nearby computer. That isn't a plot taken from sci-fi movies, it's something that can be in news in the coming days. A researcher has demonstrated a method of creating malicious barcode strings that could allow an attacker to trigger shell commands. The vulnerability affects almost every barcode sensor currently in use, Gadgets 360 was told.

At the MobilePwn2Own, PacSec 2015 conference in Tokyo, Yang Yu, founder and head of Tencent's Xuanwu Lab, demonstrated a vulnerability that he referred to as "BadBarcode," which allows an attacker to use a piece of paper to gain access to a computer.

In a detailed presentation, which is available on SlideShare, Yu has revealed a vulnerability in the way barcode sensors are fundamentally designed.

Advertisement

Most of the barcode in use today, including the ones that you see on postal packages and behind retail boxes and containers, utilise the Code 128 standard or its derivative - and support ASCII characters. Barcode scanners, furthermore, work as a keyboard emulation device.

Advertisement

One of the demos of our talk "BadBarcode: How to hack a starship with a piece of paper". See you in PacSec 2015. pic.twitter.com/tu8XZjegHP

— Yang Yu (@tombkeeper) November 9, 2015

As you can see in the image below, the ASCII protocol includes characters for system's combinations keys (e.g. Ctrl). An attacker could use these combinations and open a shell and type commands.

Advertisement

Yu further explained that because most barcode scanners use Advanced Data Formatting (ADF), scanned data can be manipulated by an attacker before the data is transmitted to host device. Moving along, a specified key can also be sent to a computer, for this reason even barcode scanners that don't have a touch interface are vulnerable, Yu writes.

Another demo of our talk "BadBarcode" in PacSec 2015: start a shell by one single boarding pass. pic.twitter.com/7ssmyYJsIo

Advertisement
— Yang Yu (@tombkeeper) November 12, 2015

"According to our research, almost all of the keyboard wedge barcode scanners are affected to varying degrees. So, we think this is a big threat," Yu told Gadgets 360 in an emailed statement Tuesday. "BadBarcode is not a vulnerability of a certain product. We even may not make it clear that BadBarcode is the problem of scanners or host systems."

"It affects the entire barcode scanner-related industries. That is why we hope that manufacturers will see our research. In fact, we are pleased to know, there are some manufacturers have begun to consider to solve this problem after they knew BadBarcode."

Yu noted that BadBarcode is a serious problem. "Host system using keyboard emulation barcode scanner is potentially vulnerable. Kiosks with touch screen and barcode scanner are easy to be compromised. Barcode scanner that support ADF or some special keyboard emulation features can be utilised to achieve automatic and advanced attack. Other device via keyboard emulation connection might suffer from the same problem," he wrote.

At the same event, a researcher had discovered a vulnerability in Chrome for Android that gives an attacker access to the handset. Also, researchers had found vulnerabilities in Samsung's smartphones that allows an attacker to intercept calls and messages by making the handsets connect to a compromised base station.

 

Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.

Advertisement
Popular Mobile Brands
  1. Here's How Much the Samsung Galaxy Z TriFold May Cost in India
  2. Mrs Deshpande OTT Release: When, Where to Watch Madhuri Dixit's Serial Killer Mystery
  3. Vivo X300 Pro Review: Flagship Mobile Photography. Redefined.
  4. iPhone 16 Price Drops Under Rs. 63,000 on Croma With Bank Discounts
  5. Motorola Smartphones in India Now Support PhonePe's Indus Appstore
  6. Redmi 15C 5G India Launch Today: Everything You Need to Know
  7. ChatGPT Might Soon Be Integrated With the Apple Health App
  8. Apple's Foldable iPhone Said to Pass Another Milestone, May Launch Soon
  1. ChatGPT Could Soon Be Integrated With Apple Health App: Report
  2. Apple's Foldable iPhone Reportedly at Pre-Production Stage, Might Feature Vapour Chamber Cooling
  3. Google Photos 2025 Recap Rolls Out With Your Most Memorable Photo and Video Moments
  4. Sony ILCE-7V Full-Frame Mirrorless Camera Launched in India With 33-Megapixel Exmor RS Sensor: Price, Specifications
  5. Google Pixel Phones Get AI Notification Summaries, New Parental Controls With Android 16 QPR2 Update
  6. Motorola Smartphones in India Now Support PhonePe's Indus Appstore
  7. Circle to Search Update Adds Spam Detection; Google Brings Urgent Call Notes, New Emoji to Android
  8. Bitcoin Surges Above $93,000 as Liquidity Boost, Institutional Access Lift Market Confidence
  9. Nothing Phone 3a Community Edition Launch Date Announced: Expected Specifications, Features
  10. Binance Names Co-Founder Yi He as Co-CEO; Will Lead Firm Alongside Richard Teng
Gadgets 360 is available in
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2025. All rights reserved.