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

[NFC] Flipper Emulation stopped working on BAS-IP BME-03 after enabling reader's security profile

Open mishamyte opened this issue 1 year ago • 13 comments

Describe the bug.

There is an object with access system built on top of BAS-IP panels (BME-03 reader) + U-Prox readers (U-Prox SE mini + U-Prox SL mini). Mifare 1K tags were used. Initially the whole system worked only with tag UID. For that moment emulation of tag worked fine at all present readers.

Then the decision were taken to increase the security level. For that purposes new MFP tags were bought and all reader's settings were updated: added MFP profile and (what is important) MFC profile was added (for backward compatibility of all issued tags).

The one key is used for all issued MFC tags, all sectors are protected by it (both A + B keys). Reader tries to authenticate with that key for all sectors sequentially until auth will be successful. Filter only against MF Zero is present.

After applying of those changes Flipper's emulation stopped working on the panels with BME-03 reader (and it is working on all other readers). All other tags (like MF-3, multiple versions of chinese CUID, Gen 4 GTU card) are working fine.

I made the dumps by Proxmark3, visually it looks like protocol executes fine. So I have a suggestion it could be a hardware error. But before that I decided to create that bug report for checking is it not a software problem.

Thanks!

Reproduction

  1. Open saved tag (full decrypted with a know key, all sectors are read successfully)
  2. Emulate it
  3. Try to authenticate via panel with BAS-IP BME-03 reader

Expected result: Door will be opened

Actual result: Door is not opened

Target

NFC

Logs

Proxmark3 traces are attached: proxmark3-traces.zip

Original - original tag's trace Flipper - Flipper's trace

Anything else?

Firmware version: 0.85.2 Dump file could be shared securely if needed

CC @Astrrra prob?

mishamyte avatar Jun 26 '23 22:06 mishamyte

There are some improvements in MFC emulation in latest dev release, could you test again on it?

AloneLiberty avatar Jul 14 '23 18:07 AloneLiberty

@AloneLiberty I watched for the changes in #2825, unfortunately improvements from that PR didn't help for that situation

But I will recheck cause I could suppose I tested on a not last commits. Will recheck and write down the result

mishamyte avatar Jul 14 '23 19:07 mishamyte

Just rechecked with 0.86.2, unfortunately, the problem still present

mishamyte avatar Jul 14 '23 20:07 mishamyte

0.86.2 doesn't have my fixes included, try on dev version

AloneLiberty avatar Jul 14 '23 20:07 AloneLiberty

Sorry, my bad. Installed Dev f2324e4d, still no result

mishamyte avatar Jul 14 '23 21:07 mishamyte

Hm, I think I have an idea why that is happening, but this will probably have to wait until we finish the NFC refactoring

You can try the 0.87.0 release just in case it may work, but if it doesn't, then you'll have to wait for some time

Astrrra avatar Aug 01 '23 09:08 Astrrra

You can try the 0.87.0 release just in case it may work, but if it doesn't, then you'll have to wait for some time

Hi, I checked. It didn't work. No worries, will wait for that refactoring

Thanks in advance!

mishamyte avatar Aug 01 '23 09:08 mishamyte

Still reproducible in 0.94.1-rc after NFC refactoring.

mishamyte avatar Oct 30 '23 12:10 mishamyte

how about latest dev? there were couple emulation fixes

skotopes avatar Jan 10 '24 06:01 skotopes

@skotopes rechecked on multiple readers. Still reproducible on Dev 7eeb60e1

mishamyte avatar Jan 10 '24 10:01 mishamyte

@mishamyte how about now?

skotopes avatar Jul 07 '24 15:07 skotopes

Hey @skotopes,

Unfortunately, I could confirm the issue is still valid on Dev 916af29

Wondering could it potentially be the issue with the antenna power?

mishamyte avatar Jul 07 '24 18:07 mishamyte

@gornekich @doomwastaken looks like the ball is on your side then.

skotopes avatar Jul 07 '24 18:07 skotopes