Re: [Python-Dev] PEP 476: Enabling certificate validation by default!

2014年8月31日 23:46:21 -0700

On 1 September 2014 16:07, Paul Moore <[email protected]> wrote:
> On 31 August 2014 23:10, Nick Coghlan <[email protected]> wrote:
>> Assuming sslcustomize was in site-packages rather than the standard library
>> directories, you would also be able to use virtual environments with an
>> appropriate sslcustomize module to disable cert checking even if the
>> application you were running didn't support direct configuration.
>
> Would this mean that a malicious package could install a custom
> sslcustomize.py and so add unwanted certs to the system? I guess we
> have to assume that installed packages are trusted, but I just wanted
> to be explicit.
Yes, it would have exactly the same security failure modes as
sitecustomize, except it would only fire if the application imported
the ssl module.
The "-S" and "-I" switches would need to disable the implied
"sslcustomize", just as they disable "import site".
Cheers,
Nick.
-- 
Nick Coghlan | [email protected] | Brisbane, Australia
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to