Skip to content

In force-verify mode, prevent bypassing by cancelling device verification #29487

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

Merged
merged 3 commits into from
Mar 20, 2025

Conversation

andybalaam
Copy link
Member

@andybalaam andybalaam commented Mar 13, 2025

Fixes #29230

New behaviour: in force-verify mode, don't open the main app UI when we launch or close the "Verify with another device" dialog:

force-verify-device.mp4

@andybalaam andybalaam force-pushed the andybalaam/force-verify-even-if-cancel-device branch from ad26b1d to 8b7cb62 Compare March 14, 2025 11:40
@andybalaam andybalaam marked this pull request as ready for review March 14, 2025 11:53
@andybalaam andybalaam requested a review from a team as a code owner March 14, 2025 11:53
@andybalaam andybalaam requested review from dbkr and florianduros March 14, 2025 11:53
Copy link
Member

@florianduros florianduros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good but lack test coverage

@andybalaam
Copy link
Member Author

Seems good but lack test coverage

Adding tests was a struggle - would appreciate you taking a look at what I did to fix it in 138cf57

@andybalaam
Copy link
Member Author

To give more context: it seems that there was a race between displaying the "Verify this device" screen (Views.COMPLETE_SECURITY) and the logged-in view (Action.ViewHomePage), so "Verify this device" was displayed very briefly, then replaced with a logged in view. I added an if that simply prevents us from jumping to the home page if we are forcing verification and the device is not verified.

@andybalaam
Copy link
Member Author

FWIW I tried it all out manually after my latest changes and it still seems to work as it did before.

Copy link
Member

@florianduros florianduros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for taking the time to add the test!

@andybalaam andybalaam added this pull request to the merge queue Mar 20, 2025
Merged via the queue into develop with commit 170dcd1 Mar 20, 2025
34 checks passed
@andybalaam andybalaam deleted the andybalaam/force-verify-even-if-cancel-device branch March 20, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EW: Starting then cancelling "verify with another device" should not allow user into the app
2 participants