LinPHA include/img_view.class.php order parameter SQL Injection

high Nessus Plugin ID 25811

Synopsis

The remote web server contains a PHP script that is prone to a 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 LinPHA 1.3.2 or later.

See Also

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

Plugin Details

Severity: High

ID: 25811

File Name: linpha_order_sql_injection.nasl

Version: 1.21

Type: remote

Family: CGI abuses

Published: 7/30/2007

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.8

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

Vulnerability Information

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 7/29/2007

Reference Information

CVE: CVE-2007-4053

BID: 25119