Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Issue 235623002: Password manager internals page: Improve security (Closed)

Created:
6 years, 8 months ago by vabr (Chromium)
Modified:
3 years, 10 months ago
CC:
chromium-reviews, benquan, jam, browser-components-watch_chromium.org, darin-cc_chromium.org, arv+watch_chromium.org, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org, Dane Wallinga
Visibility:
Public.

Description

Password manager internals page: Improve security This CL makes sure that gathered logs are sanitized always on the browser side. It is a follow-up to https://codereview.chromium.org/228263004/, where some security concerns were mentioned. The security and other parts of the design doc has been updated: https://docs.google.com/document/d/1ArDhTo0w-8tOPiTwqM1gG6ZGqODo8UTpXlJjjnCNK4s/edit#heading=h.5eksqdbff8b BUG=347927 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264949

Patch Set 1 : #

Total comments: 2

Patch Set 2 : innerHTML -> innerText #

Total comments: 11

Patch Set 3 : Splitting off HTML escaping to https://codereview.chromium.org/236203003 #

Patch Set 4 : Rebased #

Patch Set 5 : ID->string in a switch statement; also clang-format #

Patch Set 6 : Sanitize before IPC and rebased #

Total comments: 10

Patch Set 7 : Comments addressed #

Patch Set 8 : Compile errors fixed #

Total comments: 2

Patch Set 9 : Removed excessive logging functions #

Total comments: 4

