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
The use of urlopen() can pose security threats and should be replaced with a safer alternative.
Motivation
The codebase should more strictly follow Python convention to hopefully improve maintainability.
Details
I feel this is something we can leave alone in the code. The user cannot define custom URLs. The security vulnerability comes when the user can define the use of file:// however, we only let the user have access to the http:// and https:// protocols.
@Pascal-0x90@DoctorEww While it might not be exploitable, I had always understood that urllib (not urrllib3 pip module) is not thread safe. Does that pose any issues here with use in the threadpool?
Proposal
The use of
urlopen()
can pose security threats and should be replaced with a safer alternative.Motivation
The codebase should more strictly follow Python convention to hopefully improve maintainability.
Details
I feel this is something we can leave alone in the code. The user cannot define custom URLs. The security vulnerability comes when the user can define the use of
file://
however, we only let the user have access to thehttp://
andhttps://
protocols.findcdn/src/findcdn/cdnEngine/detectCDN/cdn_check.py
Line 131 in 25eb36e
The text was updated successfully, but these errors were encountered: