Issue metadata
Sign in to add a comment
|
Android app on CrOS allows capture of a HTML select tag when FLAG_SECURE is set
Reported by
raniel...@gmail.com,
Jun 5 2018
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; CrOS x86_64 10452.96.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36 Platform: 10452.96.0 (Official Build) stable-channel cyan Steps to reproduce the problem: We are seeing this issue with the alpha version of our app TestNav. It is a hybrid app with a WebView. Basically a secure, controlled browser. The window has the LayoutParams.FLAG_SECURE flag set (https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE). It is working as expected, except when the select options are displayed in the web view, What is the expected behavior? When taking a screen shot, the window should be completely blacked out. It works correctly when the select options are not displayed (working correctly.png) What went wrong? When the select option is displayed, it shows up in the screenshot (select option showing.png) Did this work before? N/A Chrome version: 66.0.3359.181 Channel: stable OS Version: 10452.96.0 Flash Version:
,
Jun 7 2018
This also happens when casting the screen,
,
Jun 11 2018
Over to Elijah as well. We should consider blacking out the window during screenshots.
,
Jun 11 2018
Info leaks are usually considered medium severity bugs.
,
Jun 11 2018
,
Jun 11 2018
Seems like child views/popups are not inheriting the FLAG_SECURE param, but they probably should. Stefan, can we find someone to fix this? +lpique in case there is something we want to do at the compositing layer instead
,
Jun 12 2018
,
Jun 20 2018
skuhne: Uh oh! This issue still open and hasn't been updated in the last 14 days. This is a serious vulnerability, and we want to ensure that there's progress. Could you please leave an update with the current status and any potential blockers? If you're not the right owner for this issue, could you please remove yourself as soon as possible or help us find the right one? If the issue is fixed or you can't reproduce it, please close the bug. If you've started working on a fix, please set the status to Started. Thanks for your time! To disable nags, add the Disable-Nags label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jun 26 2018
,
Jul 4
skuhne: Uh oh! This issue still open and hasn't been updated in the last 28 days. This is a serious vulnerability, and we want to ensure that there's progress. Could you please leave an update with the current status and any potential blockers? If you're not the right owner for this issue, could you please remove yourself as soon as possible or help us find the right one? If the issue is fixed or you can't reproduce it, please close the bug. If you've started working on a fix, please set the status to Started. Thanks for your time! To disable nags, add the Disable-Nags label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 25
,
Aug 7
,
Aug 7
re-assigning to xutan@ and cc-ing phshah@ during skuhne@'s absence.
,
Aug 7
That's a shame that this vuln is left unattended for almost 2 months...
,
Aug 7
There is a quick mitigation that covers 95% cases, but the way Android code constructs makes it hard to completely fix it especially when we want to upstream a fix for it in future releases. These menus are sub-windows to the Activity window and they didn't inherit FLAG_SECURE param as Elijah pointed out above, so the fix is to simply inherit that param. It's easy to cover the case when the the sub-window is created after FLAG_SECURE is set, but hard if the flag is set after the sub-window is already created, because there is not yet a mapping from parent window to sub-windows. We certainly can create such a mapping, but IMO that's too much effort for too little benefit, because sub-windows are usually transient and setting the flag after a sub-window is shown is rare (unless that's toggled by a menu item, but then the menu will disappear when the flag is set so it doesn't belong to this case either). Let me know if anyone feels strongly against not covering the rest rare cases.
,
Aug 7
Note app devs could always set the flag before showing any sub-windows to protect content in sub-windows.
,
Aug 7
Made a buganizer bug at b/112324956 for reference in CL. Please don't comment on that bug.
,
Aug 8
,
Aug 9
,
Aug 9
This bug requires manual review: M69 has already been promoted to the beta branch, so this requires manual review Please contact the milestone owner if you have questions. Owners: amineer@(Android), kariahda@(iOS), cindyb@(ChromeOS), govind@(Desktop) For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Aug 9
For context on the CLs that are to be merged to the 69 branch, it's just a very low risk three-liner: http://ag/4710992
,
Aug 9
Filed b/112428307 for upstream work.
,
Aug 9
,
Aug 9
M68 is already in staged stable release phase so we can't make it into M68. M69 already has this fix in its branch now.
,
Aug 10
,
Aug 13
,
Aug 16
Sending this over to the Android VRP to take a look.
,
Aug 22
Per #24, no merge approval required. Removing merge-request label.
,
Sep 27
,
Nov 16
This bug has been closed for more than 14 weeks. Removing security view restrictions. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by raniel...@gmail.com
, Jun 5 201820.8 KB
20.8 KB View Download