TinyWebGallery lang Parameter Local File Inclusion

high Nessus Plugin ID 38888

Synopsis

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

Description

The remote host is running TinyWebGallery, a web-based photo gallery application written in PHP.

The version of TinyWebGallery installed on the remote host fails to filter user-supplied input to the 'lang' parameter of the 'admin/_include/init.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 on the remote host, subject to the privileges of the web server user id.

Solution

Upgrade to TinyWebGallery 1.7.7 or later.

See Also

http://www.nessus.org/u?98ee11cb

Plugin Details

Severity: High

ID: 38888

File Name: twg_lang_lfi.nasl

Version: 1.22

Type: remote

Family: CGI abuses

Published: 5/26/2009

Updated: 4/7/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.6

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

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 8.2

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:tinywebgallery:tinywebgallery

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Exploited by Nessus: true

Exploitable With

Core Impact

Reference Information

CVE: CVE-2009-1911

BID: 34892

CWE: 22