Atomic Photo Album apa_phpinclude.inc.php apa_module_basedir Parameter Remote File Inclusion

high Nessus Plugin ID 19299

Synopsis

The remote web server contains a PHP script that is vulnerable to a remote file inclusion attack.

Description

The remote host is running Atomic Photo Album, a free, PHP-based photo gallery.

The installed version of Atomic Photo Album allows remote attackers to control the 'apa_module_basedir' variable used when including PHP code in the 'apa_phpinclude.inc.php' script. By leveraging this flaw, an attacker may be able to view arbitrary files on the remote host and execute arbitrary PHP code, possibly taken from third-party hosts.

Solution

Ensure that PHP's 'magic_quotes_gpc' setting is enabled and that 'allow_url_fopen' is disabled.

See Also

https://www.securityfocus.com/archive/1/406364/30/0/threaded

Plugin Details

Severity: High

ID: 19299

File Name: apa_module_basedir_file_includes.nasl

Version: 1.17

Type: remote

Family: CGI abuses

Published: 7/25/2005

Updated: 1/19/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 7.1

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: No exploit is required

Vulnerability Publication Date: 7/23/2005

Reference Information

CVE: CVE-2005-2413

BID: 14368