Screen Leakage
A malicious Android app can create a second virtual display with the same callback key as the privileged screen-casting display, causing the system to stop only the non-privileged one when the user ends casting. The user then sees no casting indicator and may enter sensitive information while the screen is still being recorded.
Backing to 2015, Google introduced the MediaProjectionManager API in Android Lollipop, gave applications the ability to record the device’s screen. While this feature is incredibly powerful, it also raises some privacy and security concerns.
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
The system stores virtual displays in a map keyed by an app-supplied callback object, so a second display with the same key overwrites the first, and stopping casting only stops the overwritten entry.
Impact
The user could be misled into believing screen casting has stopped and enter sensitive information while the screen is still being recorded; Google rejected the report as 'Won't fix'.
What the attacker needed
User grants screen-casting permission; malicious app installed
How it was found
- The user grants screen-casting permission to the malicious app.
- The app starts a privileged screen-casting virtual display using a callback object as the key.
- The app creates a second non-privileged virtual display with the same callback object, overwriting the first entry in the system's map.
- The user toggles the casting tile to stop casting.
- The system stops only the non-privileged display and hides the casting indicator, while the privileged display keeps recording.
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 lets apps record your screen after you approve a warning dialog. The system shows an indicator while recording. This report shows that a malicious app can trick the system into hiding that indicator when you try to stop recording, so your screen keeps being captured without you knowing.
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.