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

Mifare Ultralite Unlock with Reader function hangs

Open tatramaco opened this issue 2 years ago • 11 comments

Describe the bug.

The Unlock with Reader function for MiFare Ultralite hangs and Flipper must be restarted

Reproduction

  1. Read Mifare Ultralite card with password protected pages
  2. Select More and Unlock
  3. Choose Unlock With Reader
  4. ‘Touch the reader to get password…’ message displayed
  5. Hitting back before presenting to the reader works.
  6. Presenting Flipper to the reader causes red LED for unsuccessful auth and it then hangs and must be rebooted

Target

No response

Logs

No response

Anything else?

No response

tatramaco avatar Dec 19 '22 19:12 tatramaco

@gornekich please take a look

skotopes avatar Dec 20 '22 14:12 skotopes

Can confirm that this is not working and results in a freeze. Users on reddit also confirmed this:

https://www.reddit.com/r/flipperzero/comments/zwuip8/mifare_ultralight_c_unlock_with_reader_not_working/

nils1603 avatar Dec 29 '22 17:12 nils1603

Users on reddit also confirmed this:

https://www.reddit.com/r/flipperzero/comments/zwuip8/mifare_ultralight_c_unlock_with_reader_not_working/

That's a separate issue, Mifare Ultralight C doesn't use the same authentication protocol.

GMMan avatar Dec 29 '22 18:12 GMMan

I had the same hanging issue while trying to copy my key card for an Assa Abloy lock. Based on the design, I think it was the VingCard Essence. Unfortunately, I didn't save the card scan, and I'm not at that hotel any more, so I can't provide any more details - all I recall is that the Flipper identified it as a Mifare Ultralight something, I think Ultralight 11.

mitchellmebane avatar Jan 07 '23 07:01 mitchellmebane

Confirmed with MF Ultralight 11 card.

Robotto avatar Jan 30 '23 16:01 Robotto

Hey @skotopes @gornekich Having the same issue here. Need to reset the flipper every time. Mifare Ultralight 11 as well. Tried to get some debug logs but not sure what you guys need. Let me know and I can grab those while I'm at the hotel. Here's the issue in a GIF: giphy-downsized-large

dontic avatar Feb 13 '23 18:02 dontic

FWIW a debug break using a J-Link or CMSIS-DAP would be more helpful. I already tried to get logs and it freezes before logging anything useful.

As a workaround, see if scanning the card, saving, then reloading before trying to unlock works. I think it's something not getting initialized properly during the scan that's causing the issue.

GMMan avatar Feb 13 '23 19:02 GMMan

Huh, interesting thing happening here. I just read and saved the hotel key card. Then:

  • If I select it and choose "Unlock With Reader", it hangs.
  • If I select it and choose "Unlock With Password" and then "Unlock With Reader" it works just fine! It detects the reader and then asks me to read the card again and works like a charm.

Sadly I have no J-Link here to log at all.

dontic avatar Feb 13 '23 21:02 dontic

@gornekich this looks like enough info to resolve?

firstel avatar Feb 28 '23 17:02 firstel

@firstel yep

skotopes avatar Mar 13 '23 15:03 skotopes

I ran into this today.

The Flipper doesn't hang, I can quit out with the Back button. But "Unlock with Reader" does not seem to work, it stays in the "reading" phase.

If I use "Detect Reader" directly from the NFC menu, it gathers 10 nonces.

panki27 avatar Apr 24 '23 15:04 panki27

This was fixed a while back, also cannot reproduce on latest release (NFC refactor). Reopen the issue if problem persists

doomwastaken avatar Nov 03 '23 08:11 doomwastaken