-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathindex.html
47 lines (40 loc) · 1.04 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
{% autoescape true %}
<html>
<head>
<meta charset="utf-8">
<title>XSS Demo</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<!-- Header -->
<header>
<h1>XSS Demo</h1>
<p>Read, search and post comments</p>
</header>
<!-- Search form -->
<form method="GET">
<input type="text" name="q"
placeholder="Search query" autocomplete="off" />
<input type="submit" value="Filter comments" />
</form>
<!-- Comments -->
{% if not search_query %}
<h3>Showing all comments:</h3>
{% else %}
<h3>Showing comments containing "{{ search_query }}":</h3>
{% endif %}
{% for comment in comments %}
<div>
<p>{{ comment }}</p>
</div>
{% endfor %}
<!-- Write form -->
<form action="/" method="POST">
<input type="text" name="comment"
placeholder="Comment" autocomplete="off" />
<input type="submit" value="Submit new comment" />
</form>
</body>
</html>
{% endautoescape %}