LinPHA < 1.3.2 SQL Injection Vulnerability

Medium Nessus Network Monitor Plugin ID 4150

Synopsis

The remote web server contains a PHP script that is prone to an SQL injection attack.

Description

The remote host is running LinPHA, a web photo gallery application written in PHP. The version of LinPHA installed on the remote host fails to sanitize input to the 'order' parameter of the 'new_images.php' script before using it in the 'setSql' function in 'include/img_view.class.php' in a database query. Regardless of PHP's 'magic_quotes_gpc' setting, an unauthenticated attacker may be able to exploit this issue to manipulate such queries, leading to disclosure of sensitive information, modification of data or attacks against the underlying database.

Solution

Upgrade to version 1.3.2 or later.

See Also

http://linpha.cvs.sourceforge.net/linpha/linpha/ChangeLog?revision=1.1264

Plugin Details

Severity: Medium

ID: 4150

File Name: 4150.prm

Family: CGI

Published: 2007/07/31

Modified: 2016/01/21

Dependencies: 1442

Nessus ID: 25811

Risk Information

Risk Factor: Medium

CVSSv2

Base Score: 5.8

Temporal Score: 5.5

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

Temporal Vector: CVSS2#E:F/RL:U/RC:ND

CVSSv3

Base Score: 6.3

Temporal Score: 6.2

Vector: CVSS3#AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Temporal Vector: CVSS3#E:F/RL:U/RC:X

Vulnerability Information

CPE: cpe:/a:linpha:linpha

Reference Information

CVE: CVE-2007-4053

BID: 25119

OSVDB: 36286