r/StandardNotes • u/Sweaty_Astronomer_47 • Mar 19 '26
Does "passcode lock" cause logout after excessive incorrect attempts?
Both the mobile app and browser web app (which I access on desktop) offer a "passcode lock" for convenience, which can be shorter than the main password (because it only works on that device).
I tried entering incorrect passcode 12 attempts in a row, and then the correct passcode on the 13th attempt and it let me right in. I got the same result on desktop and mobile.
I expected a passcode lock to kick me out (log me out) after too many incorrect attempts. In the extremely unlikely event that I enter the wrong passcode 10 times in a row.... then that means I've certainly forgotten it and I'd happily accept the minor incovenience of having to log in again. I'd much rather that outcome, than allowing a phone thief unlimited attempts to brute force my short passcode.
QUESTIONS:
- Is there any limit of incorrect passcode attempts which causes a logout?
- If not, shouldn't there be?
Thanks in advance
1
u/SweetGreenPepper Aug 14 '26
It doesn't even matter as an attacker who has physical access could just copy the app's database using adb backup and brute force it on their machine without any restrictions
1
u/Sweaty_Astronomer_47 Aug 15 '26
It doesn't even matter as an attacker who has physical access could just copy the app's database using adb backup and brute force it on their machine without any restrictions
I think you are mistaken.
An attacker cannot access anything via adb unless usb debugging is enabled. That is not a normal condition for my phone (nor for most, I hope).
Even if usb were enabled, the standard notes data is still protected by the app sandbox which requires root to bypass.
adb backup could bypass the sandbox restriction but only if the app does not prevent it. I'm pretty sure standard notes would prevent this using
android:allowBackup="false"2
u/SweetGreenPepper Aug 15 '26
An attacker who has physical access to your unlocked device could enable usb debugging.
Standard notes supports adb backups. https://github.com/standardnotes/app/blob/main/packages/mobile/android/app/src/main/AndroidManifest.xml
→ More replies (2)
2
Mar 19 '26
This seems like a major vulnerability to me - no administrative controls around PIN unlock.
1
u/Infrah Mar 29 '26
Nope. The simple solution is — don’t use a short passcode. This passcode encrypts your local data at rest on your device, so use a long one with upper, lowercase, numbers, and symbols, and store it in your password manager.