Unrewarded Vulnerability : Android Testing — Missing FLAG_
The Android ecommerce app did not set the FLAG_SECURE window flag, so the password typed on the login screen stayed visible in the system's recent-apps preview after the app was backgrounded. Anyone with access to the device's recent apps screen could read that password.
During my testing, I observed that sensitive information, specifically the password entered on the login screen, was visible in the app preview when the app was sent to the background. This means that the password could be viewed by anyone accessing the recent apps screen, posing a serious risk to user privacy.
The full write-up lives on its author's site
It belongs to its author, 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 login screen's window was not configured with the FLAG_SECURE flag, so Android was allowed to capture and display its contents in the recent-apps preview.
Impact
A person with physical access to the unlocked device could read the password from the recent-apps preview, exposing user credentials; the program rated it P4 and the author argues it is really P5.
What the attacker needed
Physical access to the unlocked device; app backgrounded with password on screen
The fix
The login screen's window should be set with FLAG_SECURE so Android blocks screenshots, previews and screen recording of it.
How it was found
- Open the app and type a password on the login screen.
- Send the app to the background.
- Open the recent apps screen and observe the password shown in the app preview.
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.
Android keeps a snapshot of each app for the recent-apps screen, which shows what the app looked like when you last used it. If an app does not mark its window as protected, that snapshot can include private things like a typed password. Here the login screen was not protected, so the password could be seen by anyone who picked up the phone and opened the recent apps view.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.