OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
[SA16711] PBLang Local File Inclusion and PHP Code Injection

From: Secunia Security Advisories (sec-advsecunia.com)
Date: Thu Sep 08 2005 - 08:09:12 CDT


----------------------------------------------------------------------

Bist Du interessiert an einem neuen Job in IT-Sicherheit?

Secunia hat zwei freie Stellen als Junior und Senior Spezialist in IT-
Sicherheit:
http://secunia.com/secunia_vacancies/

----------------------------------------------------------------------

TITLE:
PBLang Local File Inclusion and PHP Code Injection

SECUNIA ADVISORY ID:
SA16711

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

CRITICAL:
Highly critical

IMPACT:
Exposure of sensitive information, System access

WHERE:
From remote

SOFTWARE:
PBLang 4.x
http://secunia.com/product/1924/

DESCRIPTION:
rgod has discovered two vulnerabilities in PBLang, which can be
exploited by malicious people to disclose sensitive information and
compromise a vulnerable system.

1) Input passed to the "u" parameter in "setcookie.php" isn't
properly verified, before it is used to include files. This can be
exploited to include arbitrary files from local resources.

Successful exploitation requires that "magic_quotes_gpc" is
disabled.

2) Input passed to some fields in "ucp.php" when updating a user's
profile isn't properly sanitised before being stored in a user
configuration file. This can be exploited to inject arbitrary PHP
code via the quotation mark character.

Successful exploitation requires that "magic_quotes_gpc" is
disabled.

A combination of the vulnerabilities #1 and #2 can be exploited to
execute arbitrary PHP code.

The vulnerabilities have been confirmed in version 4.65. Other
versions may also be affected.

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

PROVIDED AND/OR DISCOVERED BY:
rgod

ORIGINAL ADVISORY:
http://rgod.altervista.org/pblang465.html

----------------------------------------------------------------------

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.

----------------------------------------------------------------------

Unsubscribe: Secunia Security Advisories

----------------------------------------------------------------------