Skip to content
Access control Disclosed report Intermediate

Passcode Protection in Android Devices Can be Bypassed.

The NextCloud Android app's passcode lock could be bypassed by launching an internal activity directly, which skipped the login screen and opened the app's file interface. An attacker with access to the unlocked device could then view the user's files and information without knowing the passcode.

ctulhu Follow

Originally disclosed on HackerOne

  • Triaged in 6 days
  • Disclosed after 2 months

###What is The Vulnerability?

The Passcode can be bypassed by calling a MainLoginActivity which is com.owncloud.android.ui.activity.FileDisplayActivity , We have successfully bypassed the passcode and are redirected to the App's User Interface. of the user’s credentials:

Android Version: 9 Non Rooted Device.

##How to Reproduce: 1.) Setup a Emulated Device Via Android Studio AVD Using the Same Setup.

21.png
21.png From the original on HackerOne

2.) Install NextCloud Client and Login Your NextCloud Account.

22.png
22.png From the original on HackerOne

3.) Setup the PassCode

23.png
23.png From the original on HackerOne

4.) Install Drozer and Drozer Agent

5.) Start the Drozer Embedded Server

24.png
24.png From the original on HackerOne

6.) Open your CMD/Console and type drozer console connect

█████████

7.) Close the NextCloud Client and Open it Again

26.png
26.png From the original on HackerOne

8.) Go Back to Drozer Console and run this code

run app.activity.start --component com.nextcloud.client com.owncloud.android.ui.activity.FileDisplayActivity

9.) Voila, Passcode Bypassed

27.png
27.png From the original on HackerOne

##Supporting Materials

  • Attached as poc.mp4

█████

Impact

Successful exploitation of this vulnerability allows an attacker to bypass the android application's authentication mechanisms and gain unauthorized access to the user files and infos.

The original report as published on HackerOne, by ctulhu. 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 the file display activity was exported and did not itself enforce the passcode check, so it could be launched directly, bypassing the login screen.

Impact

An attacker could bypass the app's authentication and gain unauthorised access to the user's files and information.

What the attacker needed

App logged in with passcode set; ability to run Drozer on the device

How it was found

  1. Set up an emulated device in Android Studio with the same configuration.
  2. Install the NextCloud client and log in to a NextCloud account.
  3. Configure the passcode.
  4. Install Drozer and the Drozer agent and start the embedded server.
  5. Close and reopen the NextCloud client.
  6. From the Drozer console, start the file display activity directly to reach the app interface without the passcode.

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.

Android apps have screens called activities. This app's passcode could be bypassed by starting its file display activity directly with a tool, skipping the lock and showing the user's files.

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 by ctulhu

View all

12 more disclosed reports, best first.

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.