RfidResearchGroup / proxmark3

Iceman Fork - Proxmark3
http://www.icedev.se
GNU General Public License v3.0
4.06k stars 1.07k forks source link

Incorrect identification of magic commands (GEN 1b) #407

Closed b4ndit closed 5 years ago

b4ndit commented 5 years ago

Describe the bug Just started playing with this fork today and I noticed that all of the cards I have are being incorrectly identified as Chinese magic cards (GEN 1b). These cards are from random hotels I've stayed at in the past couple years, and I've scanned them before, so I know they're not Chinese magic cards.

To Reproduce Steps to reproduce the behavior:

  1. Place any legit Mifare card on the Proxmark
  2. hf search
  3. See "[+] Answers to magic commands (GEN 1b): YES"

Expected behavior Should be "[+] Answers to magic commands (GEN 1b): NO"

Screenshots

[usb] pm3 --> hf search
[=] Checking for known tags...

[|] Searching for ISO14443-A tag... UID : 79 66 21 14           
ATQA : 00 04          
 SAK : 08 [2]          
TYPE : NXP MIFARE CLASSIC 1k | Plus 2k SL1 | 1k Ev1          
[=] proprietary non iso14443-4 card found, RATS not supported          
[+] Answers to magic commands (GEN 1b): YES           
[+] Prng detection: WEAK           

[+] Valid ISO14443-A tag  found

Desktop (please complete the following information):

[=] Measuring antenna characteristics, please wait...

[=] You can cancel this operation by pressing the pm3 button
..

[+] LF antenna: 21.24 V - 125.00 kHz
[+] LF antenna: 18.98 V - 134.00 kHz
[+] LF optimal: 21.67 V - 126.32 kHz
[+] LF antenna is OK

[+] HF antenna: 22.93 V - 13.56 MHz
[+] HF antenna is OK

[+] Displaying LF tuning graph. Divisor 89 is 134kHz, 95 is 125kHz.



**Additional context**
Chinese magic cards (GEN 1a) are still correctly identified. I don't think I have any GEN 1b cards to test with to see what it'll do.
iceman1001 commented 5 years ago

cool, It could be the MFC Ev1 which has 0x43 command messing with detection. can you run hf 14a list afterwards see if we can look at the actual transaction.

b4ndit commented 5 years ago

Hey iceman,

Here's what I ran:

[usb] pm3 --> hf search
[=] Checking for known tags...

[|] Searching for ISO14443-A tag... UID : 9D 72 EE 50
ATQA : 00 04
 SAK : 08 [2]
TYPE : NXP MIFARE CLASSIC 1k | Plus 2k SL1 | 1k Ev1
[=] proprietary non iso14443-4 card found, RATS not supported
[+] Answers to magic commands (GEN 1b): YES
[+] Prng detection: WEAK

[+] Valid ISO14443-A tag  found

[usb] pm3 --> hf 14a list
[+] Recorded Activity (TraceLen = 103 bytes)
[=]
Start = Start of Start Bit, End = End of last modulation. Src = Source of Transfer
ISO14443A - All times are in carrier periods (1/13.56MHz)

      Start |        End | Src | Data (! denotes parity error)                                           | CRC | Annotation
------------+------------+-----+-------------------------------------------------------------------------+-----+--------------------
          0 |        992 | Rdr |52                                                                       |     | WUPA
       2244 |       4612 | Tag |04  00                                                                   |     |
       7040 |       9504 | Rdr |93  20                                                                   |     | ANTICOLL
      10692 |      16580 | Tag |9d  72  ee  50  51                                                       |     |
      19072 |      29536 | Rdr |93  70  9d  72  ee  50  51  8f  71                                       |  ok | SELECT_UID
      30788 |      34308 | Tag |08  b6  dd                                                               |     |
      44032 |      48736 | Rdr |60  00  f5  7b                                                           |  ok | AUTH-A(0)
      50372 |      55044 | Tag |ac  48  d7  c9                                                           |     |
[usb] pm3 -->

Is that what you needed?

iceman1001 commented 5 years ago

Nop, that didn't do it. Can you run the following?


hf 14a raw -p -a -b 7 40
hf 14a raw -p -a 43
hf 14a list
``
doegox commented 5 years ago

Should be fixed now by https://github.com/RfidResearchGroup/proxmark3/commit/6422cc6d132c37d1cfdb9717fd31e9c5ae266bcc Bug was introduced at https://github.com/RfidResearchGroup/proxmark3/commit/74cd1bee3513b8970ad9765cc8b5f9851ec7b406