Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
3 registered (daudvegas, Dunny, Pilgrim), 41 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 02/09/07
Posts: 193
Top Posters (30 Days)
Ruben 49
Gizmo 24
DennyP 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
SD 9
drkknght00 9
capnbob 7
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#128588 - 05/03/06 05:00 PM Security problem in addpost_newpoll.php
RSchiffman Offline
stranger
Registered: 05/03/06
Posts: 9
We were hit last night. I forgot to remove the ability for the Apache server to be able to write some of the php files on the server. There is a problem in addpost_newpoll.php that allows execution of arbitrary code on the server.
I'm running 6.5.2. I don't believe I've skipped any security upgrades. I've included a couple log traces of the issue.

I restored my original files back. Changed everything to 444 and removed the addpost_newpoll.php and disabled polls on the machine. It's not much of an issue because it is basically an unused feature.


Edited by Rick Baker (05/03/06 05:51 PM)
Top
#128589 - 05/03/06 05:51 PM Re: Security problem in addpost_newpoll.php
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Thanks for the info on this. I've removed the logs just to safeguard other forum owners. I'm working on a fix for this as we speak and will get an update put out in the members area ASAP.
Top
#128590 - 05/03/06 06:26 PM Re: Security problem in addpost_newpoll.php
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Ok, we're working on a 6.5.3 as I type this. The fix is fairly quick, it only requires 2 files to be changed. Anyone running a version between 6.4 and 6.5.2 will want to apply this:

At the top of addpost.php you'll see this:

require ("./includes/main.inc.php");

right before that, add this:

define('ADDPOST',1);


Then, in addpost_newpoll.php, at the top, you'll see this:

// ------------------------------------
// THIS FILE IS INCLUDED BY ADDPOST.PHP

Right after that, add this:

if (!defined('ADDPOST')) {
exit;
}
Top
#128591 - 05/03/06 08:06 PM Re: Security problem in addpost_newpoll.php
misho Offline
stranger
Registered: 06/17/06
Posts: 23
The hacker left a backdoor on my system. Shame on me that I realized this 24 hours after the attack.

Check your process list for "bindz".
Top
#128592 - 05/03/06 08:11 PM Re: Security problem in addpost_newpoll.php
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
If you have access to your server access logs scan through them for recent gets to addpost_newpoll.php. This will give you an idea of what all they may have done.
Top
#128593 - 05/03/06 08:18 PM Re: Security problem in addpost_newpoll.php
misho Offline
stranger
Registered: 06/17/06
Posts: 23
This is exactly how I learned about this backdoor. Thanks for the fix!
Top
#128594 - 05/03/06 08:26 PM Re: Security problem in addpost_newpoll.php
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
You're welcome. My apologies it was there in the first place. All of the other scripts include ubbt.inc.php at some pont which sanitizes some things to prevent this. This one particular script didn't because it was being included by one that did. The fix basically makes it so the only way the script can be called is if it's been included by another as it is under normal operation.
Top
#128595 - 05/03/06 08:59 PM Re: Security problem in addpost_newpoll.php
FredR Offline
stranger
Registered: 04/20/05
Posts: 6
Loc: Colorado

Scary stuff. We were hit this morning. Thanks for the quick fix Rick! I will sleep better tonight.
Top
#128596 - 05/03/06 10:47 PM Re: Security problem in addpost_newpoll.php
RSchiffman Offline
stranger
Registered: 05/03/06
Posts: 9
Thank you for being so quick. I'm thrilled to see such an easy fix. We continue to be very happy users of your products.
Top
#128597 - 05/04/06 12:57 AM Re: Security problem in addpost_newpoll.php
JoshPet Offline
enthusiast
Registered: 06/05/06
Posts: 292
Loc: Charlotte, NC
Yeah, this one has been a headache for me all day. Thanks for the quick fix.
_________________________
Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com
Top
Page 1 of 2 1 2 >



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Island Permissions
by ThreadsUser
Yesterday at 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Running ads
by Jeffdag
05/17/12 01:47 PM
Forum Stats
10484 Members
36 Forums
33834 Topics
181678 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image