OpenEMR C_FormEvaluation.class.php fileroot Parameter Remote File Inclusion

medium Nessus Plugin ID 21675

Synopsis

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

Description

The remote host is running OpenEMR, a web-based medical records application written in PHP.

The version of OpenEMR installed on the remote host fails to sanitize input to the 'fileroot' parameter before using it in the 'contrib/forms/evaluation/C_FormEvaluation.class.php' script to include PHP code. Provided PHP's 'register_globals' setting is enabled, an unauthenticated attacker may be able to exploit this flaw to view arbitrary files on the remote host or to execute arbitrary PHP code, possibly taken from third-party hosts.

Solution

Disable PHP's 'register_globals' setting as the application does not require it.

Plugin Details

Severity: Medium

ID: 21675

File Name: openemr_fileroot_file_include.nasl

Version: 1.17

Type: remote

Family: CGI abuses

Published: 6/9/2006

Updated: 4/11/2022

Configuration: Enable thorough checks

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.3

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

Vulnerability Information

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Ease: No exploit is required

Vulnerability Publication Date: 6/7/2006

Reference Information

CVE: CVE-2006-2929