How I Bypass Owncloud Android App Pin
The ownCloud Android app stored the four-digit PIN in a plain-text preferences file inside the app's private data directory, and also kept a flag that enabled or disabled the PIN. Anyone with access to the device's filesystem could read the PIN or switch the protection off.
Published on addictivehackers.blogspot.com
The original lives on addictivehackers.blogspot.com
We do not hold its text, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the app stored the PIN in plain text in a shared preferences file and relied on the app sandbox alone for protection, without hashing the value or binding it to secure storage.
Impact
An attacker with filesystem access to the device could read the PIN or disable the lock, though this requires the device to be rooted or otherwise compromised.
What the attacker needed
Physical or root access to the device
How it was found
- Install the app and enable the PIN in the app settings, then set a four-digit PIN.
- Navigate to the app's installation directory under the shared_prefs folder.
- Open the preferences XML file in an editor.
- Read the plain-text PIN digits, or set the PIN-enabled flag to false and save.
- Reopen the app to confirm the PIN is bypassed.
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 write-up has not been written yet. The Original tab links to the source.
The app locks itself with a short number code, called a PIN. It saved that code in a settings file on the phone without hiding it, so someone who can browse the phone's files can simply read the code or turn the lock off. This matters when a phone is rooted, shared, or otherwise accessible to another person.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.