New issue
Advanced search Search tips

Issue 816730 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 825258
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , iOS , Chrome , Mac , Fuchsia
Pri: 2
Type: Bug



Sign in to add a comment

CSP sandbox header prevents site from saving credentials

Reported by anto...@gmail.com, Feb 27 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0

Steps to reproduce the problem:
1. open a site with CSP 'sandbox'
2. submit the login form
3. it should prompt to save the password

What is the expected behavior?
I would expect it to ask to save the username and password.

What went wrong?
It doesn't ask to save the login. It doesn't put the key icon in the address bar. 

Did this work before? N/A 

Chrome version: Version 64.0.3282.186 (Official Build) (64-bit)  Channel: stable
OS Version: 10.0
Flash Version: 

Simple POC is achieveable with a vanilla plain HTML form, served with Content-Security-Policy: default-src 'self'; img-src 'self' data:; sandbox allow-scripts allow-forms;

Removing the sandbox allows it to work. This works on Firefox 57.
 
Components: Blink>SecurityFeature>IFrameSandbox UI>Browser>Passwords
Labels: -Type-Bug-Security -Restrict-View-SecurityTeam Type-Bug
Labels: Needs-Triage-M64

Comment 3 by jochen@chromium.org, Feb 27 2018

Labels: OS-Android OS-Chrome OS-Fuchsia OS-Linux OS-Mac
Owner: vasi...@chromium.org
Status: Assigned (was: Unconfirmed)
a sandbox header (similar to <iframe sandbox>) will make the origin "unique" (similar to an about:blank iframe). For the purpose of e.g. cookies, we'll still use the original origin. I think the password manager should do the same.

Not sure whether there's an existing pw mgr issue about handling unique origins, so asinging to the current pw mgr triage rotation contact.
Issue 821636 has been merged into this issue.
Labels: OS-iOS

Comment 6 Deleted

Jochen, I tried CSP 'sandbox' and I can't read cookies because 'allow-same-origin' is missed. Does it mean that it works as intended?
Mergedinto: 825258
Status: Duplicate (was: Assigned)

Sign in to add a comment