justakazh discovered and reported this Cross Site Scripting (XSS) vulnerability in WordPress Flashy Theme to Patchstack.
See tips for patching this kind of vulnerabilityAn attacker can exploit this vulnerability by inputting a malicious payload, such as <script>alert('XSS')</script>, into the search form. When the form is submitted, the input is reflected in the search results page without proper sanitization, causing the payload to be executed by the browser.
Enter the xss payload <script>alert()</script> in the search input form
or
localhost/wp/?s=<script>alert()</script>
To make the patching process easier and safer for all users, we recommend reading our memo about the most common vulnerabilities and the way these can be fixed. If you need help understanding some of the security concepts, don’t worry. That’s when we step in and help.
Please send us the patched version or code before releasing it, so we could help you avoid incomplete patches that could lead to inconveniences. Don’t delay security patch releases for other non-security updates. Ideally, security fixes would be released separately so users could update ASAP without fear of anything breaking. You can also join the free Patchstack mVDP program to have better control over the vulnerability patching and disclosure process.