Patch Set 10 : Pass a string16 by a const ref #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -123 lines) Patch
M components/autofill/content/common/autofill_messages.h View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M components/autofill/core/common/save_password_progress_logger.h View 1 2 3 4 5 6 7 8 1 chunk +44 lines, -19 lines 0 comments Download
M components/autofill/core/common/save_password_progress_logger.cc View 1 2 3 4 5 6 7 8 9 3 chunks +181 lines, -68 lines 0 comments Download
M components/autofill/core/common/save_password_progress_logger_unittest.cc View 1 2 3 4 5 6 6 chunks +39 lines, -35 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
vabr (Chromium)
Hi Ilya and Tom. Please take a look at how I tried to address the ...
6 years, 8 months ago (2014-04-11 18:40:52 UTC) #1
Tom Sepez
https://codereview.chromium.org/235623002/diff/20001/chrome/browser/resources/password_manager_internals/password_manager_internals.js File chrome/browser/resources/password_manager_internals/password_manager_internals.js (right): https://codereview.chromium.org/235623002/diff/20001/chrome/browser/resources/password_manager_internals/password_manager_internals.js#newcode12 chrome/browser/resources/password_manager_internals/password_manager_internals.js:12: textDiv.innerHTML = logText; Oh, not so good. How can ...
6 years, 8 months ago (2014-04-11 18:57:42 UTC) #2
vabr (Chromium)
https://codereview.chromium.org/235623002/diff/20001/chrome/browser/resources/password_manager_internals/password_manager_internals.js File chrome/browser/resources/password_manager_internals/password_manager_internals.js (right): https://codereview.chromium.org/235623002/diff/20001/chrome/browser/resources/password_manager_internals/password_manager_internals.js#newcode12 chrome/browser/resources/password_manager_internals/password_manager_internals.js:12: textDiv.innerHTML = logText; On 2014/04/11 18:57:43, Tom Sepez wrote: ...
6 years, 8 months ago (2014-04-11 19:03:13 UTC) #3
Tom Sepez
That's not a robust design against future changes which might not escape the string properly.
6 years, 8 months ago (2014-04-11 19:29:10 UTC) #4
vabr (Chromium)
Tom, I put the innerText back. Please take a look again. Thanks! Vaclav
6 years, 8 months ago (2014-04-11 19:46:39 UTC) #5
Tom Sepez
LGTM from a security perspective. Thanks.
6 years, 8 months ago (2014-04-11 19:54:22 UTC) #6
Ilya Sherman
https://codereview.chromium.org/235623002/diff/60001/chrome/browser/password_manager/chrome_password_manager_client.h File chrome/browser/password_manager/chrome_password_manager_client.h (right): https://codereview.chromium.org/235623002/diff/60001/chrome/browser/password_manager/chrome_password_manager_client.h#newcode57 chrome/browser/password_manager/chrome_password_manager_client.h:57: autofill::SavePasswordProgressLogger::StructuredLog>& logs) OVERRIDE; Wow, is this really how clang-format ...
6 years, 8 months ago (2014-04-12 00:00:50 UTC) #7
Ilya Sherman
Also, I'd appreciate it if you could split this CL up into two pieces: One ...
6 years, 8 months ago (2014-04-12 00:02:12 UTC) #8
vabr (Chromium)
Thanks Tom and Ilya, for your comments. I have yet to answer a couple of ...
6 years, 8 months ago (2014-04-12 09:11:37 UTC) #9
Ilya Sherman
https://codereview.chromium.org/235623002/diff/60001/components/autofill/core/common/save_password_progress_logger.h File components/autofill/core/common/save_password_progress_logger.h (right): https://codereview.chromium.org/235623002/diff/60001/components/autofill/core/common/save_password_progress_logger.h#newcode120 components/autofill/core/common/save_password_progress_logger.h:120: }; On 2014/04/12 09:11:38, vabr (Chromium) wrote: > On ...
6 years, 8 months ago (2014-04-12 22:25:31 UTC) #10
vabr (Chromium)
Thanks, Ilya. In the meantime I addressed your comment about the ID->string map, as that's ...
6 years, 8 months ago (2014-04-13 20:12:29 UTC) #11
Tom Sepez
Compromised renderers are not the issue. The issue is a lack of auditability for the ...
6 years, 8 months ago (2014-04-15 18:59:43 UTC) #12
vabr (Chromium)
Thanks Tom and Ilya. I addressed all remaining comments and changed the implementation as suggested ...
6 years, 8 months ago (2014-04-16 20:55:35 UTC) #13
Tom Sepez
lgtm
6 years, 8 months ago (2014-04-16 21:43:00 UTC) #14
Ilya Sherman
https://codereview.chromium.org/235623002/diff/170001/components/autofill/core/common/save_password_progress_logger.cc File components/autofill/core/common/save_password_progress_logger.cc (right): https://codereview.chromium.org/235623002/diff/170001/components/autofill/core/common/save_password_progress_logger.cc#newcode33 components/autofill/core/common/save_password_progress_logger.cc:33: // is not open), that optimizing for code robustness ...
6 years, 8 months ago (2014-04-16 22:02:11 UTC) #15
vabr (Chromium)
Thanks, Ilya, I addressed/answered all your comments, PTAL. Thanks, Tom. Based on Ilya feedback I ...
6 years, 8 months ago (2014-04-17 12:33:09 UTC) #16
Ilya Sherman
LGTM, but please consider my comment below: https://codereview.chromium.org/235623002/diff/210001/components/autofill/core/common/save_password_progress_logger.cc File components/autofill/core/common/save_password_progress_logger.cc (right): https://codereview.chromium.org/235623002/diff/210001/components/autofill/core/common/save_password_progress_logger.cc#newcode228 components/autofill/core/common/save_password_progress_logger.cc:228: &log, STRING_SCHEME_MESSAGE, ...
6 years, 8 months ago (2014-04-17 21:12:04 UTC) #17
vabr (Chromium)
Thanks Ilya, For all the helpful comments. I believe it was straightforward to address your ...
6 years, 8 months ago (2014-04-19 07:39:52 UTC) #18
vabr (Chromium)
The CQ bit was checked by vabr@chromium.org
6 years, 8 months ago (2014-04-19 07:40:34 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/235623002/250001
6 years, 8 months ago (2014-04-19 07:40:42 UTC) #20
Ilya Sherman
Thanks! :) (Still) LGTM, with a final couple of nits: https://codereview.chromium.org/235623002/diff/250001/components/autofill/core/common/save_password_progress_logger.cc File components/autofill/core/common/save_password_progress_logger.cc (right): https://codereview.chromium.org/235623002/diff/250001/components/autofill/core/common/save_password_progress_logger.cc#newcode11 ...
6 years, 8 months ago (2014-04-19 07:51:22 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-19 08:29:04 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-19 08:29:05 UTC) #23
vabr (Chromium)
The CQ bit was checked by vabr@chromium.org
6 years, 8 months ago (2014-04-19 08:59:20 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/235623002/250001
6 years, 8 months ago (2014-04-19 08:59:32 UTC) #25
vabr (Chromium)
The CQ bit was unchecked by vabr@chromium.org
6 years, 8 months ago (2014-04-19 19:24:58 UTC) #26
vabr (Chromium)
Thanks Ilya, Your most recent comments are now addressed. Sorry for ignoring them earlier, that ...
6 years, 8 months ago (2014-04-19 19:35:01 UTC) #27
vabr (Chromium)
The CQ bit was checked by vabr@chromium.org
6 years, 8 months ago (2014-04-19 19:35:32 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/235623002/270001
6 years, 8 months ago (2014-04-19 19:35:43 UTC) #29
commit-bot: I haz the power
Change committed as 264949
6 years, 8 months ago (2014-04-20 22:11:54 UTC) #30
js33
On 2014/04/12 09:11:37, vabr (OOO until late Feb) wrote: > Thanks Tom and Ilya, for ...
3 years, 10 months ago (2017-02-14 04:34:24 UTC) #31
js33
On 2014/04/12 09:11:37, vabr (OOO until late Feb) wrote: > Thanks Tom and Ilya, for ...
3 years, 10 months ago (2017-02-14 04:34:26 UTC) #32
js33
I am the only owner and user Jennifer Skyles 407 2721040 you have been helping ...
3 years, 10 months ago (2017-02-14 05:34:44 UTC) #33
js33
Jennifer is the only owner 407 272 1040 you have Brent helping my hacker On ...
3 years, 10 months ago (2017-02-14 05:39:04 UTC) #34
js33
On 2017/02/14 05:39:04, js33 wrote: > Jennifer is the only owner 407 272 1040 you ...
3 years, 10 months ago (2017-02-14 05:47:28 UTC) #35
js33
3 years, 10 months ago (2017-02-17 04:35:11 UTC) #36
Message was sent while issue was closed.
do what ever you gotta do i think vabr+owner is my hacker if so can we
track him the FBI is already involved with all the documentation i found

On Mon, Feb 13, 2017 at 11:34 PM, <jjr62299@gmail.com> wrote:

> On 2014/04/12 09:11:37, vabr (OOO until late Feb) wrote:
> > Thanks Tom and Ilya, for your comments.
> >
> > I have yet to answer a couple of Ilya's comments, but we need to reach an
> > understanding first on what should be sent over the IPC.
> >
> > Tom, it would be great if you could chime in to the discussion about the
> format
> > of the IPC message below, as any changes to that would need a re-review
> by you
> > anyway.
> >
> > Thanks,
> > Vaclav
> >
> >
> https://codereview.chromium.org/235623002/diff/60001/
> chrome/browser/password_manager/chrome_password_manager_client.h
> > File chrome/browser/password_manager/chrome_password_manager_client.h
> (right):
> >
> >
> https://codereview.chromium.org/235623002/diff/60001/
> chrome/browser/password_manager/chrome_password_manager_client.h#newcode57
> > chrome/browser/password_manager/chrome_password_manager_client.h:57:
> > autofill::SavePasswordProgressLogger::StructuredLog>& logs) OVERRIDE;
> > On 2014/04/12 00:00:51, Ilya Sherman wrote:
> > > Wow, is this really how clang-format formats this line? That's not
> great :/
> >
> > I can confirm this was clang-formated.
> > Have you suggestions for a better split? I actually don't see any, the
> type
> name
> > got monstrously long.
> >
> >
> https://codereview.chromium.org/235623002/diff/60001/
> components/autofill/core/common/save_password_progress_logger.h
> > File components/autofill/core/common/save_password_progress_logger.h
> (right):
> >
> >
> https://codereview.chromium.org/235623002/diff/60001/
> components/autofill/core/common/save_password_progress_logger.h#newcode120
> > components/autofill/core/common/save_password_progress_logger.h:120: };
> > On 2014/04/12 00:00:51, Ilya Sherman wrote:
> > > I'm not convinced that passing a struct rather than a string across the
> > process
> > > boundary improves security in any way. I think it's sufficient to just
> > replace
> > > the string "label" parameters with StringIDs instead.
> > >
> > > If either of you disagree, could you please convey what security or
> privacy
> > > threat the StructuredLog class prevents, over and above the guarantees
> made
> by
> > > the LogFoo() methods below?
> >
> > My understanding is that LogFoo don't actually present any guarantees,
> as long
> > as they can be called from the (untrusted) renderer.
> >
> > If I understand you correctly, you suggest passing a StringID for a
> label and
> a
> > string for the data through the IPC?
> > If so, then it will be hardly possible to make sure on the browser side,
> that,
> > e.g., a password or a sensitive URL is not included in the string.
>
> my whole chrome book crashed says no system i need a USB to fix the hacker
> wiped
> out my computers so I having a hard time. this problems are also in our
> phones
> and tablets I don know what to do . please someone help!!!!
>
> https://codereview.chromium.org/235623002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698