PHPNews news.php prevnext Parameter SQL Injection

high Nessus Plugin ID 18621

Synopsis

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

Description

The remote host is running PHPNews, an open source news application written in PHP.

The installed version of PHPNews is prone to a SQL injection attack due to its failure to sanitize user-supplied input via the 'prevnext' parameter of the 'news.php' script. An attacker can exploit this flaw to affect database queries, possibly revealing sensitive information, launching attacks against the underlying database, and the like.

Solution

Upgrade to PHPNews 1.2.6 or later.

See Also

http://newsphp.sourceforge.net/changelog/changelog_1.26.txt

Plugin Details

Severity: High

ID: 18621

File Name: phpnews_prevnext_sql_injection.nasl

Version: 1.21

Type: remote

Family: CGI abuses

Published: 7/6/2005

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

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

Vulnerability Information

CPE: cpe:/a:phpnews:phpnews

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Vulnerability Publication Date: 7/2/2005

Reference Information

CVE: CVE-2005-2156

BID: 14133