Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:13982
HistoryAug 21, 2006 - 12:00 a.m.

[SA21593] NES Game & NES System "phphtmllib" File Inclusion

2006-08-2100:00:00
vulners.com
50

TITLE:
NES Game & NES System "phphtmllib" File Inclusion

SECUNIA ADVISORY ID:
SA21593

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

CRITICAL:
Highly critical

IMPACT:
System access

WHERE:
>From remote

SOFTWARE:
NES Game & NES System
http://secunia.com/product/11630/

DESCRIPTION:
Kacper has reported some vulnerabilities in NES Game & NES System,
which can be exploited by malicious people to compromise a vulnerable
system.

Input passed to the "phphtmllib" parameter in multiple files is not
properly verified before being used to include files. This can be
exploited to execute arbitrary PHP code by including files from local
or external resources.

Examples:
http://[host]/phphtmllib/includes.php?phphtmllib=[file]
http://[host]/phphtmllib/tag_utils/divtag_utils.php?phphtmllib=[file]
http://[host]/phphtmllib/tag_utils/form_utils.php?phphtmllib=[file]
http://[host]/phphtmllib/tag_utils/html_utils.php?phphtmllib=[file]
http://[host]/phphtmllib/tag_utils/localinc.php?phphtmllib=[file]
http://[host]/phphtmllib/widgets/FooterNav.php?phphtmllib=[file]
http://[host]/phphtmllib/widgets/HTMLPageClass.php?phphtmllib=[file]
http://[host]/phphtmllib/widgets/InfoTable.php?phphtmllib=[file]
http://[host]/phphtmllib/widgets/localinc.php?phphtmllib=[file]
http://[host]/phphtmllib/widgets/NavTable.php?phphtmllib=[file]
http://[host]/phphtmllib/widgets/TextNav.php?phphtmllib=[file]

Successful exploitation requires that "register_globals" is enabled.

The vulnerabilities have been reported in version c108122. Other
versions may also be affected.

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

PROVIDED AND/OR DISCOVERED BY:
Kacper

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


About:
This Advisory was delivered by Secunia as a free service to help
everybody keeping their systems up to date against the latest
vulnerabilities.

Subscribe:
http://secunia.com/secunia_security_advisories/

Definitions: (Criticality, Where etc.)
http://secunia.com/about_secunia_advisories/

Please Note:
Secunia recommends that you verify all advisories you receive by
clicking the link.
Secunia NEVER sends attached files with advisories.
Secunia does not advise people to install third party patches, only
use those supplied by the vendor.