OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
[SA20865] phpRaid SQL Injection and File Inclusion Vulnerabilities

From: Secunia Security Advisories (sec-advsecunia.com)
Date: Thu Jun 29 2006 - 05:32:05 CDT


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

Reverse Engineer Wanted

Secunia offers a Security Specialist position with emphasis on
reverse engineering of software and exploit code, auditing of
source code, and analysis of vulnerability reports.

http://secunia.com/secunia_security_specialist/

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

TITLE:
phpRaid SQL Injection and File Inclusion Vulnerabilities

SECUNIA ADVISORY ID:
SA20865

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

CRITICAL:
Highly critical

IMPACT:
Manipulation of data, System access

WHERE:
From remote

SOFTWARE:
phpRaid 3.x
http://secunia.com/product/10233/

DESCRIPTION:
Secunia Research has discovered some vulnerabilities in phpRaid,
which can be exploited by malicious people to conduct SQL injection
attacks or compromise a vulnerable system.

1) Input passed to the "phpraid_dir" parameter in announcements.php
and rss.php 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.

Successful exploitation requires that "register_globals" is enabled.

2) Input passed to the "username" and "email" form field parameters
in register.php is not properly sanitised before being used in a SQL
query. This can be exploited to manipulate SQL queries by injecting
arbitrary SQL code.

Note: This is only vulnerable if the option "phpraid" is chosen as
authorisation type. Successful exploitation can give an attacker
access to the administration section.

Successful exploitation requires that "magic_quotes_gpc" is enabled.

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

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

PROVIDED AND/OR DISCOVERED BY:
Sven Krewitt, Secunia Research.

ORIGINAL ADVISORY:
Secunia Research:
http://secunia.com/secunia_research/2006-47/

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

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

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