CYBER WELFARE

Protect your Digital Privacy

QR code attacks: how posted codes and fake codes are exploited

You cannot read a QR code with your eyes. A camera reads it, in an instant, and that is exactly why we trust it without a second thought: we show it, we photograph it, we scan it.

QR code attacks exploit that trust in two directions. In the first, someone reads a code you have posted and uses what it contains: a ticket, a booking, your Wi-Fi password. In the second, someone puts a code they have prepared in front of you, and you are the one who scans it.

This post explains the most common mechanisms, one by one. It is the threat-side companion to the recommendation on posting photos with QR codes: before you share a photo, crop the code out or cover it with a solid box.

One useful clarification: this post describes how these attacks work from the point of view of the person on the receiving end, so that you can recognise them and defend against them. It contains no operational instructions.

The starting point

On Friday you post a story with your concert tickets in the foreground. On Saturday morning you photograph your boarding pass on a café table at the airport. On Sunday, at a friend’s house, the background of a group photo shows the card with the Wi-Fi code stuck to the fridge.

On Monday, back home, you park in town. On the parking meter there is a sticker: “Pay easily with the QR code”. You scan it, a payment page opens, and you enter your card details.

In four days you have met both directions: in the first three photos you are the one exposing a code; in the last case, someone else’s code has reached you.

Why QR codes lend themselves to these attacks

A QR code is a square of black and white modules that a camera turns into text: a web address, a code, a password. How it is built is explained in the post on how QR codes work; here only one point matters: nobody can tell what is inside a code by looking at it.

Three features follow from this, and attacks exploit all of them:

  • they can be read from a distance and from a photo: a recent camera can read a small code, one enlarged from a screen or one that is partly covered;
  • they work for whoever presents them: many codes, such as tickets and collection codes, do not check who is showing them, only that they are valid;
  • they hide the destination: a link inside a QR code cannot be seen until you open it, and on a phone the page address appears in small print, if at all.

1. Duplicated tickets

In plain terms. The code on an e-ticket is read from a posted photo and reproduced, so that someone else can get in instead of you.

How it works. For many events, trains and museums, the ticket is the code itself: the reader at the entrance checks that it is valid and has not been used yet. Anyone holding a readable copy can present it before you do.

Why it works. The system lets in whoever arrives first. The second person, often the real ticket holder, finds out at the turnstile that the ticket has already been used.

Possible impact. Being refused entry, time spent proving your purchase, sometimes the cost of a new ticket.

What should make you suspicious. Notifications that a ticket has been transferred or reissued when you did not ask for it, unusual sign-ins to your account with the ticket seller.

How to protect yourself. Do not post a ticket with a readable code; if it has already happened, ask the organiser through the official channel whether the code can be reissued, so that the old one stops working.

2. Access to your booking

In plain terms. A photographed boarding pass or travel ticket provides the details needed to get into the booking management page.

How it works. The code on a boarding pass often contains your name, flight and booking reference, the short string of a few characters that identifies the trip. On many airlines’ websites, those details are enough to open the booking, see the itinerary and, depending on the case, the contact details or some of the changes available.

Why it works. Booking management is designed to be convenient: no password, just two details that only the passenger is assumed to know.

Possible impact. A changed seat, check-in done by someone else, contact details exposed; above all, genuine details on which to build a fake message from the airline. The chain of effects is described in the post on the consequences of posting a boarding pass.

What should make you suspicious. Emails about changes you did not make, messages that mention your flight and ask you to “confirm your details” or pay a supplement.

How to protect yourself. Cover the code and any references printed in plain text before posting. For any check on your trip, go in through the official website or app, never through links you have received.

Cyber Security for All: Online Privacy, VPN

On the page that opens, choose:

Subscription · not needed
Option to choose: Single course · coupon terms
  • The best available terms
  • Valid until 22 December, for a limited number of enrolments
  • Lifetime access to the content, updates included

3. Access to your Wi-Fi network

In plain terms. The QR code people print so that guests can connect contains the network name and password, in plain text.

How it works. Anyone who scans the code, even from a photo, reads the password as if it were written on the card. They then need to be within range of the network, so the risk mainly concerns people who live nearby or know the place.

Why it works. The card is convenient and visible by design, and it ends up in the background of photos taken at home, in a shop or in the office.

Possible impact. Unauthorised connections, a slower network and, above all, access to the same network as your phones, computers, cameras and smart devices. Why the home network matters so much is explained in the resource on home network security.

What should make you suspicious. Unknown devices in the router’s list, a connection that is slower for no obvious reason.

How to protect yourself. Keep the code out of your photos; if it has already been posted, change the Wi-Fi password and generate a new code, so that the old one no longer works.

4. Collection codes and digital cards

In plain terms. Some codes are worth the same as the thing they represent: a parcel collection, a loyalty card, a gift card.

How it works. The code for a parcel locker or a collection point authorises delivery to whoever presents it. Digital cards show a code that the till reads as the card itself, with its points or balance. A photo of the “parcel that finally arrived” can make it readable.

Why it works. As with tickets, the code identifies the item, not the person.

Possible impact. A parcel collected by someone else, points or balance gone; on labels, your name and address exposed too.

What should make you suspicious. A notification that your parcel has been collected when you have not been there yet, a card balance that has gone down without any purchase.

How to protect yourself. Cover codes and labels in your photos; if in doubt, ask the service that issued the code to block or replace it.

5. Pairing and sign-in codes

In plain terms. Some services use a QR code to link one of your accounts to a new device. If someone else generates that code and you scan it, the linked device is theirs.

How it works. It is the mechanism used, for example, to open a messaging app on a computer: the computer shows a code, the phone scans it and authorises access. An attacker prepares a code of this kind on their own device and sends it to you with a pretext: “scan to verify your profile”, “to enter the competition”, “to receive the payment for your sale”. When you scan it from the app, you are not reading content: you are granting permission.

Why it works. The gesture is identical to an everyday one, and the request often comes from a contact who seems trustworthy. Who can reach you on social media also depends on your choice to connect only with people you know.

Possible impact. Someone reads your conversations, writes to your contacts in your name and gets into the account without knowing the password.

What should make you suspicious. A request to scan a code you did not generate yourself; in the app, a “new device linked” alert; in the linked devices section, a computer you do not recognise.

How to protect yourself. Only scan codes with the app when they appear on your own device, at that moment, because you asked for them. Check your linked devices from time to time and sign out any you do not recognise.

6. Fake codes stuck over real ones (quishing)

In plain terms. A sticker with a fake QR code is placed over the original one, on a parking meter, a menu, a charging point or a leaflet. This is called quishing, from QR and phishing: phishing is the deception that leads you to hand over details to a page imitating a real service.

How it works. The fake code leads to a page that looks like the service’s own: paying for parking, a menu with ordering, a registration. The page asks for your card details, a sign-in or the installation of an app.

Why it works. The code is exactly where you expect to find it. On a phone, the page address is barely noticeable. Even the HTTPS padlock, which the recommendation on browsing only over HTTPS explains well, protects the connection but does not guarantee that the site is the right one.

Possible impact. Stolen card details, payments to people with no right to receive them, apps installed from unofficial sources.

What should make you suspicious. A sticker that sits on top of another, is crooked or has different edges; an address that does not match the service; a page that immediately asks for payment or your full card details.

How to protect yourself. For payments and sign-ins, prefer the official app or website you already know. If you do scan a code, read the address before entering any details. The resource on how to recognise phishing helps you notice the details.

Cyber Security for All: Online Security, Passwords

On the page that opens, choose:

Subscription · not needed
Option to choose: Single course · coupon terms
  • The best available terms
  • Valid until 25 November, for a limited number of enrolments
  • Lifetime access to the content, updates included

7. QR codes in emails to get past filters

In plain terms. An email or a PDF contains no links, just a QR code to scan with your phone.

How it works. The link sits inside an image, which many email filters analyse less closely than clickable text. The message imitates a signature request, a security alert or an invoice. It is one of the techniques described in the post on malware in email attachments, which covers the details.

Why it works. It moves the deception from the computer, which is often better protected, to the phone, where checking is harder.

Possible impact. Credentials or payment details handed over to a fake page.

What should make you suspicious. A message whose only useful content is a code to scan “for security reasons”.

How to protect yourself. Treat a QR code received by email like a link from a stranger: reach the service through the address you know.

Summary table

AttackMain riskWhat should make you suspiciousEffective defences
Duplicated ticketsSomeone gets in instead of youTicket already used, transfers you did not requestCovered code, ticket reissued
Access to your bookingTrip changed, convincing fake messagesChanges you did not make, messages with genuine detailsCode and references covered, checks via the official website
Access to your Wi-FiStrangers on your home networkUnknown devices, slow networkCode kept out of photos, password changed
Collections and cardsParcels or balance takenParcel already collected, balance reducedLabels covered, code blocked
Pairing and sign-inAccount linked to someone else’s deviceRequest to scan a code that is not yours, new deviceScanning only codes you generated, checking devices
QuishingPayments and details sent to a fake pageStickers on top of others, different addressOfficial app or website, reading the address
QR codes in emailsCredentials handed over from the phoneMessage containing only a codeSigning in from the address you know

What they have in common

Seven different mechanisms, three defences that cut across almost all of them:

  1. A posted code is a code handed over — covering it before you share takes away the material for the first four attacks.
  2. A code cannot be judged by its appearance — before entering any details, what matters is the page address, not the little square that took you there.
  3. Reach the service through the door you know — official apps and websites take apart quishing, QR codes in emails and messages built with genuine details.

These are not advanced measures: they are pauses of a few seconds.

Protection checklist

  • ☐ No photos posted with readable tickets, boarding passes, badges or labels
  • ☐ Codes covered with a solid box, together with references printed in plain text
  • ☐ The Wi-Fi card kept out of shot
  • ☐ No pairing code scanned unless you generated it yourself
  • ☐ Devices linked to your apps checked periodically
  • ☐ The page address read before entering details after scanning a QR code
  • ☐ Parking, fines and deliveries paid through the official app or website
  • ☐ Codes received by email treated like links from strangers

How this connects to the Cyber Welfare Framework

PillarWhat this content contributes
AwarenessUnderstanding that a QR code carries data and permissions in both directions: when you show it and when you scan it
SkillsRecognising the mechanism of each attack from its signals, including pairing codes and stickers placed over real codes
Secure BehaviourCovering codes before posting and stopping to read the address before entering any details

Reference level: FL3 — Autonomous, with a foundation also accessible from FL2 — Beginner in the sections on tickets, bookings and Wi-Fi.

Conclusion

The attacks described here are rarely aimed at you in particular. They rely on codes left readable and on people scanning in a hurry.

That is why the most effective defence is a habit: your own codes stay out of your photos, and someone else’s code is treated like a link from a stranger. The location saved inside photo files is a separate topic, covered by the recommendation on photo geotagging.

If a photo is already online and you want to know whether anyone has used it, the post on the signs someone used your QR code lists the traces to look for. To take stock of your digital habits, start with the digital resilience self-assessment.

Something to think about. The last QR code you scanned: could you say who put it there?

Related resources

Short pieces from the Resources section, for anyone who wants to focus on a single aspect:

Related content

Start with the first step: the Cyber Welfare Programme guides you free of charge, one recommendation at a time.