Skip to content
Access control Disclosed report Intermediate CVE-2019-5451

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.

blackdex Follow

Originally disclosed on HackerOne

  • Paid in 4 months
  • Disclosed after 5 months

Prepare

  1. Enable "Device credentials" lock via the settings. (I'm using fingerprint in my case)
  2. Test if this works by closing the app and open it again.
  3. 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.

  1. Make sure you are able to quickly start the Nextcloud app, i put mine on the homescreen.
  2. 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.
  3. 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.

The original report as published on HackerOne, by blackdex. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Enable the device credentials lock in the app settings.
  2. Force close the app to ensure it is fully closed.
  3. Quickly open the app and press backspace repeatedly until the folder list flashes.
  4. 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.

More from Nextcloud

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.