urllib.request (stdlib) is the lowest-level HTTP client in Python. urlopen() accepts both a URL string and a Request object — SSRF sink when the URL is user-controlled. Unlike requests, urlopen defaults to no TLS verification on some platforms.
.urlopen().Request().urlopen()Sinkurllib.request.urlopen(url, data=None, timeout=None, ...) -> HTTPResponse
Opens an HTTP(S) URL. SSRF sink when url is user-controlled.
0.Request()Sinkurllib.request.Request(url: str, data=None, headers={}, ...) -> RequestBuilds an HTTP request object. SSRF sink when url is user-controlled (passed later to urlopen).
0| FQN | Field | |
|---|---|---|
| urllib.request | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
from codepathfinder.go_rule import PyUrllib