First published: Wed Nov 30 2011(Updated: )
It was reported [1] that distutils would create ~/.pypirc insecurely. There is a race from the time the user's username and password is written to the file to when it is chmod'd with appropriate permissions. Typically, a user's home directory will be created with default 0700 permissions which would not allow for a local attacker to obtain access to this file during the race window, however if a user were to make their home directory 0755 they could be susceptible to this race. One solution would be to use tempfile.mkstemp() to create the file and then move it in place. [1] <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=650555">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=650555</a>
Credit: secalert@redhat.com secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
Python Python | =3.1 | |
Python Python | =3.1.1 | |
Python Python | =3.0 | |
Python Python | =2.6.6 | |
Python Python | =3.0.1 | |
Python Python | =2.7.1150 | |
Python Python | =2.6.1 | |
Python Python | =3.1.5 | |
Python Python | =2.6.3 | |
Python Python | =2.6.2150 | |
Python Python | =2.7.1 | |
Python Python | =3.1.2150 | |
Python Python | =3.1.2 | |
Python Python | =2.7.1150 | |
Python Python | =2.6.8 | |
Python Python | =2.6.7 | |
Python Python | =2.7.3 | |
Python Python | =2.7.1-rc1 | |
Python Python | =2.6.4 | |
Python Python | =2.7.2-rc1 | |
Python Python | =2.6.6150 | |
Python Python | =3.2 | |
Python Python | =2.6.2 | |
Python Python | =2.7.2150 | |
Python Python | =3.2-alpha | |
Python Python | =2.6.5 | |
Python Python | =3.1.3 | |
Python Python | =3.1.4 | |
debian/python2.7 | 2.7.18-8+deb11u1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.