Dokeos main/inc/lib/events.lib.inc.php Referer HTTP Header SQL Injection

high Nessus Plugin ID 31116

Synopsis

The remote web server contains a PHP application that is susceptible to a SQL injection attack.

Description

The remote host is running Dokeos, an open source, e-learning and course management web application written in PHP.

The version of Dokeos installed on the remote host fails to sanitize user input to the 'Referer' request header before using it in the 'main/inc/lib/events.lib.inc.php' script to perform database queries. Regardless of PHP's 'magic_quotes_gpc' setting, an attacker may be able to exploit this issue to manipulate database queries to disclose sensitive information, or even attack the underlying database.

Note that there are also reportedly several other vulnerabilities associated with this version of Dokeos, although Nessus has not checked for them.

Solution

Apply Dokeos 1.8.4 SP2 or later.

See Also

https://www.dokeos.com/

Plugin Details

Severity: High

ID: 31116

File Name: dokeos_referer_sql_injection.nasl

Version: 1.18

Type: remote

Family: CGI abuses

Published: 2/19/2008

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: cpe:/a:dokeos:dokeos

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Reference Information

CVE: CVE-2008-0850

BID: 27792

CWE: 89

SECUNIA: 28974