Pixelpost Forum  

Go Back   Pixelpost Forum > DEVELOPMENT > Bug Report 1.5.x
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 06-03-2006, 02:43 PM   #1
solar-flare
forum loafer
 
Join Date: May 2005
Location: Washington, DC
Posts: 1
Send a message via AIM to solar-flare Send a message via MSN to solar-flare
Exclamation Remote Privilege Escalation Exploit

FYI, milw0rm is reporting a Remote Privilege Escalation Exploit in PP <= 1.5

http://www.milw0rm.com/exploits/1868
__________________
www.solar-flare.us

Hosted by Pseudo-Servers Hosting:
www.pseudo-servers.com
solar-flare is offline   Reply With Quote
Old 06-03-2006, 03:36 PM   #2
GeoS
Team Pixelpost
 
GeoS's Avatar
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,074
Send a message via ICQ to GeoS Send a message via Skype? to GeoS
Default

Thx for link.

For now without testing but seeing security whole fast fix looks like:
1) find:
PHP Code:
// end imageprint

// fix a popuplink

$tpl ereg_replace("<SITE_TITLE>",$pixelpost_site_title,$tpl);

if(isset(
$_GET['x']) &&$_GET['x'] == "browse")
{
    
$thumb_output "";
    
$where "";

    if(
$_GET['category'] != ""
2) replace it with:
PHP Code:
// end imageprint

// fix a popuplink

$tpl ereg_replace("<SITE_TITLE>",$pixelpost_site_title,$tpl);

if(isset(
$_GET['x']) &&$_GET['x'] == "browse")
{
    
$thumb_output "";
    
$where "";

    if(
is_numeric($_GET['category']) && $_GET['category'] != ""
Now Im going out so rest must wait for a while.
GeoS is offline   Reply With Quote
Old 06-03-2006, 08:41 PM   #3
sbzx
pp veteran
 
sbzx's Avatar
 
Join Date: Jun 2005
Location: Szentendre, Hungary
Posts: 53
Send a message via Skype? to sbzx
Exclamation

In fact, there seem to be three exploits there.
__________________
:: sbzx

usualsubjects.com
sbzx is offline   Reply With Quote
Old 06-04-2006, 03:35 AM   #4
se.nsuo.us
pixelpost guru
 
Join Date: Dec 2005
Location: Somewhere in India
Posts: 623
Default

Sigh! finally someone else got to it and published...

Fixes are easy - but it is Sunday morning here

As for Register Globals = On exploit anyone who runs a server with that setting is doomed anyways
__________________
http://se.nsuo.us - A photoblog of sensual, abstract nudes [may not be work safe for some]
My Pixelpost Addons, Cheesecake-Photoblog Software
se.nsuo.us is offline   Reply With Quote
Old 06-04-2006, 09:13 AM   #5
GeoS
Team Pixelpost
 
GeoS's Avatar
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,074
Send a message via ICQ to GeoS Send a message via Skype? to GeoS
Default

In case of register_globals = On all depends from variables_order which by default is secure:
variables_order = "EGPCS"
GeoS is offline   Reply With Quote
Old 06-04-2006, 11:41 AM   #6
GeoS
Team Pixelpost
 
GeoS's Avatar
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,074
Send a message via ICQ to GeoS Send a message via Skype? to GeoS
Default

Next fix for register globals.

Affected files:
/admin/categories.php
/admin/comments.php
/admin/images_edit.php
/admin/new_image.php
/admin/options.php
/admin/view_addons.php
/admin/view_info.php

Find at beginning of each:
PHP Code:
if(!isset($_SESSION["pixelpost_admin"]) || $cfgrow['password'] != $_SESSION["pixelpost_admin"]) {
    die (
"Try another day!!");

and repleace with:
PHP Code:
if(!isset($_SESSION["pixelpost_admin"]) || $cfgrow['password'] != $_SESSION["pixelpost_admin"] || $_GET["_SESSION"]["pixelpost_admin"] == $_SESSION["pixelpost_admin"]) {
    die (
"Try another day!!");

PS In a minute there will be CVS fix.
GeoS is offline   Reply With Quote
Old 06-04-2006, 12:01 PM   #7
GeoS
Team Pixelpost
 
GeoS's Avatar
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,074
Send a message via ICQ to GeoS Send a message via Skype? to GeoS
Default

Next fast fix for point 2. There will be probably better one in future.

Find in /index.php (line 681/712):
PHP Code:
ELSE IF ($_GET['archivedate'] != ""
and replace it with:
PHP Code:
ELSE IF ($_GET['archivedate'] != "" && strlen($_GET['archivedate']) < 20
GeoS is offline   Reply With Quote
Old 06-04-2006, 12:18 PM   #8
Joe[y]
Team Pixelpost
 
Joe[y]'s Avatar
 
Join Date: Mar 2005
Location: UK
Posts: 3,088
Send a message via MSN to Joe[y]
Default

is point 4 fixed on that? it scares me! but i don't fully understand how it works.
__________________
ZOMBIE GOAT PORN
Joe[y] is offline   Reply With Quote
Old 06-04-2006, 03:36 PM   #9
Connie
Team Pixelpost
 
Connie's Avatar
 
Join Date: Oct 2004
Location: Hamburg, Germany
Posts: 4,630
Default

have a look at www.photografitti.de

I cannot log in anymore, my hoster says he did nothing..

something "wait for redirect..:"

is this caused by some of these exploits?
__________________
Connie
-------|
one of the Pixelpost-Veterans
www.photografitti.de
my Photoprojects: www.zweiterblick.de
Connie is offline   Reply With Quote
Old 06-04-2006, 03:43 PM   #10
GeoS
Team Pixelpost
 
GeoS's Avatar
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,074
Send a message via ICQ to GeoS Send a message via Skype? to GeoS
Default

I forgot about this one.

At beginning of /admin/index.php find:
PHP Code:
You should have received a copy of the GNU General Public License
along with this program
; if notwrite to the Free Software
Foundation
Inc., 59 Temple Place Suite 330BostonMA  02111-1307USA.

*/ 
and replace with:
PHP Code:
You should have received a copy of the GNU General Public License
along with this program
; if notwrite to the Free Software
Foundation
Inc., 59 Temple Place Suite 330BostonMA  02111-1307USA.

*/

// variable clean up
if(isset($_GET["loginmessage"]))    $loginmessage ""
GeoS is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 11:23 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.
Copyright ©2004-2006, Pixelpost.org