Exploits / Vulnerability Discovered : 2020-07-09 |
Type : webapps |
Platform : php
This exploit / vulnerability Wordpress plugin powies whois domain check 0.9.31 persistent crosssite scripting is for educational purposes only and if it is used you will do on your own risk!
Powie's WHOIS Wordpress plugin was found to be vulnerable to Stored XSS as
multiple fields in the plugin's setup settings fail to properly sanitize
user input. The risk here is mitigated due to the fact that active
exploitation would require authentication. However a lower privileged
Wordpress user would be able to take advantage of the fact that the
arbitrary Javascript executes on the same origin and therefore by using a
specially crafted payload, an attacker would be able to elevate their
privileges or take any of the same actions an admin would be able to.
All Wordpress websites using Powie's WHOIS version < 0.9.31 are vulnerable.
2. Vulnerability
There are two sets of vulnerable fields with each requiring a different
payload in order exploit.
The first set of vulnerable fields display output using the `<textarea>`
element.
Show on available domains (display-on-free)
Show on unavailable domains (display-on-connect)
Show on invalid domain (display-on-valid)
As no sanitization is being performed, an attacker can use a closing
`</textarea>` tag to close the HTML element and thus is able to inject
arbitrary Javascript.
The second set of vulnerable fields display output using the <input>
element, specifically in the value attribute. As no sanitization is
performed, an attacker is able to use specially crafted input to escape the
value attribute and thus have the ability to inject arbitrary Javascript.