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

Issue 2893633002: [Password Manager] Make filling robust against changing url by JavaScript (Closed)

Created:
3 years, 7 months ago by dvadym
Modified:
3 years, 7 months ago
Reviewers:
kolos1
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, vabr+watchlistpasswordmanager_chromium.org, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, mathp+autofillwatch_chromium.org, darin-cc_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Password Manager] Make filling robust against changing url by JavaScript. When PasswordAutofillAgent receives filling data from the browser, it checks that origin of this data is the same of the current frame origin. If JavaScript changes origin between PasswordAutofillAgent discovers a password form and when it receives filling, filling fails. This CL replaces checking by origin to by checking by signon_realm (signon_realm=scheme:origin:port), which is a primary key for retrieving credentials from the store, so it doesn't change any security guarantees. BUG=723679 Review-Url: https://codereview.chromium.org/2893633002 Cr-Commit-Position: refs/heads/master@{#472839} Committed: https://chromium.googlesource.com/chromium/src/+/0273d9bd3e2d25f1485ab7a9469318c74ab7cb17

Patch Set 1 #

Patch Set 2 : Test added #

Total comments: 11

Patch Set 3 : comment fixed #

Patch Set 4 : rebase #

Patch Set 5 : fix merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -8 lines) Patch
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_form_conversion_utils.cc View 2 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 36 (23 generated)
dvadym
Hi Maxim, could you please review this CL? Regards, Vadym
3 years, 7 months ago (2017-05-17 17:19:36 UTC) #4
kolos1
On 2017/05/17 17:19:36, dvadym wrote: > Hi Maxim, > > could you please review this ...
3 years, 7 months ago (2017-05-18 09:52:40 UTC) #5
kolos1
https://codereview.chromium.org/2893633002/diff/20001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/2893633002/diff/20001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode2899 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:2899: // when JavaScript changes url. Didn't understand the comment. ...
3 years, 7 months ago (2017-05-18 09:52:53 UTC) #6
dvadym
Thanks for review! https://codereview.chromium.org/2893633002/diff/20001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/2893633002/diff/20001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode2899 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:2899: // when JavaScript changes url. On ...
3 years, 7 months ago (2017-05-18 11:08:52 UTC) #9
kolos1
See the answers. Still LGTM https://codereview.chromium.org/2893633002/diff/20001/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): https://codereview.chromium.org/2893633002/diff/20001/components/autofill/content/renderer/password_autofill_agent.cc#newcode281 components/autofill/content/renderer/password_autofill_agent.cc:281: if (data.action != data.origin) ...
3 years, 7 months ago (2017-05-18 11:11:50 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2893633002/40001
3 years, 7 months ago (2017-05-18 11:29:44 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/458783)
3 years, 7 months ago (2017-05-18 11:58:17 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2893633002/40001
3 years, 7 months ago (2017-05-18 12:00:19 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/440991) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 7 months ago (2017-05-18 12:09:45 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2893633002/80001
3 years, 7 months ago (2017-05-18 13:00:16 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/430509)
3 years, 7 months ago (2017-05-18 15:37:49 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2893633002/80001
3 years, 7 months ago (2017-05-18 15:47:19 UTC) #33
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 16:34:44 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/0273d9bd3e2d25f1485ab7a94693...

Powered by Google App Engine
This is Rietveld 408576698