| Gói / sản phẩm | Phiên bản bị ảnh hưởng | Phiên bản đã vá |
|---|---|---|
| oauthlib | ≥ 3.1.1, < 3.2.1≥ 3.1.1, < 3.2.2 | 3.2.13.2.2 |
| oauthlib | ≥ 3.1.1, < 3.2.1 | 3.2.1 |
uri_validate functions depending where it is used.What kind of vulnerability is it? Who is impacted?
Oauthlib applications using OAuth2.0 provider support or use directly uri_validate function.
Has the problem been patched? What versions should users upgrade to?
Issue fixed in 3.2.2 release.
Is there a way for users to fix or remediate the vulnerability without upgrading?
The redirect_uri can be verified in web toolkit (i.e bottle-oauthlib, django-oauth-toolkit, ...) before oauthlib is called. A sample check if : is present to reject the request can prevent the DoS, assuming no port or IPv6 is fundamentally required.
Attack Vector:
uri_validate functions:
https://github.com/oauthlib/oauthlib/blob/2b8a44855a51ad5a5b0c348a08c2564a2e197ea2/oauthlib/uri_validate.pyis_absolute_uri("http://[:::::::::::::::::::::::::::::::::::::::]/path")
Special thanks to Sebastian Chnelik - PyUp.io
Bạn đang dùng một trong các sản phẩm này? Quét site để biết có đang lộ phiên bản có lỗ hổng không.
Quét site miễn phí