-
Notifications
You must be signed in to change notification settings - Fork 1
/
jsonxss.json
88 lines (88 loc) · 2.7 KB
/
jsonxss.json
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"swagger" : "2.0",
"info" : {
"version" : "1.0.100",
"title" : "title<script language=\"javascript\">alert('1')</script>",
"description" : "description with **markdown** format <script language=\"javascript\">alert('script-in-description')</script> <img src=x onerror=alert(\"img-in-description\")>"
},
"tags" : [ {
"name" : "Admin",
"description" : "tag with **markdown**"
}, {
"name" : "Xss<script language=\"javascript\">alert('3')</script>",
"description" : "tag with **markdown**<script language=\"javascript\">alert('4')</script>"
} ],
"paths" : {
"/test" : {
"get" : {
"description" : "description with **markdown** format",
"summary" : "a summary with **markdown** format",
"responses" : {
"200" : {
"description" : "a description with **markdown** format",
"schema" : {
"$ref" : "#/definitions/User"
}
}
}
},
"put" : {
"description" : "ok",
"summary" : "ok",
"responses" : {
"200" : {
"description" : "ok",
"schema" : {
"$ref" : "#/definitions/XSSPayloadBlindScript"
}
}
}
},
"post" : {
"description" : "<script language=\"javascript\">alert('5')</script>",
"summary" : "<script language=\"javascript\">alert('6')</script>",
"consumes" : [ "<script language=\"javascript\">alert('7')</script>" ],
"produces" : [ "<script language=\"javascript\">alert('8')</script>" ],
"tags" : [ "Admin tasks<script language=\"javascript\">alert('9')</script>" ],
"parameters" : [ {
"in" : "query",
"name" : "foo",
"type" : "string"
}, {
"in" : "query",
"name" : "reg",
"type" : "string"
} ],
"responses" : {
"200" : {
"description" : "nothing<script language=\"javascript\">alert('10')</script>",
"schema" : {
"$ref" : "#/definitions/XSSPayloadScript"
}
}
}
}
}
},
"definitions" : {
"User" : {
"description" : "also with **markdown**",
"properties" : {
"name" : {
"description" : "prop with **markdown**",
"type" : "string"
},
"email" : {
"$ref" : "#/definitions/Email"
}
}
},
"Email" : {
"description" : "<script language=\"javascript\">alert('11')</script>",
"type" : "string",
"format" : "email",
"example" : "<script language=\"javascript\">alert('12')</script>",
"default" : "<script language=\"javascript\">alert('15')</script>"
}
}
}