Skip to content

Commit ca2c938

Browse files
committed
Block access to 0.0.0.0
Fixes #1117.
1 parent 4cb3cf2 commit ca2c938

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

fetch.bs

+9-2
Original file line numberDiff line numberDiff line change
@@ -2744,8 +2744,15 @@ functionality.
27442744
<!-- Should we assert the scheme here to be an HTTP(S) scheme or a WebRTC scheme? -->
27452745

27462746
<ol>
2747-
<li><p>If <var>origin</var>'s <a for=origin>host</a> is an <a for=/>IP address</a>, then return
2748-
« <var>origin</var>'s <a for=origin>host</a> ».
2747+
<li>
2748+
<p>If <var>origin</var>'s <a for=origin>host</a> is an <a for=/>IP address</a>:
2749+
2750+
<ol>
2751+
<li><p>If <var>origin</var>'s <a for=origin>host</a> is <code>0.0.0.0</code>, then return
2752+
failure.
2753+
2754+
<li><p>Return « <var>origin</var>'s <a for=origin>host</a> ».
2755+
</ol>
27492756

27502757
<li><p>If <var>origin</var>'s <a for=origin>host</a>'s <a for=host>public suffix</a> is
27512758
"<code>localhost</code>" or "<code>localhost.</code>", then return « <code>::1</code>,

0 commit comments

Comments
 (0)