Synopsis
The remote web server contains a PHP script that is affected by a local file include vulnerability.
Description
The remote host is running OpenCart, an open source, PHP-based online shopping cart system.
The version of OpenCart installed on the remote host fails to filter user-supplied input to the 'route' parameter of the 'index.php' script before using it to include PHP code in the 'execute' method in 'system/engine/front.php'. 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
The issue was silently fixed in OpenCart 1.1.9 so upgrade to at least that version.
Plugin Details
File Name: opencart_route_lfi.nasl
Configuration: Enable thorough checks
Supported Sensors: Nessus
Risk Information
Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P
Vulnerability Information
CPE: cpe:/a:opencart:opencart
Required KB Items: www/PHP
Excluded KB Items: Settings/disable_cgi_scanning
Exploit Ease: No exploit is required
Exploited by Nessus: true
Exploitable With
Elliot (OpenCart 1.1.8 LFI)