upgrade-insecure-requests doesn't seem to be obeyed for redirections
Reported by
fel...@gmail.com,
Feb 27 2018
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36 Steps to reproduce the problem: 1. Go to https://everlong.org/mozilla/testcase-csp.html with the network monitor open. 2. Look at the requests list. 3. Press play. 4. Look at the requests list again. The HTML page is as simple as: ``` <!doctype html> <html> <head> <meta charset='utf-8'> <meta name='viewport' content='initial-scale=1'> <meta http-equiv='Content-Security-Policy' content='upgrade-insecure-requests'> </head> <body> <audio src='http://rf.proxycast.org/1406104647436869632/15275-27.02.2018-ITEMA_21601361-3.mp3' controls></audio> </body> </html> ``` I used a URL that I know exhibits a behavior that makes Chromium behaves wrongly. But in case it changes eventually, I describe below with great details what happens with this URL. What is the expected behavior? * We should see only requests with https. But only the last one is actually requested with https (NOTE: in dev edition that last one isn't present). * This shouldn't play because the first host doesn't work on https. It doesn't play in Firefox for this reason. What went wrong? The requested URL is http://rf.proxycast.org/1406104647436869632/15275-27.02.2018-ITEMA_21601361-3.mp3 Chromium properly requests the https version of it. But then that URL redirects to http://podcast-redirect.radiofrance.fr/podcast09/15275-27.02.2018-ITEMA_21601361-3.mp3. Chromium doesn't automatically upgrade this redirection to https. If Chromium did it, it wouldn't work because that website doesn't listen to https. This HTTP URL redirects itself to http://media.radiofrance-podcast.net/podcast09/15275-27.02.2018-ITEMA_21601361-3.mp3. Again Chromium doesn't upgrade this insecure request to https. But it does it when pressing play. Here is the list of requested URLs: * https://everlong.org/mozilla/testcase-csp.html * https://rf.proxycast.org/1406104647436869632/15275-27.02.2018-ITEMA_21601361-3.mp3 * http://podcast-redirect.radiofrance.fr/podcast09/15275-27.02.2018-ITEMA_21601361-3.mp3 * http://media.radiofrance-podcast.net/podcast09/15275-27.02.2018-ITEMA_21601361-3.mp3 * https://media.radiofrance-podcast.net/podcast09/15275-27.02.2018-ITEMA_21601361-3.mp3 (after pressing play) NOTE: this last URL isn't present in v66 (dev edition). Did this work before? N/A Does this work in other browsers? Yes Chrome version: 64.0.3282.119 Channel: n/a OS Version: Debian Stable Flash Version:
,
Feb 27 2018
,
Feb 28 2018
,
Mar 1 2018
,
Apr 17 2018
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by fel...@gmail.com
, Feb 27 2018