OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
[SA15990] PunBB SQL Injection and PHP Code Execution Vulnerabilities

From: Secunia Security Advisories (sec-advsecunia.com)
Date: Fri Jul 08 2005 - 07:52:15 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:
PunBB SQL Injection and PHP Code Execution Vulnerabilities

SECUNIA ADVISORY ID:
SA15990

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

CRITICAL:
Highly critical

IMPACT:
Security Bypass, Manipulation of data, System access

WHERE:
From remote

SOFTWARE:
PunBB 1.x
http://secunia.com/product/3700/

DESCRIPTION:
Stefan Esser has reported some vulnerabilities in PunBB, which can be
exploited by malicious people to conduct SQL injection attacks and
compromise a vulnerable system.

1) Input passed to the "temp" array parameter in "profile.php" isn't
properly sanitised before being used in a SQL query. This can be
exploited to manipulate SQL queries by injecting arbitrary SQL code.

Successful exploitation requires that "register_globals" is enabled.

2) An error in the template system can be exploited to include
arbitrary local files via e.g. the "redirect_url" parameter. This can
further be exploited to execute arbitrary PHP code by referencing a
specially crafted avatar image containing PHP code.

The vulnerabilities has been reported in version 1.2.5 and prior.

SOLUTION:
Update to version 1.2.6.
http://www.punbb.org/downloads.php

PROVIDED AND/OR DISCOVERED BY:
Stefan Esser, Hardened-PHP Project

The vendor also credits Smartys.

ORIGINAL ADVISORY:
http://www.hardened-php.net/advisory-082005.php
http://www.hardened-php.net/advisory-092005.php

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

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

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