Dolibarr passwordforgotten.php theme Parameter Local File Inclusion

medium Nessus Plugin ID 58746

Synopsis

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

Description

The version of Dolibarr installed on the remote host fails to sanitize user-supplied input to the 'theme' parameter of the 'user/passwordforgotten.php' script before using it to include PHP code.

Using a specially crafted request, a remote, unauthenticated attacker may be able to leverage this vulnerability to read arbitrary files or execute arbitrary PHP code from the affected host, subject to the privileges under which the web server operates.

Solution

There is currently no known solution. Edit the source code manually to ensure that input is properly sanitized.

See Also

http://autosectools.com/Advisory/Dolibarr-3.0.0-Local-File-Inclusion-181

Plugin Details

Severity: Medium

ID: 58746

File Name: dolibarr_passwordforgotten_lfi.nasl

Version: 1.10

Type: remote

Family: CGI abuses

Published: 4/13/2012

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Vulnerability Information

CPE: cpe:/a:dolibarr:dolibarr

Required KB Items: www/PHP, www/dolibarr

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: true

Exploit Ease: Exploits are available

Exploited by Nessus: true

Vulnerability Publication Date: 4/21/2011

Exploitable With

Elliot (Dolibarr 3.0.0 LFI)

Reference Information

BID: 47542