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

Family: CGI

Published: 7/31/2007

Updated: 3/6/2019

Nessus ID: 25811

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 5.8

Temporal Score: 5.5

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

CVSS v3

Risk Factor: Medium

Base Score: 6.3

Temporal Score: 6.2

Vector: CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Temporal Vector: CVSS:3.0/E:F/RL:U/RC:X

Vulnerability Information

CPE: cpe:/a:linpha:linpha

Reference Information

CVE: CVE-2007-4053

BID: 25119