Skip to content
Access control Write-up Beginner

Breaking Barriers Hacking Rfid Cards At The University Beginner Level

The university's RFID access system only checked the card's UID, so an attacker could clone a card by writing the same UID to a rewritable magic card. This allowed access to campus facilities and services such as borrowing laptops or printing using another person's account.

Rushabh Bhutak Follow

Published on infosecwriteups.com

Ever wondered how easy it is to hack an RFID card? In this blog, I’ll show you the basics of RFID technology and how to clone a card using tools like Proxmark3 and MIFARE magic cards.

Rushabh Bhutak, on infosecwriteups.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 access system authenticated cards solely by their UID, which is not secret and can be copied to a rewritable card.

Impact

An attacker could clone a university ID card to access campus facilities and services, including borrowing laptops, printing with someone else's account balance, and borrowing books in their name.

What the attacker needed

Physical access to a valid card; a Proxmark3 device; a MIFARE magic card

The fix

The access system should be changed to authenticate cards using secret keys or data stored on the card, not just the UID.

How it was found

  1. Connect the Proxmark3 and start the pm3 software.
  2. Place the original university ID card on the Proxmark3 and run a high-frequency search to read its UID.
  3. Place a MIFARE magic card on the Proxmark3 and write the original UID to it.
  4. Search again to confirm the magic card now shows the copied UID.
  5. Use the cloned card at the university reader to gain access.

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.

RFID cards are like keys that a reader scans to check an ID number. This university's reader only looked at that ID number and ignored any secret codes on the card. Because of that, someone could copy the ID number onto a blank rewritable card and use it as if it were the original.

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.

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.