##// END OF EJS Templates
Fix XSS reported on Security list...
Fix XSS reported on Security list No CVE-ID yet August 18, 2015 ----- Reported to Quantopian by Juan Broullón <thebrowfc@gmail.com>... If you create a new folder in the iPython file browser and set Javascript code as its name the code injected will be executed. So, if I create a folder called "><img src=x onerror=alert(document.cookie)> and then I access to it, the cookies will be prompted. The XSS code is also executed if you access a link pointing directly at the folder. jik ------

File last commit:

r16113:87737521
r21633:3ab41641
Show More
embed_function.py
16 lines | 258 B | text/x-python | PythonLexer
"""Embed IPython using the simple embed function rather than the class API."""
from IPython import embed
a = 10
b = 20
embed(header='First time', banner1='')
c = 30
d = 40
try:
raise Exception('adsfasdf')
except:
embed(header='The second time')