Question on os.tempnam() vulnerability

cameronwong88 at gmail.com cameronwong88 at gmail.com
Fri Jan 4 14:56:11 EST 2008


Hello,

Does any one know what kind of security risk these message are
suggesting?

>>> f = os.tempnam()
__main__:1: RuntimeWarning: tempnam is a potential security risk to
your program
>>> f
'/tmp/filed4cJNX'

>>> g = os.tmpnam()
__main__:1: RuntimeWarning: tmpnam is a potential security risk to
your program
>>> g
'/tmp/fileENAuNw'

Thanks,
~cw



More information about the Python-list mailing list