flipperzero-firmware icon indicating copy to clipboard operation
flipperzero-firmware copied to clipboard

EM4100 RFID issue: Emulation does not work

Open swittenberger opened this issue 3 years ago • 32 comments

Describe the bug.

Hello, I've had 3 different EM4100 tags that I could copy without any issues, but when emulating the tag, the reader doesn't detect anything.

I've been told on discord that a reboot might help, but it didn't. What other info can I give? image

Reproduction

  1. Read EM4100 tag
  2. Emulate EM4100 tag
  3. Try to open the door with flipper
  4. Notice it doesn't work.

Target

No response

Logs

No response

Anything else?

No response

swittenberger avatar Jul 30 '22 17:07 swittenberger

I don't have first hand experience, but I've seen at least 3 other people with the same problem

bettse avatar Jul 30 '22 17:07 bettse

I haven't been able to replicate this issue.

https://drive.google.com/file/d/1fyJLHXRghv-VP-zwfWvneXZ-uCqj5pWQ/view?usp=drivesdk

As I asked in the reddit thread, can you please attach a video of you trying to emulate the card? This sounds like you may be doing something wrong.

Astrrra avatar Jul 31 '22 05:07 Astrrra

Hi, here is a video of the flipper not being able to emulate the RFID tag. https://drive.google.com/file/d/1clRwR54LT4bUGVUxHWEE8aykKtJO0XuV/view?usp=sharing

I will also check with a 2nd flipper as you did above, but that is a totally different case.

swittenberger avatar Jul 31 '22 08:07 swittenberger

I can successfully use the EM4100 emulation on this product: https://www.surepetcare.com/en-gb/pet-doors/microchip-cat-flap-connect

I'm using the dev branch

Although I must say that the detection loop is around the entire door. and probably very strong since the small pet chip implants need to be detected.

Bertus-W avatar Jul 31 '22 09:07 Bertus-W

Filmed the process as requested: link to onedrivre I've tried rebooting the device + trying the dev version. Same result.

Kritkatten avatar Jul 31 '22 12:07 Kritkatten

A small update:

I've got my hands on another Flipper and was able to read from the flipper. (One emulates, the other reads) This works. I've tested emulation with beta firmware as well (just in case) and I could still reproduce the issue.

The manufacturer in my case is electra.ro https://electra.ro/ro/produse/videointerfoane-si-interfoane/gama-pass-digital/p4s-a91i

swittenberger avatar Jul 31 '22 15:07 swittenberger

Hello, my issue is pretty straightforward : Emulation of my tag works for the front door of the building, mailbox and other doors it is supposed to open (systematically): https://user-images.githubusercontent.com/61516945/182038788-6b4f807d-abf3-420f-8743-67f710db17f9.mp4

and doesn't work for the door of my own appartment(systematically): https://user-images.githubusercontent.com/61516945/182038791-9f130302-9a54-4a26-adee-ca7a54a4d012.mp4

The same key is supposed to open both. I also tried removing the silicon case.

WhiteThePanda avatar Jul 31 '22 17:07 WhiteThePanda

OK, this may be some kind of emulator protection method, or a hardware problem with concrete reader. I will return to this topic when I finish rewriting LF-RFID core.

DrZlo13 avatar Aug 01 '22 06:08 DrZlo13

Another update: I've tested another tag, on another reader of different make and it works without issues. I do think it might be a security thing then on the electra one.

swittenberger avatar Aug 01 '22 09:08 swittenberger

Hey guys, I had also troubles emulating the tag on an electra reader.

The manufacturer in my case is electra.ro https://electra.ro/ro/produse/videointerfoane-si-interfoane/gama-pass-digital/p4s-a91i

Not sure if it's the exact same model as in this link, but it looks very similar to mine.

I also captured the RAW RFID data. Hope it helps.

trupus avatar Aug 31 '22 17:08 trupus

Please check latest release and reopen issue if problem persist.

skotopes avatar Sep 06 '22 17:09 skotopes

@skotopes I just tested on Dev build d1c79a83. I also tested on the stable release 0.66.1. Door still won't open. I have reread the rfid just in case for this test, have not used the saved one (though I did try that as well)

https://drive.google.com/file/d/1l_reeBhEbq9uMtiGM9a-h2UJR6l6ayJF/view?usp=sharing

swittenberger avatar Sep 06 '22 18:09 swittenberger

I had also the same problem with the latest rc today. But with a different reader this time (Flipper identified it as an EM4100 tag as well). Will try tomorrow again with the stable release.

