phpSANE file_save Parameter Remote File Include

high Nessus Plugin ID 40796

Synopsis

The remote web server contains a PHP script that is affected by a remote file include vulnerability.

Description

The remote web server is running phpSANE, an open source web-based, front-end to scanners using SANE (Scanner Access Now Easy).

The version of phpSANE installed on the remote host fails to sanitize user-supplied input to the 'file_save' parameter of the 'save.php' script before using it to include PHP code. Regardless of PHP's 'register_globals' setting, an unauthenticated attacker can exploit this issue to view arbitrary files or possibly to execute arbitrary PHP code, possibly taken from third-party hosts.

Solution

Unknown at this time.

Plugin Details

Severity: High

ID: 40796

File Name: phpsane_file_save_rfi.nasl

Version: 1.19

Type: remote

Family: CGI abuses

Published: 8/28/2009

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

Vulnerability Information

CPE: cpe:/a:david_frohlich:phpsane

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Exploited by Nessus: true

Vulnerability Publication Date: 8/26/2009

Exploitable With

Elliot (phpSANE 0.5.0 RFI)

Reference Information

CVE: CVE-2009-3188

BID: 44234

CWE: 94

SECUNIA: 36476