element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
RFID or NFC
  • Challenges & Projects
  • Project14
  • RFID or NFC
  • More
  • Cancel
RFID or NFC
Project14: RFID or NFC Competition Hack the Door
  • Blog
  • Forum
  • Documents
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RFID or NFC to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: msimon
  • Date Created: 12 Dec 2022 3:30 PM Date Created
  • Views 1959 views
  • Likes 8 likes
  • Comments 1 comment
  • rfid
Related
Recommended

Hack the Door

msimon
msimon
12 Dec 2022

In this project, I will focus security part of an RFID door system. RFID makes life easier when surrounding ecosystem is suitable for it. I can go for running as card can open the door and I can pay for the spring water while returning with my phone's NFC. No need to carry wallet and keys. However, when system is not designed properly, there may be some room for malicious usage. 

In the school, I want to access computer room but it was protected by RFID enabled door. I have registered my ID card but there were some issues. I dunno the exact reason but my card is not working for the door. Though, it works for other doors and contactless payment. I think the door system has some issues. The technician has enabled my bus card for the temporary access. I was amazed by the solution (security!!!). There shouldn't be much security. I have some RFID tags with lots of dust so I decided to see if I create a card to access the computer room. 

I will try to clone the card I have. If a card only transmits some numbers like only ID, it should be easy. I will try and see If there are some precautions or not. If I can achieve that I will look for a solution to mitigate it (encryption, server checks, and other things I will figure out on the way).

Warning: cloning a card is not legal and there may be some punishment. I am testing this on a place where I am allowed to do so. 

Update:12/12/2022

My bus card, also the card opening the door, is working on 13.56MHz MIFARE card. When I read the card I can see its user ID (UID) and data fields. As school use random card for the access, I assume they only use the UID for authorisation. However, UID of RFID card is easily available to anyone. There are also user UID programable (not all of them) RFID cards. When you know the UID then there is no barriers to access. 

If you have an Arduino board and RFID module like RC522, there is existing library from miguelbalboa that will change UID. So, it is too easy if you know the ID. My card ID is E4 2E 7B C5 so I just need to write ID of my key fob that value. The only change from the example code is as follow:

/* Set your new UID here! */
#define NEW_UID {0xE4, 0x2E, 0x7B, 0xC5}

With this simple change, I can clone the card. If my assumption the door only check the UID is correct, it should open the door.

Then I tested the key fob on the door and as you can see in the video below, it granted the access.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

At the current form, it is very similar to keypad pin accessed door. If some one gets the pin or UID of card, the security is broken. How can we improve the security? There are a few things to improve current system without changing the system. 

First the gate should have some countermeasures. If there is too many unauthorised access attempts, the door can slow down the processing. This will prevent the brute force attacks.  There can be also sound alarm to signal surrounding or a better way to inform security to check the suspicious activity.

The second way is to have some cryptographic techniques. For example we can have challenge-response implementation. The server(the gate in here) will send a random number to the card(or key fob), then the card will generate a response to that random number with its private key. The issue here is storing and distributing the key securely. The key can be stored in MCU which have some protection mechanism. This method requires two-way communication.

  • Sign in to reply
Parents
  • Berrynan
    Berrynan over 2 years ago

    Very interesting doors

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Berrynan
    Berrynan over 2 years ago

    Very interesting doors

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube