| Summary: | Reject non-IPv4 hostnames that end in numbers | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Anne van Kesteren <annevk> | ||||||||||||||
| Component: | DOM | Assignee: | Alex Christensen <achristensen> | ||||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||||
| Severity: | Normal | CC: | achristensen, benjamin, cdumez, clopez, cmarcelo, ews-watchlist, thorton, webkit-bug-importer, youennf | ||||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||||
| Hardware: | Unspecified | ||||||||||||||||
| OS: | Unspecified | ||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Anne van Kesteren
2021-08-05 07:30:07 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?.. No, I believe this only prevents URLs like http://webkit.org.001/ from parsing, with only digits or hex numbers after the last dot. Created attachment 435104 [details]
Patch
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 I added some tests to WPT here: https://github.com/web-platform-tests/wpt/pull/29936 Adding (later) to title to remind myself to revisit this after our next branch. Other tests should include these: https://example.037777777777/ https://example.040000000000/ https://example.0x100000000/ https://example.0xffffffff/ https://example.4294967295/ https://example.4294967296/ https://example.4x4/ Created attachment 435187 [details]
Patch
Created attachment 435191 [details]
Patch
Created attachment 435196 [details]
Patch
Created attachment 435199 [details]
Patch
Created attachment 436956 [details]
Patch
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]. |