GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — tls: reject hostnames with forbidden code points by mcollina · Pull Request #67254 · nodejs/node Conversation
Member
Reject hostnames containing a WHATWG forbidden host code point before matching.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsdomainToASCII() is implemented with the URL host parser, which stops at path, query and fragment delimiters and percent-decodes. Passing a hostname through it can therefore silently shorten the name, so checkServerIdentity() validates a certificate against a host the application never asked for: name resolution and SNI use the original string, while the certificate is matched after normalization. Reject hostnames containing a WHATWG forbidden host code point before matching. None of these code points is valid in a DNS hostname, so failing closed is safe. Signed-off-by: Matteo Collina <[email protected]>
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #67254 +/- ## ========================================== + Coverage 90.65% 90.68% +0.02% ========================================== Files 797 797 Lines 278268 279389 +1121 Branches 53517 53749 +232 ========================================== + Hits 252261 253360 +1099 + Misses 16386 16305 -81 - Partials 9621 9724 +103
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in 9aa379e |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
domainToASCII() is implemented with the URL host parser, which stops at path, query and fragment delimiters and percent-decodes. Passing a hostname through it can therefore silently shorten the name, so checkServerIdentity() validates a certificate against a host the application never asked for: name resolution and SNI use the original string, while the certificate is matched after normalization. Reject hostnames containing a WHATWG forbidden host code point before matching. None of these code points is valid in a DNS hostname, so failing closed is safe. Signed-off-by: Matteo Collina <[email protected]> PR-URL: #67254 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
domainToASCII() is implemented with the URL host parser, which stops at path, query and fragment delimiters and percent-decodes. Passing a hostname through it can therefore silently shorten the name, so checkServerIdentity() validates a certificate against a host the application never asked for: name resolution and SNI use the original string, while the certificate is matched after normalization. Reject hostnames containing a WHATWG forbidden host code point before matching. None of these code points is valid in a DNS hostname, so failing closed is safe. Signed-off-by: Matteo Collina <[email protected]> PR-URL: #67254 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
domainToASCII() is implemented with the URL host parser, which stops at path, query and fragment delimiters and percent-decodes. Passing a hostname through it can therefore silently shorten the name, so checkServerIdentity() validates a certificate against a host the application never asked for: name resolution and SNI use the original string, while the certificate is matched after normalization. Reject hostnames containing a WHATWG forbidden host code point before matching. None of these code points is valid in a DNS hostname, so failing closed is safe. Signed-off-by: Matteo Collina <[email protected]> PR-URL: #67254 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
domainToASCII() is implemented with the URL host parser, which stops at path, query and fragment delimiters and percent-decodes. Passing a hostname through it can therefore silently shorten the name, so checkServerIdentity() validates a certificate against a host the application never asked for: name resolution and SNI use the original string, while the certificate is matched after normalization. Reject hostnames containing a WHATWG forbidden host code point before matching. None of these code points is valid in a DNS hostname, so failing closed is safe. Signed-off-by: Matteo Collina <[email protected]> PR-URL: #67254 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
domainToASCII() is implemented with the URL host parser, which stops at path, query and fragment delimiters and percent-decodes. Passing a hostname through it can therefore silently shorten the name, so checkServerIdentity() validates a certificate against a host the application never asked for: name resolution and SNI use the original string, while the certificate is matched after normalization. Reject hostnames containing a WHATWG forbidden host code point before matching. None of these code points is valid in a DNS hostname, so failing closed is safe. Signed-off-by: Matteo Collina <[email protected]> PR-URL: nodejs#67254 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Filip Skokan <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.