STINNER Victor <[email protected]> added the comment: -def getstatusoutput(cmd): +def getstatusoutput(cmd, shell=True):
shell=True is dangerous, it can lead to shell command injection. I would prefer to set its default value to False. The function already exists in Python 3.1, but it is not used in Python source code. Is it too late to fix its API to avoid security vulnerabilities? ---------- nosy: +haypo _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue10197> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
