Bug 228826 - Reject non-IPv4 hostnames that end in numbers
Summary: Reject non-IPv4 hostnames that end in numbers
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alex Christensen
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-08-05 07:30 PDT by Anne van Kesteren
Modified: 2021-09-02 16:10 PDT (History)
9 users (show)

See Also:


Attachments
Patch (60.28 KB, patch)
2021-08-06 17:42 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff
Patch (61.84 KB, patch)
2021-08-09 09:54 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff
Patch (65.45 KB, patch)
2021-08-09 10:10 PDT, Alex Christensen
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (65.57 KB, patch)
2021-08-09 11:41 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff
Patch (68.28 KB, patch)
2021-08-09 12:46 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff
Patch (70.06 KB, patch)
2021-08-31 15:51 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Alexey Proskuryakov 2021-08-06 10:47:19 PDT
So it I have a website at http://site0.webkit.org, and configured a DNS search domain webkit.org on my machine, the browser should prevent loading site0?..
Comment 2 Alex Christensen 2021-08-06 12:13:38 PDT
No, I believe this only prevents URLs like http://webkit.org.001/ from parsing, with only digits or hex numbers after the last dot.
Comment 3 Alex Christensen 2021-08-06 17:42:18 PDT
Created attachment 435104 [details]
Patch
Comment 4 EWS Watchlist 2021-08-06 17:43:23 PDT
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Comment 5 Alex Christensen 2021-08-06 17:52:40 PDT
I added some tests to WPT here: https://github.com/web-platform-tests/wpt/pull/29936
Comment 6 Alex Christensen 2021-08-06 17:53:42 PDT
Adding (later) to title to remind myself to revisit this after our next branch.
Comment 8 Alex Christensen 2021-08-09 09:54:53 PDT
Created attachment 435187 [details]
Patch
Comment 9 Alex Christensen 2021-08-09 10:10:23 PDT
Created attachment 435191 [details]
Patch
Comment 10 Alex Christensen 2021-08-09 11:41:19 PDT
Created attachment 435196 [details]
Patch
Comment 11 Alex Christensen 2021-08-09 12:46:09 PDT
Created attachment 435199 [details]
Patch
Comment 12 Radar WebKit Bug Importer 2021-08-31 15:00:47 PDT
<rdar://problem/82598251>
Comment 13 Alex Christensen 2021-08-31 15:51:46 PDT
Created attachment 436956 [details]
Patch
Comment 14 EWS 2021-09-02 16:10:19 PDT
Committed r281963 (241270@main): <https://commits.webkit.org/241270@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 436956 [details].