##// END OF EJS Templates
Fix CVE-2023-24816 by removing legacy code....
Fix CVE-2023-24816 by removing legacy code. Remove legacy code that might trigger a CVE. Currently set_term_title is only called with (semi-)trusted input that contain the current working directory of the current IPython session. If an attacker can control directory names, and manage to get a user cd into this directory the attacker can execute arbitrary commands contained in the folder names. Example: - On a windows machine where python is built without _ctypes, create a folder called && echo "pwn" > pwn.txt. This can be done by for example cloning a git repository. - call toggled_set_term_title(True), (or have the preference to true) - Open IPython and cd into this directory. - the folder now contain a pwn.txt, with pwn as content, despite the user not asking for any code execution. Workaround: Set the configuration option c.TerminalInteractiveShell.term_title_format='IPython' (or to any other fixed, safe string).
Konstantin Weddige -
r28089:991849c2
Show More
Name Size Modified Last Commit Author
/ IPython / utils
tests
PyColorize.py Loading ...
__init__.py Loading ...
_process_cli.py Loading ...
_process_common.py Loading ...
_process_posix.py Loading ...
_process_win32.py Loading ...
_process_win32_controller.py Loading ...
_sysinfo.py Loading ...
capture.py Loading ...
colorable.py Loading ...
coloransi.py Loading ...
contexts.py Loading ...
daemonize.py Loading ...
data.py Loading ...
decorators.py Loading ...
dir2.py Loading ...
docs.py Loading ...
encoding.py Loading ...
eventful.py Loading ...
frame.py Loading ...
generics.py Loading ...
importstring.py Loading ...
io.py Loading ...
ipstruct.py Loading ...
jsonutil.py Loading ...
localinterfaces.py Loading ...
log.py Loading ...
module_paths.py Loading ...
openpy.py Loading ...
path.py Loading ...
process.py Loading ...
py3compat.py Loading ...
sentinel.py Loading ...
shimmodule.py Loading ...
signatures.py Loading ...
strdispatch.py Loading ...
sysinfo.py Loading ...
syspathcontext.py Loading ...
tempdir.py Loading ...
terminal.py Loading ...
text.py Loading ...
timing.py Loading ...
tokenutil.py Loading ...
traitlets.py Loading ...
tz.py Loading ...
ulinecache.py Loading ...
version.py Loading ...
wildcard.py Loading ...