Joomla Custompages Component "cpage" File Inclusion

SECUNIA ADVISORY ID:
SA29520

VERIFY ADVISORY:
http://secunia.com/advisories/29520/

CRITICAL:
Highly critical

IMPACT:
Exposure of system information, Exposure of sensitive information,
System access

WHERE:
>From remote

SOFTWARE:
Custompages 1.x (component for Joomla)
http://secunia.com/product/18014/

DESCRIPTION:
Sniper456 has discovered a vulnerability in the Custompages component
for Joomla!, which can be exploited by malicious people to disclose
sensitive information or to compromise a vulnerable system.

Input passed to the "cpage" parameter in the Joomla! installation's
index.php script (when "option" is set to "com_custompages") is not
properly verified before being used to include files. This can be
exploited to include arbitrary files from local or external
resources.

The vulnerability is confirmed in version 1.1. Other versions may
also be affected.

SOLUTION:
Edit the source code to ensure that input is properly verified.

PROVIDED AND/OR DISCOVERED BY:
Sniper456

ORIGINAL ADVISORY:
http://milw0rm.com/exploits/5294