Moodle < 1.5.3 Multiple SQL Injection Vulnerabilities

high Nessus Plugin ID 20210

Synopsis

The remote web server contains a PHP application that is affected by multiple SQL injection vulnerabilities.

Description

The remote installation of Moodle fails to sanitize user-supplied input to the 'id' parameter of the 'course/category.php' and 'course/info.php' scripts as well as the 'user' parameter of the 'iplookup/ipatlas/plot.php' script before using it in database queries. An attacker can exploit these issues to launch SQL injection attacks against the affected application, possibly leveraging them to run arbitrary PHP code on the remote host, subject to the permissions of the web server user id.

Solution

Upgrade to Moodle 1.5.3 or later when it becomes available or enable PHP's 'magic_quotes_gpc' setting and disable its 'register_globals' setting.

See Also

https://seclists.org/bugtraq/2005/Nov/139

Plugin Details

Severity: High

ID: 20210

File Name: moodle_153.nasl

Version: 1.28

Type: remote

Family: CGI abuses

Published: 11/16/2005

Updated: 6/6/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus

Enable CGI Scanning: true

Risk Information

VPR

Risk Factor: Medium

Score: 6.6

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 7.5

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

Vulnerability Information

CPE: cpe:/a:moodle:moodle

Required KB Items: www/PHP, installed_sw/Moodle

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: No exploit is required

Patch Publication Date: 11/10/2005

Vulnerability Publication Date: 11/10/2005

Reference Information

CVE: CVE-2005-3648

BID: 15380