Skip to content
Access control Write-up Intermediate

Inside the Gate: How I Witnessed a Tool Bypass a Metro Entry Without Ticket — And Why It’s a…

The author observed people entering metro gates using small devices without scanning a ticket, and hypothesises that the gates may trust only the NFC card's unique identifier (UID) or have insecure debug modes. If true, an attacker could clone or emulate a valid UID to open the gate without paying.

yeswehack Follow

Published on yeswehack.medium.com

It was just another busy evening. Rush hour.

Aditya Sunny, on yeswehack.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

Likely the gate validates only the card's UID (a static identifier) or has unprotected debug modes, instead of performing a cryptographic challenge-response with the backend.

Impact

If the hypothesis is correct, an attacker could bypass ticket checks, causing revenue loss and leaving no trace of a valid ticket, though the author only observed behaviour and did not perform any cloning.

What the attacker needed

Physical access to a metro gate; a valid card UID to clone or emulate; an NFC emulation device

The fix

Metro systems should use cryptographic authentication (e.g., DESFire EV2/EV3 with AES), dynamic UIDs or session IDs, gate-to-server synchronisation, tamper detection, and behavioural monitoring.

How it was found

  1. Scan a valid metro card's UID once
  2. Store the UID into device memory
  3. Replay the UID using an NFC emulator
  4. Metro gate identifies valid UID and opens

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.

Metro gates often use a short-range radio technology called NFC to read cards. The author saw people open the gate with a small gadget instead of a ticket. He thinks the gate might only check a simple ID number on the card, which can be copied, rather than doing a secure cryptographic check.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by yeswehack

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.