Date: Sun, 25 Jul 2021 18:32:43 +0300 From: Georgi Guninski <gguninski@...il.com> To: oss-security@...ts.openwall.com Subject: Re: ipython3 may execute code from the current working directory On Fri, Jul 23, 2021 at 11:43 PM Mats Wichmann <mats@...hmann.us> wrote: > > there have been more than one security concern about the way this makes > it possible for untrusted modules to get loaded. > >  https://docs.python.org/3/library/sys.html#sys.path Is the interactive python shell vulnerable to the same problem: guest3@...ntu20:~/tests$ cat path.py import sys print(sys.path) guest3@...ntu20:~/tests$ python3 Python 3.8.10 (default, Jun 2 2021, 10:49:15) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import path ['', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] >>>
Powered by blists - more mailing lists
Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.