Able to bypass "Device credentials" Lock
The Nextcloud Android app's device credentials lock could be bypassed by rapidly opening and closing the app, causing a brief flash of the folder list. An attacker with physical access to an unlocked phone could then access the user's files without authentication.
- Paid in 4 months
- Disclosed after 5 months
Prepare
- Enable "Device credentials" lock via the settings. (I'm using fingerprint in my case)
- Test if this works by closing the app and open it again.
- If this works close the app again, do a force close to make sure the application is closed.
The next steps need to be done quickly right after each other.
- Make sure you are able to quickly start the Nextcloud app, i put mine on the homescreen.
- Now quickly open the app and press backspace and open the app and press backspace, do this a few times right after each other until you see a flash of the folder list.
- After you have seen this folder tree flash, you can start the application without any credentials.
Note: This only happens when doing this fast, else this won't work. I added a adb logcat output of the nextcloud process i started during my test.
Impact
The impact is that someone without the correct credentials but an unlocked phone is still able to login to the Nextcloud app and see all the files of the user.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a race condition in the app's lock screen logic, where rapid activity transitions allow the authentication check to be skipped.
Impact
An attacker with an unlocked phone could bypass the app lock and view all of the user's files, but the bypass requires precise timing and only works when done quickly.
What the attacker needed
Physical access to an unlocked phone; device credentials lock enabled; rapid app open/close timing
How it was found
- Enable the device credentials lock in the app settings.
- Force close the app to ensure it is fully closed.
- Quickly open the app and press backspace repeatedly until the folder list flashes.
- After the flash, open the app again and it starts without asking for credentials.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
The app has a lock that asks for your fingerprint when you open it. The reporter found that if you open and close the app very quickly many times, the lock screen sometimes disappears for a moment and then stays gone. This means someone holding your unlocked phone could get into your files without your fingerprint.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.