Skip to content
Info disclosure Write-up Intermediate

The problem

Several Android password managers set the FLAG_SECURE protection only on some screens, so fragments such as dialogs, toasts and popups still exposed secrets like a Secret Key, a copied password and a generated password. A malicious app with screen capture permission could record those secrets.

Lorenzo Stella Follow

Published on blog.doyensec.com

A few months ago I stumbled upon a 2016 blog post by Mark Murphy, warning about the state of FLAGSECURE window leaks in Android. This class of vulnerabilities has been around for a while, hence I wasn’t confident that I could still leverage the same weakness in modern Android applications.

Lorenzo Stella, on blog.doyensec.com

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 developers assumed FLAG_SECURE applies to the whole app, but it is set per window and is not inherited by fragments or by other windows such as dialogs, toasts and popups.

Impact

A malicious app holding screen capture permission could record secrets shown in these windows, including a 1Password Secret Key, a cleartext password in a Keeper toast and a Dashlane generated password along with the related service name.

What the attacker needed

Malicious app with screen capture permission; victim uses the affected app screen

The fix

The issues were fixed by the vendors in later app releases (1Password 7.1.5, Keeper 14.3.0 and Dashlane 6.1929.2).

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 apps can mark a screen as protected so that other apps cannot take screenshots or record it. The author found that this protection was applied only to the main screen, not to small pop-up windows shown on top of it. A malicious app that is allowed to record the screen could therefore capture passwords shown in those pop-ups.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Lorenzo Stella

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.