Lucene search
+L

GLPI 0.90.4 - SQL Injection

🗓️ 27 Jun 2017 00:00:00Reported by Eric CARTERType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 67 Views

Multiple SQL injection vulnerabilities in GLPI 0.90.4 allow remote attackers to execute arbitrary SQL commands by using specific character with asian encoding

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
GLPI 0.90.4 - SQL Injection Vulnerability
28 Jun 201700:00
zdt
attackerkb
ATTACKERKB
CVE-2016-7508
21 Jun 201720:29
attackerkb
circl
Circl
CVE-2016-7508
27 Jun 201700:00
circl
cnvd
CNVD
GLPI SQL Injection Vulnerability
23 Jun 201700:00
cnvd
cve
CVE
CVE-2016-7508
21 Jun 201720:00
cve
cvelist
Cvelist
CVE-2016-7508
21 Jun 201720:00
cvelist
euvd
EUVD
EUVD-2016-8361
7 Oct 202500:30
euvd
exploitpack
exploitpack
GLPI 0.90.4 - SQL Injection
27 Jun 201700:00
exploitpack
nvd
NVD
CVE-2016-7508
21 Jun 201720:29
nvd
osv
OSV
UBUNTU-CVE-2016-7508
21 Jun 201720:29
osv
Rows per page
# Exploit Title: Multiple SQL injection vulnerabilities in GLPI 0.90.4
# Date: 2016/09/09
# Exploit Author: Eric CARTER (in/ericcarterengineer - CS c-s.fr)
# Vendor Homepage: http://glpi-project.org
# Software Link: http://glpi-project.org/spip.php?article3
# Version: 0.90.4
# Tested on: GLPI 0.90.4 running on a Debian 7, Apache 2.2.2, MySQL 5.5.49
# CVE : CVE-2016-7508

Multiple SQL injection vulnerabilities in GLPI 0.90.4 allow an
authenticated remote attacker to execute arbitrary SQL commands by
using the [ELIDED] character when the database is configured to use
asian encoding (BIG 5).



> [Affected Component]
The file ./inc/dbmysql.class.php defines the encoding the database
should use. This files uses the "SET NAMES" function which offers the
possibility to use a specific encoding.

> [Attack Type]
Remote

> [Impact Code execution]
True

> [Impact Escalation of Privileges]
True

> [Impact Information Disclosure]
True

> [Prerequisite]
The administrator of GLPI must have defined the variable
$dbenc='big5' in ./config/config_db.php to support asian encoding. It
will then be possible to do SQL injection in almost all the forms of
the application.

> [Attack Vectors]
For the proof-of-concept, the attacker targeted the
"Surname" form input in the User profile by adding the characters
ø (\xBF\x27) before the SQL code (the request must be sent using Western
encoding) :
ø', password=61529519452809720693702583126814 -- x

Once received by the server, the request will be sanitized, giving :
ø\', password=61529519452809720693702583126814 -- x

The value will then be sent to the database with a BIG5 encoding. Here is the
critical point, as BIG5 will see the string ø\ as a single asian character
encoded on two bytes. As the single quote isn't escaped anymore, the
SQL code will be executed and will set the password of every accounts
to the value
61529519452809720693702583126814 (=MD5 hash of "ximaz" string)

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation