New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 849691 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Aug 9
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug-Security



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 description

UserAgent: 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:
 
select options showing.png
26.8 KB View Download
working correctly.png
20.8 KB View Download
This also happens when casting the screen,
Cc: lhchavez@chromium.org
Owner: elijahtaylor@chromium.org
Status: Untriaged (was: Unconfirmed)
Over to Elijah as well. We should consider blacking out the window during screenshots.
Labels: Security_Severity-Medium Security_Impact-Stable
Info leaks are usually considered medium severity bugs.
Labels: M-67
Cc: elijahtaylor@chromium.org lpique@chromium.org
Components: Platform>ARC
Owner: skuhne@chromium.org
Status: Assigned (was: Untriaged)
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
Project Member

Comment 7 by sheriffbot@chromium.org, Jun 12 2018

Labels: -Pri-2 Pri-1
Project Member

Comment 8 by sheriffbot@chromium.org, 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
Components: Platform>Apps>ARC
Project Member

Comment 10 by sheriffbot@chromium.org, 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
Project Member

Comment 11 by sheriffbot@chromium.org, Jul 25

Labels: -M-67 Target-68 M-68
Cc: skuhne@google.com
Cc: phshah@chromium.org
Owner: xutan@chromium.org
re-assigning to xutan@ and cc-ing phshah@ during skuhne@'s absence.
That's a shame that this vuln is left unattended for almost 2 months...
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.
Note app devs could always set the flag before showing any sub-windows to protect content in sub-windows.
Made a buganizer bug at b/112324956 for reference in CL. Please don't comment on that bug.
Status: Started (was: Assigned)
Labels: Merge-Request-69
Project Member

Comment 20 by sheriffbot@chromium.org, Aug 9

Labels: -Merge-Request-69 Merge-Review-69 Hotlist-Merge-Review
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
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
Filed b/112428307 for upstream work.
Status: Fixed (was: Started)
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.
Project Member

Comment 25 by sheriffbot@chromium.org, Aug 10

Labels: -Restrict-View-SecurityTeam Restrict-View-SecurityNotify
Labels: reward-topanel
Cc: mrjain@google.com
Labels: -reward-topanel reward-0
Sending this over to the Android VRP to take a look.
Per #24, no merge approval required. Removing merge-request label.
Labels: -Merge-Review-69
Project Member

Comment 30 by sheriffbot@chromium.org, Nov 16

Labels: -Restrict-View-SecurityNotify allpublic
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