DescriptionValidate the Origin HTTP header in the browser process.
Web renderer processes should not be able to set the Origin header
to WebUI, Chrome App, or invalid origins. (Note that Chrome App
origins may be allowed in some cases if they have guest processes
with accessible_resources.)
Most of these checks can be enforced by ChildProcessSecurityPolicy,
but we call out to ContentBrowserClient for the extension/app checks.
BUG=513502
TEST=Should only affect compromised renderer processes.
Committed: https://crrev.com/3710b238717b14967922263070cac76257a55ac5
Cr-Commit-Position: refs/heads/master@{#343778}
Patch Set 1 #Patch Set 2 : Invalid schemes, null origin #Patch Set 3 : Fix CanRequest, update enum #Patch Set 4 : Validate Chrome Apps as well #Patch Set 5 : Clean up and add more tests #Patch Set 6 : Add unit tests, fix bugs #Patch Set 7 : Allow guests in Chrome Apps #Patch Set 8 : Rebase #
Total comments: 24
Patch Set 9 : Fix review comments #Patch Set 10 : Update comment #
Total comments: 12
Messages
Total messages: 23 (6 generated)
|