QuackatronHQ / Gigarepo

Audit required: Server certificate may not be verified PTC-W6001
Security
Minor
a month ago2 years old
Unverified server certificate. Set verify=True to validate the certificate.
33
34def fetch_version(request):
35    """Fetch verison of bgmi."""
36    version = requests.get(37        "https://pypi.python.org/pypi/bgmi/json", verify=False
38    ).json()["info"]["version"]
39    return version
Unverified server certificate. Consider using ssl._create_default_https_context, which has certificate validation enabled by default
105
106
107def tar_something():
108    context = ssl._create_stdlib_context()109    os.tempnam("dir1")
110    subprocess.Popen("/bin/chown *", shell=True)
111    o.system("/bin/tar xvzf *")