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

Issue 647558 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug
Team-Security-UX


Sign in to add a comment

Add a new SecurityLevel (HTTP_SHOW_WARNING) for HttpBad [Desktop & Chrome for Android]

Project Member Reported by f...@chromium.org, Sep 16 2016

Issue description

The SecurityStateModel and all SecurityStateModelClients need to be updated:

(A) Add a new SecurityLevel, NONSECURE_VERBOSE.
(B) Update each SecurityStateModelClient to set the new SecurityLevel when appropriate.

Desktop: ChromeSecurityStateModelClient will set the security level to NONSECURE_VERBOSE when it observes that the current SSLStatus has a security style of SECURITY_STYLE_UNAUTHENTICATED and the SSLStatus indicates that a password or credit card field has been detected (see next section).

Clank: SecurityLevel is provided via a wrapper around the ChromeSecurityStateModelClient, so it should receive the desktop changes.

https://docs.google.com/document/d/1xno6g6OnA7strcyzE-o_drevW8L0Mb6ZBEkjsiwa6x0/edit#
 

Comment 1 by f...@chromium.org, Sep 16 2016

Blocking: 647561
That sounds a little weird. Why can't we reuse the existing non-secure level?
(I'm sure there's a good reason; it's just not immediately evident to me.)

Comment 3 by f...@chromium.org, Sep 16 2016

Blocking: 647562

Comment 4 by f...@chromium.org, Sep 16 2016

Blocking: 647564

Comment 5 by f...@chromium.org, Sep 16 2016

The new state that we're adding needs to be distinct from all of the others because the enum is directly consumed by UI. Otherwise, how will consumers know what UI to show? We aren't reusing existing UI form other states.

Comment 6 by est...@chromium.org, Sep 16 2016

Owner: est...@chromium.org
Status: Assigned (was: Available)

Comment 7 by f...@chromium.org, Sep 16 2016

Owner: f...@chromium.org
Mind if I do part (A)? I happen to already have a CL that does it bc I was investigating everywhere that SecurityLevels travelled. I'll send you the CL now and you can pick up the bug again to do part (B).

Comment 8 by f...@chromium.org, Sep 16 2016

Cc: est...@chromium.org

Comment 9 by est...@chromium.org, Sep 16 2016

Oh, cool! Didn't know you had already started on it.

Comment 10 by f...@chromium.org, Sep 16 2016

Blocking: 647754
Project Member

Comment 11 by bugdroid1@chromium.org, Sep 20 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0e7efe19fc0d0eb8454ff0cc6e6962aa50d72cdc

commit 0e7efe19fc0d0eb8454ff0cc6e6962aa50d72cdc
Author: felt <felt@chromium.org>
Date: Tue Sep 20 01:51:58 2016

Add new SecurityLevel for Http Bad state

This adds a new SecurityLevel, HTTP_SHOW_WARNING, for Http-Bad states.

At this point in time, HTTP_SHOW_WARNING is never set, nor is it
consumed anywhere. You should ONLY make use of it behind the HttpBad
flag. I'm adding it separately in a small CL since it's a dependency
for several of our other tasks.

BUG= 647558 

Review-Url: https://codereview.chromium.org/2346063002
Cr-Commit-Position: refs/heads/master@{#419640}

[modify] https://crrev.com/0e7efe19fc0d0eb8454ff0cc6e6962aa50d72cdc/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
[modify] https://crrev.com/0e7efe19fc0d0eb8454ff0cc6e6962aa50d72cdc/chrome/browser/ssl/chrome_security_state_model_client.cc
[modify] https://crrev.com/0e7efe19fc0d0eb8454ff0cc6e6962aa50d72cdc/components/security_state/security_state_model.cc
[modify] https://crrev.com/0e7efe19fc0d0eb8454ff0cc6e6962aa50d72cdc/components/security_state/security_state_model.h
[modify] https://crrev.com/0e7efe19fc0d0eb8454ff0cc6e6962aa50d72cdc/components/toolbar/toolbar_model_impl.cc

Comment 12 by f...@chromium.org, Sep 20 2016

Cc: -est...@chromium.org f...@chromium.org
Owner: est...@chromium.org
(A) landed, back to you for (B)

Comment 13 by f...@chromium.org, Sep 20 2016

Summary: Add a new SecurityLevel (HTTP_SHOW_WARNING) for HttpBad [Desktop & Chrome for Android] (was: Add a new SecurityLevel (NONSECURE_VERBOSE) for HttpBad [Desktop & Chrome for Android])
Project Member

Comment 14 by bugdroid1@chromium.org, Sep 21 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a7040a0af3abeca232b0b4bf493d30f070e37d86

commit a7040a0af3abeca232b0b4bf493d30f070e37d86
Author: estark <estark@chromium.org>
Date: Wed Sep 21 03:07:51 2016

Add SSLStatus flags to feed HTTP_WARNING security level

This change adds SSLStatus flags to |content_status| for when the page
is detected to contain password or credit card fields over HTTP. Nothing
yet sets these SSLStatus flags.

When the flags are set (and the command-line switch), SecurityStateModel
downgrades the security level to HTTP_WARNING.

This is based on top of https://codereview.chromium.org/2346063002/

BUG= 647558 

Review-Url: https://codereview.chromium.org/2350273002
Cr-Commit-Position: refs/heads/master@{#419961}

[modify] https://crrev.com/a7040a0af3abeca232b0b4bf493d30f070e37d86/chrome/browser/ssl/chrome_security_state_model_client.cc
[modify] https://crrev.com/a7040a0af3abeca232b0b4bf493d30f070e37d86/chrome/browser/ssl/chrome_security_state_model_client_browser_tests.cc
[modify] https://crrev.com/a7040a0af3abeca232b0b4bf493d30f070e37d86/components/security_state/security_state_model.cc
[modify] https://crrev.com/a7040a0af3abeca232b0b4bf493d30f070e37d86/components/security_state/security_state_model.h
[modify] https://crrev.com/a7040a0af3abeca232b0b4bf493d30f070e37d86/components/security_state/security_state_model_unittest.cc
[modify] https://crrev.com/a7040a0af3abeca232b0b4bf493d30f070e37d86/content/public/browser/ssl_status.h
[modify] https://crrev.com/a7040a0af3abeca232b0b4bf493d30f070e37d86/tools/metrics/histograms/histograms.xml

Labels: M-55
Status: Fixed (was: Assigned)
I think we can mark this done. (There's a separate bug for ios). felt, anything else you want to do here?

Comment 16 by f...@chromium.org, Sep 21 2016

nope think this one's done. 1 down, ... a lot to go!
Components: -Security>UX Internals>PageSecurityState
Components: Internals>Permissions>CrowdConsent
Components: -Internals>Permissions>CrowdConsent

Sign in to add a comment