XoopsGallery init_basic.php GALLERY_BASEDIR Parameter Remote File Inclusion

high Nessus Plugin ID 29870

Synopsis

The remote web server contains a PHP script that is prone to a remote file include attack.

Description

The remote host is running XoopsGallery, a third-party module for Xoops.

The version of XoopsGallery installed on the remote host fails to sanitize user-supplied input to the 'GALLERY_BASEDIR' parameter of the 'modules/xoopsgallery/init_basic.php' script before using it to include PHP code. Provided PHP's 'register_globals' setting is off, an unauthenticated, remote attacker may be able to exploit this issue to view arbitrary files on the remote host or to execute arbitrary PHP code, possibly taken from third-party hosts.

Solution

Unknown at this time.

Plugin Details

Severity: High

ID: 29870

File Name: xoopsgallery_gallery_basedir_file_includes.nasl

Version: 1.20

Type: remote

Family: CGI abuses

Published: 1/8/2008

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: 5.9

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

Vulnerability Information

CPE: cpe:/a:xoops:xoopsgallery_module

Required KB Items: www/xoops

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Reference Information

CVE: CVE-2008-0138

BID: 27155

CWE: 89