Issue metadata
Sign in to add a comment
|
openWindow in Payment Handler API can open cross-origin url
Reported by
s.h.h.n....@gmail.com,
Jun 20 2018
|
||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36 Steps to reproduce the problem: 1. Go to https://shhnjk.azurewebsites.net/SameSite.php 2. Now go to https://test.shhnjk.com/pay/getsw.html 3. Reload the page (just in case SW isn't ready) 3. Hold Enter key for 3 to 4 seconds What is the expected behavior? Error due to redirect to cross-origin url. What went wrong? openWindow shouldn't popup new window, and it shouldn't be able to open cross-origin url (redirect normally fails). But when Enter key is hold for some time, openWindow triggers multiple times, resulting to popping up new window with arbitrary cross-origin url. This also bypasses SameSite cookie as demoed in Repro. Did this work before? N/A Chrome version: 69 Channel: canary OS Version: OS X 10.13.5 Flash Version: https://chromium.googlesource.com/chromium/src.git/+/fd7675d7086994ff432cee98272c5903a8c1b68a Seems to be disabled JIT payment app. But this bug doesn't require JIT payment app (only uses Payment Handler API).
,
Jun 20 2018
Sorry for the spam. Repro step3 seems unnecessary and rather makes it no-repro. So please skip Repro step3.
,
Jun 20 2018
mathp, could you please take a look, or help get this assigned to the right person?
,
Jun 20 2018
,
Jun 20 2018
,
Jun 20 2018
This is a serious security regression. If you are not able to fix this quickly, please revert the change that introduced it. If this doesn't affect a release branch, or has not been properly classified for severity, please update the Security_Impact or Security_Severity labels, and remove the ReleaseBlock label. To disable this altogether, apply ReleaseBlock-NA. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jun 20 2018
,
Jun 20 2018
Redirection is allowed intentionally in the opened window, if the page is redirected out of the scope of the payment handler (service worker), then the service worker loses control of that window. Reply comment #1: From what I test, openWindow (window_client) do resolves to null according to the reproducing steps.
,
Jun 20 2018
,
Jun 20 2018
If this is intentional, then this might be just a SameSite cookie bug.
,
Jun 20 2018
Thanks for reporting, could you help create new bug about the SameSite cookie bug to keep this one separate? Closing this bug as 'WontFix'.
,
Jun 20 2018
gogerald@, do you think this is a different bug than issue 830808 (because it has different logic)?
,
Jun 20 2018
I can not find the bug: crbug.com/830808. Could you cc me on that bug?
,
Jun 20 2018
Oh, okay. I don't have permission to CC :D Leave it, I will just add this bug to that bug.
,
Sep 27
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 s.h.h.n....@gmail.com
, Jun 20 2018