Issue metadata
Sign in to add a comment
|
<a ping="..."> should be covered by connect-src CSP directive |
||||||||||||||||||||||
Issue description
REPRO (layout test):
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="connect-src http://127.0.0.1:8000">
<script>
if (window.testRunner) {
testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1);
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function onload() {
if (window.testRunner) {
anchor = document.getElementById('anchor');
anchor.click();
}
}
</script>
</head>
<body onload="onload();">
<p>
Tests whether "ping" attribute of an <at> / "anchor" tag is subject
to CSP enforcement (via 'connect-src').
</p>
<p>
<a href="/resources/notify-done.html"
ping="https://localhost:8443/resources/dummy.txt"
id="anchor"
>Link</a>
</p>
</body>
</html>
EXPECTED BEHAVIOR: ping is blocked by connect-src
ACTUAL BEHAVIOR: ping is not blocked
,
Nov 7 2016
,
Nov 8 2016
,
Nov 8 2016
,
Nov 8 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/3678dd47cb4ccb61fa4281dfdcc5b92adc6c21de commit 3678dd47cb4ccb61fa4281dfdcc5b92adc6c21de Author: lukasza <lukasza@chromium.org> Date: Tue Nov 08 16:24:06 2016 <a ping="..."> should be covered by connect-src CSP directive. BUG= 663048 Review-Url: https://codereview.chromium.org/2483903003 Cr-Commit-Position: refs/heads/master@{#430629} [add] https://crrev.com/3678dd47cb4ccb61fa4281dfdcc5b92adc6c21de/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-anchor-ping-expected.txt [add] https://crrev.com/3678dd47cb4ccb61fa4281dfdcc5b92adc6c21de/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-anchor-ping.html [modify] https://crrev.com/3678dd47cb4ccb61fa4281dfdcc5b92adc6c21de/third_party/WebKit/Source/core/loader/PingLoader.cpp
,
Nov 8 2016
I plan to request a merge after a few days of bake time on Canary. There is some risk that the new CSP blocking will start blocking something important or unintended, but that risk should be mitigated (IMO) by still having ~3 weeks of bake time on M55/Beta branch before it becomes the Stable branch.
,
Nov 9 2016
,
Nov 10 2016
The fix from #c5 was initially included in 56.0.2914.0, so we probably want a few more days on the Canary channel before requesting a merge to Beta. I think the merge to Beta should be relatively safe - blocked a.ping requests are unlikely to be end-user visible.
,
Nov 14 2016
,
Nov 14 2016
Your change meets the bar and is auto-approved for M55 (branch: 2883)
,
Nov 14 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/3609fbe23fd52b425d28c73ec678616f2cf3af39 commit 3609fbe23fd52b425d28c73ec678616f2cf3af39 Author: Lukasz Anforowicz <lukasza@chromium.org> Date: Mon Nov 14 17:59:10 2016 <a ping="..."> should be covered by connect-src CSP directive. BUG= 663048 Review-Url: https://codereview.chromium.org/2483903003 Cr-Commit-Position: refs/heads/master@{#430629} (cherry picked from commit 3678dd47cb4ccb61fa4281dfdcc5b92adc6c21de) Review URL: https://codereview.chromium.org/2500023002 . Cr-Commit-Position: refs/branch-heads/2883@{#560} Cr-Branched-From: 614d31daee2f61b0180df403a8ad43f20b9f6dd7-refs/heads/master@{#423768} [add] https://crrev.com/3609fbe23fd52b425d28c73ec678616f2cf3af39/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-anchor-ping-expected.txt [add] https://crrev.com/3609fbe23fd52b425d28c73ec678616f2cf3af39/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-anchor-ping.html [modify] https://crrev.com/3609fbe23fd52b425d28c73ec678616f2cf3af39/third_party/WebKit/Source/core/loader/PingLoader.cpp
,
Nov 21 2016
,
Nov 29 2016
,
Feb 6 2017
Adding reward-topanel since this was spun out of externally reported issue 661126
,
Feb 13 2017
,
Feb 13 2017
Thanks for the report! Our panel decided to award $500 for this report. A member of our finance team will be in touch shortly to arrange payment.
,
Feb 13 2017
,
Feb 15 2017
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 lukasza@chromium.org
, Nov 7 2016