YaPiG < 0.92.2 Multiple Scripts Arbitrary Command Execution

high Nessus Plugin ID 14269

Synopsis

The remote web server contains a PHP application that is prone to arbitrary PHP code injection vulnerabilities.

Description

The remote host is running YaPiG, a web-based image gallery written in PHP.

The remote version of YaPiG may allow a remote attacker to execute malicious scripts on a vulnerable system. This issue exists due to a lack of sanitization of user-supplied data. It is reported that an attacker may be able to upload content that will be saved on the server with a '.php' extension. When this file is requested by the attacker, the contents of the file will be parsed and executed by the PHP engine, rather than being sent. Successful exploitation of this issue may allow an attacker to execute malicious script code on a vulnerable server.

Solution

Upgrade to YaPiG 0.92.2 or later.

See Also

https://seclists.org/fulldisclosure/2004/Aug/802

Plugin Details

Severity: High

ID: 14269

File Name: yapig_remote_vuln.nasl

Version: 1.27

Type: remote

Family: CGI abuses

Published: 8/13/2004

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

Vulnerability Information

CPE: cpe:/a:yapig:yapig

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 8/12/2004

Reference Information

BID: 10891