Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcard matching on punycode domain is broken #419

Closed
lziest opened this issue Oct 1, 2015 · 5 comments
Closed

Wildcard matching on punycode domain is broken #419

lziest opened this issue Oct 1, 2015 · 5 comments

Comments

@lziest
Copy link
Contributor

lziest commented Oct 1, 2015

Trying to match www.xn--foobar.com with a certificate using SAN "*.xn--foobar.com" will result false.
https://github.com/openssl/openssl/blob/master/crypto/x509v3/v3_utl.c#L839
This line basically denies double hypen '--' from appearing in the wildcard domain name.
And https://github.com/openssl/openssl/blob/master/crypto/x509v3/v3_utl.c#L831
this line basically sets a state LABEL_IDNA but the state never gets checked.

Further references:
https://github.com/briansmith/mozillapkix/blob/687015fa069d692afaf1868abdcc756b057e748d/test/gtest/pkixnames_tests.cpp#L259
https://tools.ietf.org/html/rfc6125 section 7.2

@lziest
Copy link
Contributor Author

lziest commented Oct 1, 2015

I create a patch in #420

@richsalz
Copy link
Contributor

richsalz commented Oct 1, 2015

Please see #420, this isn't a pull request; closing.

@richsalz richsalz closed this as completed Oct 1, 2015
@lziest
Copy link
Contributor Author

lziest commented Oct 6, 2015

I think this is an real issue with OpenSSL library. I just pointed it out in more details in the code. Is it being planed to address it? It seems a little premature to just close it.

@ghedo
Copy link
Contributor

ghedo commented Oct 6, 2015

I think the idea is to just use #420 to track this issue, so there's no need to have two reports open.

@lziest
Copy link
Contributor Author

lziest commented Oct 6, 2015

👍 Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants