Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NFC] DESfire Reading: Success on OFW, Fail on Unlshd #756

Closed
zinongli opened this issue May 27, 2024 · 1 comment
Closed

[NFC] DESfire Reading: Success on OFW, Fail on Unlshd #756

zinongli opened this issue May 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@zinongli
Copy link
Contributor

zinongli commented May 27, 2024

Describe the bug.

Hi all! I am having trouble reading a Mifare DESfire EV1 card. I can read it with OFW 0.101.2. But when I try to read it with Unleashed 074, it shows 14443A(Unknown) and fail to read the DESfire specific information. If I go to additional action - Read Specific Card Type - Read MIFARE DESFire, it will stuck on "Don't Move". Some similar issues can be found on momentum which forked the NFC app from here. Other potentially relevant issues can be found in OFW 1, 2, both of which should have been fixed in this commit which have been merged here. So I don't know how much they are correlated.

An extra bit of info that might be helpful: As you can see from the Unleashed log, the version reading failed. I went into lib\nfc\protocols\mf_desfire\mf_desfire_poller.c to find mf_desfire_poller_handler_read_version line 71 to make the function to ignore the version reading failure and move on to the next step. Then it just encounters another error in the next step mf_desfire_poller_handler_read_free_memory. So my guess is it's not the specific reading of some information that went wrong.

Also here's the dump for this card. It's read from OFW.

DESdump.txt

Reproduction

I'm not sure whether this can be triggered from reading an emulation from the dump I attached. But I doubt how dump specific this issue is. Maybe reading a DESfire card can repreoduce this bug. If not, let me know what I can do and I will try my best.

Target

No response

Logs

Here are the logs from both readings respectively.

When reading with OFW 0.101.2:
OFWlog.txt

When reading with Unleashed 074
UnleashedLog.txt

Anything else?

No response

@zinongli zinongli added the bug Something isn't working label May 27, 2024
@zinongli
Copy link
Contributor Author

zinongli commented May 28, 2024

To follow up, the above PR has resolved this bug on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant