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
#128598 - 05/04/06 02:55 AM Re: Security problem in addpost_newpoll.php
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
Too late. We was hit yesterday, 14:36 gmt+1. It comes from Brazil. The script modify every .php file in my Zeus Nutshell, 6 Sites in all. He append an on every php file a iframe wich reload exploits to unpatched browsers and adware.

I was running 6.5.1.1 with the external input validator modification. This mod catch nearly all XXS but due this hole my whole site was defaced.

We close all, replaced all php files from last night backup and on the rest of the night I upgrade a heavy modded 6.5.1.1 to 6.5.2. I hoped, thats all, then I come here and this happend to 6.5.2 too ........ I know several .threads (incl keyhole community on google earth). Lets see what happend there
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#128599 - 05/04/06 02:59 AM Re: Security problem in addpost_newpoll.php
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
Quote:

Ok, we're working on a 6.5.3 as I type this.




will the be free to all license holder without renewing the membership ? I dont renew because any promises was broken. I need only security updates and don't plan to use your new upcomming product. but I still need fixed versions (without enhancedments).
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#128600 - 05/12/06 02:39 AM Re: Security problem in addpost_newpoll.php
patrickegan Offline
stranger
Registered: 05/27/04
Posts: 6
I found the guy in case anyone is interested
soauker@gmail.com Adivinha seuburro.

He is apparently somewhat active in reporting php vulerabilities too http://securitytracker.com/alerts/2006/Feb/1015624.html
Top
#128601 - 05/25/06 04:56 AM Re: Security problem in addpost_newpoll.php
Digi Offline
stranger
Registered: 03/23/04
Posts: 1
Got fecked over by this a couple of times since the 23rd

[root@box httpd]# grep addpost_newpoll.php net-access_log |wc -l
1060



Thing is Rick, you knew about the problem early on in may and it only just found its way onto the likes of checksum.org and secuirtyfocus.com in the last couple of days.... If you had a mailing list for errata updates for things like this it might save us all from having to spend a few hours mopping up the various aol and credit card phishing sites that have been installed on our servers.... Just a thought.

now to check for back doors you want to look for any folders that were writable by the user you run your webserver as "apache or httpd usually".. i had /userimages and /attachments. they'll prolly be full of phishing sites now - mine where.

check the contents of /tmp for backdoor proggies.

Then run a 'netstat -npl' to see what ports are accepting connection on your box.

For example i found an "apache" program running on 0.0.0.0:5555 which isn't right.

[root@box httpd]# telnet localhost 5555
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
:Welcome!psyBNC@ArDaN.or.id NOTICE * syBNC2.3.1

more digging found this in /tmp
Code:
 
.-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-.
,----.,----.,-. ,-.,---.,--. ,-.,----.
| O || ,-' \ \/ / | o || \| || ,--'
| _/ _\ \ \ / | o< | |\ || |__
|_| |____/ |__| |___||_| \_| \___|
Version 2.3.1 (c) 1999-2003
ArDaN Community Chat
and the cool lam3rz Group DALNet

`-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=tCl=-'
Configuration File: ArDaN
Language File: psyBNC Language File - English
No logfile specified, logging to log/psybnc.log
Listening on: 0.0.0.0 port 3036
psyBNC2.3.1-cBtITLdDMSNp started (PID 29821)



nice.

Oh and also look at the crontab for the user your web server runs as (usually 'crontab -u apache -e')

mine was calling various scripts every minute (/var/log/cron should show you that too).
Top
#128602 - 05/25/06 10:53 AM Re: Security problem in addpost_newpoll.php
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Actually, we sent out a mass mail to all of our customers. Any time someone purchases a license they get put into our buzzcast mailing list. I sent out the email to everyone on that list the same night that the issue was discovered. It appears this got caught in alot of people spam folders, those that I've worked with recently went back and check and found the email we sent out but it was flagged as spam so they missed it.
Top
#128603 - 05/25/06 11:05 AM Re: Security problem in addpost_newpoll.php
AllenAyres Offline
Registered: 12/29/03
Posts: 1995
Loc: Texas
Yeah, an email was sent back then. I sent out a few thousand emails to members of threadsdev night before last after seeing sites still reporting hacks and not many people updating... hopefully not many got caught in spam filters, those that sent me a rejection, I did what I could to get them on through.

Quote:


it only just found its way onto the likes of checksum.org and secuirtyfocus.com in the last couple of days....





That would explain the spike in copy-cat hacks the last few days, I repaired 4-5 myself yesterday :/
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#128604 - 05/25/06 06:00 PM Re: Security problem in addpost_newpoll.php
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
buzzcast will be filtered by many spam lists. I found it in my filter with high spam score.
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#128605 - 05/25/06 06:36 PM Re: Security problem in addpost_newpoll.php
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Seems like alot of mailing lists get filtered. For version 7 we're working on a way to get important news to the admin. What we currently have is when an admin goes into the control panel it will list the newest 5 topics from the announcements forum here right on the main control panel page by using RSS. This should help with getting important news out to customers.
Top
#128606 - 05/29/06 04:35 PM Re: Security problem in addpost_newpoll.php
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
Today I check out my webroot on my reseller account and found a bot on my space: but.tgz, installed in directory .m

Its an IIRC bot. Uploaded on 13.5.2006 ..... But I have apply all fixes and we dont left an activ backdoor on the server. Any ideas where it comes from ? Now we investigate all logfiles (take a while) to see what happen. I will report if we found any new details. Be carefull, watch your server !
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#128607 - 05/29/06 04:59 PM Re: Security problem in addpost_newpoll.php
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
ok, its not UBB.threads. Its another damm open script ... we found it and close it. sorry for the alarm.
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
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