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

Secure mode reset #131

Open
rick51231 opened this issue Oct 7, 2021 · 0 comments
Open

Secure mode reset #131

rick51231 opened this issue Oct 7, 2021 · 0 comments

Comments

@rick51231
Copy link

rick51231 commented Oct 7, 2021

Hi everyone.
Recently I have played with serial protocol and sent "HostEcdsaKey" message with empty body. As I see, now device in secure mode, which one I can't unpair. Any way to factory reset device or do something else?
Tried to downgrade firmware with "face database reset" - no luck.

Start session:

[2021-10-07 18:15:00.992] [debug] [PacketSender] Sending packet 'c'
[2021-10-07 18:15:00.996] [debug] [PacketSender] Waiting packet..
[2021-10-07 18:15:01.306] [debug] [PacketSender] Received packet 'Y' after 309 millis
[2021-10-07 18:15:01.306] [error] [SecureSession] Mutual authentication failed

Unpair:

[2021-10-07 18:15:40.455] [debug] [PacketSender] Sending packet 'a'
[2021-10-07 18:15:40.461] [debug] [PacketSender] Waiting packet..
[2021-10-07 18:15:40.766] [debug] [PacketSender] Received packet 'Y' after 305 millis
[2021-10-07 18:15:40.766] [error] [SecureSession] Mutual authentication failed

Assume, that I've sent an empty packet, I've tried to change sample pub key to 0x00:

static unsigned char SAMPLE_HOST_PUB_KEY[PUB_KEY_SIZE] = {
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};

Got luck with pairing request, but other requests are still the same:

Connected to device
[2021-10-07 18:15:39.389] [info] [FaceAuthenticatorImpl] Pairing start
[2021-10-07 18:15:39.391] [debug] [PacketSender] Sending packet 'a'
[2021-10-07 18:15:39.395] [debug] [PacketSender] Waiting packet..
[2021-10-07 18:15:39.556] [debug] [PacketSender] Received packet 'b' after 161 millis
[2021-10-07 18:15:39.556] [info] [FaceAuthenticatorImpl] Pairing Ok
Final status:Ok

Device info:

Additional information:
 * Firmware: RECOG:1.6.21.0|AS2DLR:31.5.21.0|OPFW:4.3.0.8200|NNLAS:7.13.21.0|NNLED:7.26.21.0|DNET:20.4.21.0|YOLO:6.6.21.0
 * Host: 0.25.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant