5 ms·
Somehow this post skips an explanation of what it actually does. It's a passive RFID tag that sends 40 bits of data (5 bytes). The bits are changed in sequence.
by IshKebab 9y ago
Somehow this post skips an explanation of what it actually does. It's a passive RFID tag that sends 40 bits of data (5 bytes). The bits are changed in sequence. More of a brute force attack than a fuzzer.
- geekuillaume 9y agoFrom the comments in the source, the code needs 20 clock cycles to send a new tag, it's running at 125kHz and each tag is 40 bits long. How can this device bruteforce the tag at this rate? Won't it be extremely slow compared to the number of possible tags?
- revelation 9y agoIt will be and most software on the other end likely isn't prepared to even read tags at that speed. Fun hack though.
- moron4hire 9y ago125kHz is the transmission frequency. It's one of the unregulated frequencies for RFID tags, but sort of an industry standard value commonly used in retail products and goats. Most other cattle use tags at 134kHz. NFC is mostly just RFID at 13.56mHz.
- cobookman 9y agoRAIN rfid uses 900mhz and can be read from 30+ feet away
- TheSoftwareGuy 9y agoWell let's do the math 125 kHz 2 bits/cycle = 250 bits /sec A 2^40 bit string has 1099511627776 combinations, and would require 1099511627776 40 = 43980465111040 bits to besent to try all of them. That would take 43980465111040/250 seconds or about 5575 years And that's under ideal "spherical object in a vacuum" conditions. So yeah your right, unless they get lucky.
- thatsso1999 9y agoI believe your math is off by a factor of 1000. 125kHz = 125,000 cycles/sec * 2 bits/cycle = 250,000 bits/sec 250,000 bits/sec / 40 bits/code = 6250 codes/sec 2^40 = 1,099,511,627,776 possible codes / 6250 codes/sec ~= 175,921,860 sec ~= 5.578 years While this is still an extremely long time for the worst case, by the looks of other comments, as well as the author's video, it appears extremely doubtful that most RFID readers have anywhere near 40 bits of security - and it takes about 10 seconds (65536/6250) for the fuzzer to brute force all codes 16 bits or less.
- TheSoftwareGuy 9y agoShoot you're right, it's kHz not Hz haha I'll update my comment.
- TheSoftwareGuy 9y agoDarn I don't think HN is letting me update my comment.
- mrb 9y agoBruteforcing is totally doable because in practice the unique identifiers broadcasted by these tags are allocated sequentially. I built an AVRFID a few years ago to bruteforce the HID ProxCard II RFIDs at work (45 bits of data: 20-bit mfg ID, 8-bit facility ID, 16-bit tag ID, 1 odd parity bit). Starting from my ID, and incrementing it one by one, it only took seconds to find many other valid IDs that were unlocking doors of various restricted areas. Imagine a disgruntled employee who has his legit RFID and is looking to access other restricted areas to which he normally doesn't have access... bruteforcing works perfectly fine for him.
- TheSoftwareGuy 9y agoWell let's do the math 125 kHz 2 bits/cycle = 250 bits /sec A 2^40 bit string has 1099511627776 combinations, and would require 1099511627776 40 = 43980465111040 bits to besent to try all of them. That would take 43980465111040/250 seconds or about 5575 years So yeah your right, unless they get lucky.
- ckdarby 9y agoWouldn't the readers be designed against this sort of attack?
- EvanAnderson 9y agoOne would hope. The small amount of IT security work I've done has taught me that such hopes are quickly and frequently dashed. Even products specifically designed for security applications have silly glaring vulnerabilities.
- Moru 9y ago20 years ago I laughed myself silly when I realised our new big radiocontrolled doors to the factory had 8 dipswitches to set the security code for the remote. Last month I was looking for some home-alarm system for the club house. I wasnt terribly surprised to see only 4 bit security code in some of them...
- Rjevski 9y agoThe high-end MIFARE-based systems would be - there's actual crypto happening between the reader and card, no way to bruteforce that. However most keycard systems in the real world use a dumb unencrypted card that broadcasts an ID. This is vulnerable to sniffing, cloning as well as bruteforce (as this project demonstrates).
- chx 9y agoThose interested can read more https://security.stackexchange.com/questions/158167/mifare-desfire-ev1-cloning/158168 https://security.stackexchange.com/questions/158167/mifare-d... here. Modern fare systems (Vancouver Compass for example) use the DESfire EV1 and it's as secure as it gets.
- Rjevski 9y agoAssuming they're using it properly. I remember cracking a Mifare Ultralight based bus fare system. It seemed sound as the Ultralight had write-once blocks or blocks that you could decrement depending on the card's configuration, so you could make it that a block has the number of trips remaining on the card, each time you validate the card it decrements it and there was no way to increment it. The issue in their case was that 1) they didn't set the configuration of the card properly, so the blocks they were using weren't actually configured to be decrement only, and 2) the validation machines checked whether a card had enough trips and then decremented the block without checking whether the decrement was successful. I was able to make the remaining fares block read-only while the card was full, essentially making an infinite card.
- londons_explore 9y agoSeems it would be better to use a pseudorandom number generator to just test a random selection of tags