status-im / status-mobile

a free (libre) open source, mobile OS for Ethereum
https://status.app
Mozilla Public License 2.0
3.92k stars 984 forks source link

java.lang.ClassCastException Crash during keycard migration #21584

Closed VolodLytvynenko closed 2 weeks ago

VolodLytvynenko commented 2 weeks ago

Steps:

  1. Go set up keycard flow using empty keycard
  2. Scan keycard
  3. Enter seed phrase that does not belongs to your user
  4. Proceed with seed phrase

Actual result:

The user can proceed with the incorrect seed phrase, leading to a "java.lang.ClassCasetException" error

https://github.com/user-attachments/assets/c2047866-a7cb-41ac-b398-5bc9994a8dfe

Expected result:

The validation "seed phrase does not match your Status profile" is shown https://www.figma.com/design/YGm3igIOAcwMqUVJWCJ6f1/Keycard-UX?node-id=121-19369&node-type=instance&m=dev

OS:

IOS, Android

Devices:

Logs

Status-debug-logs.zip