Maybe also worth mentioning, my office has 2 doors, which you can open with the same key. It's a coworking space. The first door is "shared", but the second one can only be opened with my key. I can open the first door (and any "shared" reader in the office) with the Flipper, but the second reader is just refusing to accept the emulated key with the flipper.

trupus avatar Sep 06 '22 19:09 trupus

OK, it's time to return to this topic. I will try to reset the protocol encoder if field is gone for ?? (10?) clocks. Also, it will help if someone points out the problematic reader model.

DrZlo13 avatar Sep 07 '22 00:09 DrZlo13

Still doesn't work. I saw new data with the last update though. Picture: 20220907_072011

Kritkatten avatar Sep 07 '22 05:09 Kritkatten

EDIT: Oh, interesting. The key fob works on 2 frequencies. The RFID is for the main (shared) entrance, and then it also has NFC, which opens the second door. The NFC is a Mifare classic, which I was able to read and emulate.

Sorry, but this reader is then unrelated to the described issue!


Also, it will help if someone points out the problematic reader model.

At this moment I encountered 2 different readers in 2 different countries that share the described problem. I found the manufacturer for one of them: official page, datasheet

trupus avatar Sep 07 '22 08:09 trupus

@DrZlo13 The reader described in this bug is an Electra, as can be found in the link above. What other information would you require?

swittenberger avatar Sep 07 '22 10:09 swittenberger

Got the same issue with a different brand of reader. In my case, I even tried proxmark3 cloning to a blank key (besides flipper emulation) and the reader didn't detect. Read somewhere that some readers will try to detect if the key is writable and deny access.

Montecri avatar Sep 14 '22 18:09 Montecri

I can confirm the electra keyfob (https://electra.ro/ro/produse/videointerfoane-si-interfoane/gama-touch-line/rezidential/terminale-1/tag-elt-000) issue. Same here using the latest firmware. Altough not the same reader. The builsing has https://electra.ro/ro/produse/videointerfoane-si-interfoane/gama-touch-line/rezidential/terminale-1/vpm-bsr02-elb this reader.

d3xt3r01 avatar Nov 27 '22 17:11 d3xt3r01

I have a "mizip" key for a coffee machine. When I try to read it, this is what I get.

IMG_20221213_170751_623

I don't know if this information is correct or not. Perhaps the key does not have its own id. And inside the key there is other information. After all, this key has a balance that is displayed when taking coffee.

LowSkillDeveloper avatar Dec 13 '22 16:12 LowSkillDeveloper

Any update on the Electra readers? Could try sniffing with a proxmark3 if that provides any useful info

Ferferite avatar Jan 13 '23 17:01 Ferferite

After a bit more digging I found some stuff. First, electra.ro is associated with electra-automation.at and they developed their own rfid solution "for maximum security". And according to this thread, this should be the datasheet for the readers.

just compiled some info I could find online, didn't have more time to look into it yet

Ferferite avatar Jan 14 '23 01:01 Ferferite

@DrZlo13 hey there, it seems like a working PoC is already there https://forum.flipperzero.one/t/electra-intercom/6368/65 however it would probably be better to add another protocol to the list. If you could point to some contribution guide for such issues, I could probably open some kind of a PR, however my C skills are really rusty...

R1DEN avatar Jun 26 '23 10:06 R1DEN

@DrZlo13 any chance we could see this in the firmware any time soon? Feels like the issue is somewhat researched and the solution is a couple of steps away for experienced contributors. :pray:

R1DEN avatar Sep 30 '23 22:09 R1DEN

@R1DEN more like everyone is busy with other tasks. We'll come back eventually to this one.

skotopes avatar Oct 12 '23 21:10 skotopes

@skotopes thank you for the reply. Just hoping it will be sooner rather than later as this will really help for Romanian and Moldovan users, we have these intercoms almost everywhere in new apartment blocks.

R1DEN avatar Oct 13 '23 05:10 R1DEN

We are waiting, we are really waiting. Thank you in advance

dontbug avatar Oct 13 '23 07:10 dontbug

Any luck to emulating the tag on an electra reader for anyone?

gherman22 avatar Dec 21 '23 10:12 gherman22

@gherman22 only with that "hacky" way from one of my above posts. Hope a proper way will be incorporated in the firmware some day...

R1DEN avatar Dec 21 '23 10:12 R1DEN

Thank you for your answer, i tried to fallow the steps but i got lost. Mabe we will have a easier way or a video with the steps.

gherman22 avatar Dec 21 '23 10:12 gherman22