This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients Arfrever, christian.heimes, loewis, pitrou
Date 2013-08-12.12:47:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Ryan Sleevi of the Google Chrome Security Team has informed us about another issue that is caused by our failure to implement RFC 6125 wildcard matching rules. RFC 6125 allows only one wildcard in the left-most fragment of a hostname. For security reasons matching rules like *.*.com should be not supported.

For wildcards in internationalized domain names I have followed  	the piece of advice "In the face of ambiguity, refuse the temptation to guess.". A substring wildcard does no longer match an IDN A-label fragment. '*' still matches a full punycode fragment but 'x*' no longer matches 'xn--foo'. I copied the idea from Chrome's matching code:

        // * must not match a substring of an IDN A label; just a whole fragment.
        if (reference_host.starts_with("xn--") &&
        !(pattern_begin.empty() && pattern_end.empty()))

The relevant RFC section for the patch are
Date User Action Args
2013-08-12 12:47:57christian.heimessetrecipients: + christian.heimes, loewis, pitrou, Arfrever
2013-08-12 12:47:57christian.heimessetmessageid: <>
2013-08-12 12:47:57christian.heimeslinkissue17997 messages
2013-08-12 12:47:56christian.heimescreate