Python 2.6 through 3.2 creates ~/.pypirc with world-readable permissions before changing them after data has been written, which introduces a race condition that allows local users to obtain a username and password by reading this file.
https://bugzilla.redhat.com/show_bug.cgi?id=758905
http://www.ubuntu.com/usn/USN-1616-1
http://www.ubuntu.com/usn/USN-1615-1
http://www.ubuntu.com/usn/USN-1613-2
http://www.ubuntu.com/usn/USN-1613-1
http://www.ubuntu.com/usn/USN-1596-1
http://www.ubuntu.com/usn/USN-1592-1
http://www.openwall.com/lists/oss-security/2012/03/27/5
http://www.openwall.com/lists/oss-security/2012/03/27/2
http://www.openwall.com/lists/oss-security/2012/03/27/10
http://secunia.com/advisories/51089
http://secunia.com/advisories/51087
http://secunia.com/advisories/51040
http://secunia.com/advisories/51024
http://secunia.com/advisories/50858
http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
http://lists.apple.com/archives/security-announce/2013/Oct/msg00004.html
http://bugs.python.org/issue13512