Skip to content
Access control Disclosed report Beginner

Bypass pin(4 digit passcode on your android app)

Several activities in the Whisper Android app were exported, including the inbox and notifications screens. Because the app's optional four-digit PIN only guards those screens, any other app on the device could launch them directly and read the protected content without knowing the PIN.

adrianbelen Follow

Originally disclosed on HackerOne

Bounty$100 View original
  • Fixed in 35 hours
  • Paid in 35 hours
  • Disclosed after 32 days

i have found that this activities are exported ** Package: sh.whisper ** sh.whisper.WMainActivity sh.whisper.WWhisperBrowserActivity sh.whisper.WRelatedActivity sh.whisper.WDiscoverActivity sh.whisper.WCategoryFeedActivity sh.whisper.WSettingsActivity Parent Activity: sh.whisper.WMainV4Activity sh.whisper.WShareActivity sh.whisper.WQuickCreateActivity Parent Activity: sh.whisper.WMainV4Activity sh.whisper.WUserActivity sh.whisper.WNotificationsActivity sh.whisper.WInboxActivity sh.whisper.WParseDeepLinkActivity sh.whisper.WAddGroupActivity

whisper android app have a 4 digits PIN that can be set by the user to protect from unauthorized access if the phone is lost(protection for user's inbox and notification) , but sh.whisper.WNotificationsActivity and sh.whisper.WInboxActivity are exported ,so any android app can called these activities to bypass the 4-digit code

watch this video on have i bypass the 4-digit code

** references** http://cwe.mitre.org/data/definitions/926.html

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 3 min read.

Context

Whisper is an Android application (package sh.whisper) that lets users share content anonymously. The app offers an optional four-digit PIN that the user can set to protect against unauthorised access if the phone is lost. According to the report, the PIN is meant to protect the user's inbox and notifications.

The researcher found that a number of activities in the app are exported, meaning other applications on the same device can start them directly. Two of those exported activities, sh.whisper.WNotificationsActivity and sh.whisper.WInboxActivity, are exactly the screens the PIN is supposed to guard. Starting them from another app therefore reaches the protected content without the PIN being entered.

Setup

The report does not describe a specific test device, Android version or tooling. The precondition is that the Whisper app is installed on the device. The attacker model is a malicious app installed on the same phone, which is enough to send intents to exported activities.

Finding it

The researcher enumerated the activities declared by the package and found that the following are exported:

Text
** Package: sh.whisper **
  sh.whisper.WMainActivity
  sh.whisper.WWhisperBrowserActivity
  sh.whisper.WRelatedActivity
  sh.whisper.WDiscoverActivity
  sh.whisper.WCategoryFeedActivity
  sh.whisper.WSettingsActivity
    Parent Activity: sh.whisper.WMainV4Activity
  sh.whisper.WShareActivity
  sh.whisper.WQuickCreateActivity
    Parent Activity: sh.whisper.WMainV4Activity
  sh.whisper.WUserActivity
  sh.whisper.WNotificationsActivity
  sh.whisper.WInboxActivity
  sh.whisper.WParseDeepLinkActivity
  sh.whisper.WAddGroupActivity

Most of these are ordinary screens, but two stand out: sh.whisper.WNotificationsActivity and sh.whisper.WInboxActivity. These are the screens the PIN is supposed to protect. Because they are exported, any app on the device can launch them with an intent, and the PIN prompt is never shown. The researcher's conclusion is that the four-digit code can be bypassed this way.

The report references CWE-926, Improper Export of Android Application Components, as the weakness class.

Exploitation

Step 1: Identify the protected screens

The PIN protects the user's inbox and notifications. The corresponding activities are sh.whisper.WInboxActivity and sh.whisper.WNotificationsActivity.

Step 2: Confirm the activities are exported

Both activities appear in the exported list above. Exporting means another app can start them by component name, without going through the app's own navigation or authentication flow.

Step 3: Launch the activity from another app

The researcher says a video demonstrates the bypass; the report does not describe its contents. The report does not include the intent code or the exact commands used, so the precise intent action, extras and flags are not documented here.

Root cause

The protected activities are exported. The protected activities are exported, so any other app can start them directly.

Impact

A malicious app installed on the same device can open the user's inbox and notifications without knowing the four-digit PIN. A malicious app on the same device can open the inbox and notifications without the PIN. The report does not discuss what data is exposed beyond the inbox and notifications, nor whether other exported activities leak anything.

Fix

The direct remediation is to stop exporting sh.whisper.WInboxActivity and sh.whisper.WNotificationsActivity (set android:exported="false"), or to require the PIN check inside those activities regardless of how they are started. The other exported activities listed should be reviewed on the same basis.

Variants to test

  1. Enumerate exported activities in other Android apps with a manifest dump or a tool such as drozer or apktool, and look for screens behind a PIN, password or biometric gate. A positive result is an exported activity that opens the protected screen when started directly.
  2. Check exported activities that take intent extras, such as user IDs or message IDs, and see whether supplying another user's identifier returns their data. A positive result is content belonging to a different account.
  3. Check exported services and broadcast receivers in the same package for the same pattern. A positive result is a component that performs a privileged action when invoked by another app.

Hunting notes

This class of bug hides in apps that implement a local lock screen (PIN, pattern, password) as a separate activity in front of the real screens. The signal during recon is a manifest with many exported activities and a security feature that is enforced only at one entry point. The researcher recorded a video of the bypass. The report was disclosed on 12 April 2015 with a bounty of 100.00 USD.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

Whisper is an Android app (its package name is sh.whisper) that lets people share content anonymously. The app has an optional feature: you can set a four-digit PIN, and that PIN is meant to stop someone else from opening your inbox and your notifications if your phone is lost. Think of it like a small padlock on two doors inside the app.

The researcher found that those two doors, the inbox screen and the notifications screen, can be opened directly by any other app installed on the same phone, without the padlock ever being asked for. In Android terms, the two screens are "exported". The researcher recorded a video and referenced CWE-926, the entry for improper export of Android application components.

This article walks through the same steps as the technical write-up, but explains every term from scratch along the way.

Background: what an Android app is made of

Before the finding makes sense, you need three ideas.

  1. An Android app is a bundle of components. An app is not one single program. It is a collection of pieces, and the most common piece is called an activity. An activity is one screen: the inbox screen is an activity, the settings screen is an activity, the notifications screen is an activity. When you tap around inside an app, you are usually moving from one activity to another.
  2. Components have names. Every activity has a unique name, written like sh.whisper.WInboxActivity. The first part (sh.whisper) is the package, which is the app's identifier on the phone. The second part (WInboxActivity) is the name of that particular screen inside the app.
  3. Components can be private or exported. A private component can only be started by the app that owns it. An exported component can be started by any other app on the same phone. Exporting is sometimes necessary, for example when another app needs to open a share screen. But exporting a screen that is supposed to be protected is a mistake.

How does one app ask another app to open a screen? With an intent. An intent is a message that says "please open this component". If the component is exported, Android delivers the message and the screen opens. If it is private, Android refuses.

A useful everyday comparison: think of an office building. Most rooms are locked and only staff with a key card can enter. An exported activity is a room with a door straight onto the street: anyone walking past can open it, no reception desk, no key card, no questions.

The product and the feature under test

Whisper offers an optional four-digit PIN. The user turns it on, chooses four digits, and from then on the app is supposed to ask for those digits before showing the inbox and the notifications. The purpose is protection in the specific case where the phone is lost: a stranger who picks up the phone should not be able to read your messages just by opening the app.

This is a local lock. It is not a password on a server. It is a check performed by the app on the phone itself, in front of certain screens. That detail matters, because a local lock only works if every route to those screens passes through the check.

Setup

The report does not describe a specific test device, Android version or tooling. The only precondition it gives is that the Whisper app is installed.

The attacker in this scenario is a malicious app installed on the same phone. The attacker only needs a malicious app installed on the same phone. They only need the victim to install one app. Once installed, that app can send intents to exported activities, which is all this attack needs.

Finding it

The researcher listed the activities declared by the package and checked which ones are exported. The result was this list:

Text
** Package: sh.whisper **
  sh.whisper.WMainActivity
  sh.whisper.WWhisperBrowserActivity
  sh.whisper.WRelatedActivity
  sh.whisper.WDiscoverActivity
  sh.whisper.WCategoryFeedActivity
  sh.whisper.WSettingsActivity
    Parent Activity: sh.whisper.WMainV4Activity
  sh.whisper.WShareActivity
  sh.whisper.WQuickCreateActivity
    Parent Activity: sh.whisper.WMainV4Activity
  sh.whisper.WUserActivity
  sh.whisper.WNotificationsActivity
  sh.whisper.WInboxActivity
  sh.whisper.WParseDeepLinkActivity
  sh.whisper.WAddGroupActivity

Line by line, in plain words:

  • ** Package: sh.whisper ** is the header: everything below belongs to the app whose package name is sh.whisper.
  • sh.whisper.WMainActivity is the app's main screen.
  • sh.whisper.WWhisperBrowserActivity is a browsing screen inside the app.
  • sh.whisper.WRelatedActivity is a screen showing related content.
  • sh.whisper.WDiscoverActivity is a discovery or explore screen.
  • sh.whisper.WCategoryFeedActivity is a feed for a category.
  • sh.whisper.WSettingsActivity is the settings screen. The indented line Parent Activity: sh.whisper.WMainV4Activity records which screen it belongs under, so that Android can show a back arrow to the right place.
  • sh.whisper.WShareActivity is the share screen.
  • sh.whisper.WQuickCreateActivity is a quick-create screen, again with Parent Activity: sh.whisper.WMainV4Activity.
  • sh.whisper.WUserActivity is a user profile screen.
  • sh.whisper.WNotificationsActivity is the notifications screen.
  • sh.whisper.WInboxActivity is the inbox screen.
  • sh.whisper.WParseDeepLinkActivity is a screen that handles links opened from outside the app.
  • sh.whisper.WAddGroupActivity is a screen for adding a group.

Most of these are ordinary screens. Two of them are not: sh.whisper.WNotificationsActivity and sh.whisper.WInboxActivity are exactly the screens the PIN is supposed to guard. Because they are exported, any app on the phone can launch them with an intent, and the PIN prompt never appears. That is the researcher's conclusion: the four-digit code can be bypassed this way.

The report references CWE-926, Improper Export of Android Application Components, as the weakness class. CWE is a public catalogue of common software weaknesses, each with a number, so that reports can point at a shared definition instead of inventing a name. CWE-926 is the entry for exactly this mistake: an Android component that is exposed to other apps when it should not be.

Exploitation

Step 1: Identify the protected screens

The PIN protects the user's inbox and notifications. The corresponding activities are sh.whisper.WInboxActivity and sh.whisper.WNotificationsActivity.

Why this step first? Because a bypass only matters if it reaches something that was supposed to be locked. Before testing anything, you have to know which screens the lock is meant to cover. Here the report states it directly: the inbox and the notifications.

Step 2: Confirm the activities are exported

Both activities appear in the exported list above. Exporting means another app can start them by component name, without going through the app's own navigation or authentication flow.

Why this step? Because the whole attack depends on one property: can an outside app start these screens at all? If the two activities were private, the intent would be refused by Android and there would be nothing to report. The list from the previous section answers that question: yes, both are exported.

Step 3: Launch the activity from another app

The researcher says a video demonstrates the bypass; the report does not describe its contents. The report does not include the intent code or the exact commands used, so the precise intent action, extras and flags are not documented here.

The report gives no code for this step, so there is nothing to copy here.

Root cause

The protected activities are exported. The protected activities are exported, so any other app can start them directly.

An everyday comparison: a shop puts a guard at the front door and checks every customer's bag as they leave. That works, until someone notices there is a second door at the back with no guard at all. The check exists and is real, but it only covers one entrance. Here the "front door" is the app's own navigation, where the PIN prompt sits, and the "back door" is the exported activity, which Android will open for any app that asks.

The weakness is the exposure of the components themselves, which is what CWE-926 names.

Impact

A malicious app installed on the same device can open the user's inbox and notifications without knowing the four-digit PIN. A malicious app on the same device can open the inbox and notifications without the PIN.

The report does not discuss what data is exposed beyond the inbox and notifications, nor whether the other exported activities leak anything. Those remain open questions rather than findings.

Fix

The direct remediation is to stop exporting sh.whisper.WInboxActivity and sh.whisper.WNotificationsActivity (set android:exported="false"), or to require the PIN check inside those activities regardless of how they are started. The other exported activities listed should be reviewed on the same basis.

In plain words, there are two ways to close the back door. The first is to lock it: mark the two activities as not exported, so Android refuses intents from other apps. The second is to put a guard behind it: keep the activities exported but perform the PIN check inside them, so that no matter how the screen was reached, the user still has to enter the code. The second approach is more robust, because it does not rely on remembering to keep the door locked.

Variants to test

  1. Enumerate exported activities in other Android apps with a manifest dump or a tool such as drozer or apktool, and look for screens behind a PIN, password or biometric gate. A positive result is an exported activity that opens the protected screen when started directly.
  2. Check exported activities that take intent extras, such as user IDs or message IDs, and see whether supplying another user's identifier returns their data. A positive result is content belonging to a different account.
  3. Check exported services and broadcast receivers in the same package for the same pattern. A positive result is a component that performs a privileged action when invoked by another app.

A few of those terms need unpacking. A manifest is the file inside an Android app that declares its components and says which ones are exported; dumping it means extracting and reading that file. drozer and apktool are tools that help inspect and unpack Android apps. Intent extras are the small pieces of data attached to an intent, like a note clipped to the message, for example which user or which message the screen should show. A service is a component that runs in the background without a screen, and a broadcast receiver is a component that listens for system-wide announcements. All of them can be exported too, and the same reasoning applies.

Hunting notes

This class of bug hides in apps that implement a local lock screen (PIN, pattern, password) as a separate activity in front of the real screens. The signal during recon is a manifest with many exported activities and a security feature that is enforced only at one entry point.

The researcher recorded a video of the bypass. The report was disclosed on 12 April 2015 with a bounty of 100.00 USD.

Glossary

  • Activity: a single screen inside an Android app, such as the inbox or the settings page.
  • Android package: the unique identifier of an app on a phone, here sh.whisper.
  • apktool: a tool for unpacking and inspecting Android app files.
  • Authentication flow: the sequence of steps an app makes a user go through to prove who they are, such as entering a PIN.
  • Biometric gate: a lock that checks a fingerprint or face instead of a PIN or password.
  • Broadcast receiver: an Android component that listens for announcements sent across the system.
  • Bounty: a payment made by a company to a researcher who reports a valid security issue.
  • Component: a building block of an Android app, such as an activity, a service or a receiver.
  • CWE: a public catalogue of common software weaknesses, each identified by a number.
  • CWE-926: the catalogue entry for improper export of Android application components.
  • drozer: a tool for inspecting and testing Android apps and their components.
  • Exported: a component that any other app on the same phone is allowed to start.
  • Intent: a message one app sends to ask Android to open a component.
  • Intent extras: the small pieces of data attached to an intent, such as an identifier for what to display.
  • Local lock: a PIN, pattern or password checked by the app on the phone itself, rather than by a server.
  • Manifest: the file inside an Android app that declares its components and their settings, including whether they are exported.
  • Parent activity: the screen Android returns to when the user presses back from a given screen.
  • PIN: a short numeric code, here four digits, used as a local lock.
  • Privilege escalation: reaching something that should require more permission than the attacker has.
  • Recon: the early phase of a security test where you gather information about the target.
  • Service: an Android component that runs in the background without showing a screen.

More by adrianbelen

View all

4 more disclosed reports, best first.

More from Whisper

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.