You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Exponential IDNA codec decoding potential denial of service #99083
-- As reported by @guidovranken via our Python security response team mailing list on 2022-09-09.
I can reproduce the issue. This should be an easy fix. According to spec https://unicode.org/reports/tr46/ an IDNA label must not be longer than 63 characters. Python's idna module enforces the restriction, but too late.
-- @tiran
It doesn't currently feel urgent enough to treat specially. If filing a public issue about this attracts other attention to identify specific reasons why this is a security DoS issue and should be more of a priority, expect more people to become interested in actually working on a proper fix.
It might be interesting to add the idna codec to oss-fuzz tests in Modules/_xxtestfuzz?
Activity
pochmann commentedon Nov 4, 2022
That doesn't look exponential. Only quadratic.
And it's the same as #98433 (comment), no?
gpshead commentedon Nov 4, 2022
oh, it had been filed. yay, i missed that. closing as a duplicate of #98433