Skip to content

Conversation

@SaintPatrck
Copy link
Contributor

@SaintPatrck SaintPatrck commented Oct 13, 2025

🎟️ Tracking

PM-26804

πŸ“” Objective

This commit addresses a security concern where the password input in the VerifyPasswordViewModel was not being cleared after successful verification.

To resolve this, the password input field is now cleared from the view model's state upon successful password validation or vault unlock. The input field in VerifyPasswordState is also annotated with @IgnoredOnParcel to prevent it from being saved to the instance state, further enhancing security.

Additionally, the onCleared() method is overridden to explicitly clear the password input, as a temporary workaround for a suspected OS-level memory leak. Corresponding unit tests have been updated to verify that the input is cleared after successful verification.

πŸ“Έ Screenshots

Screen_recording_20251013_124313.mp4

…ViewModel`

This commit addresses a security concern where the password input in the `VerifyPasswordViewModel` was not being cleared after successful verification.

To resolve this, the password input field is now cleared from the view model's state upon successful password validation or vault unlock. The `input` field in `VerifyPasswordState` is also annotated with `@IgnoredOnParcel` to prevent it from being saved to the instance state, further enhancing security.

Additionally, the `onCleared()` method is overridden to explicitly clear the password input, as a temporary workaround for a suspected OS-level memory leak. Corresponding unit tests have been updated to verify that the input is cleared after successful verification.
@github-actions
Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Details – 5d9004c7-037c-4260-a6b3-498be5ab0311

Great job! No new security vulnerabilities introduced in this pull request

@codecov
Copy link

codecov bot commented Oct 13, 2025

Codecov Report

❌ Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.
βœ… Project coverage is 84.59%. Comparing base (62f76a4) to head (03f8461).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...ortitems/verifypassword/VerifyPasswordViewModel.kt 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6017      +/-   ##
==========================================
- Coverage   84.59%   84.59%   -0.01%     
==========================================
  Files         722      722              
  Lines       54891    54896       +5     
  Branches     7580     7580              
==========================================
+ Hits        46436    46439       +3     
- Misses       5798     5800       +2     
  Partials     2657     2657              

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SaintPatrck SaintPatrck added this pull request to the merge queue Oct 13, 2025
@SaintPatrck
Copy link
Contributor Author

Thanks, @david-livefront!

Merged via the queue into main with commit 054afab Oct 13, 2025
9 checks passed
@SaintPatrck SaintPatrck deleted the PM-26804/verify-password_clear-savedstate branch October 13, 2025 18:24
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

Successfully merging this pull request may close these issues.

3 participants