ThreadsDev FusionBB Greeting Cards FusionBBDev.com Measurection.com VertexHost NASCAR Racing MouseFunFacts.com Myrtle Beach Info UBB.Threads Modifications threadsdev.net
FusionBB

Trans-D Tropin
Use Coupon Code '1004' to Save $20 Off Your Initial Order of Trans-D Tropin®
V6 Threads Development >> Modifications

Pages: 1 | 2 | >> (show all)
Astaran
Addict
****

Reged: 12/21/00
Posts: 1552
Loc: Germany
Finished-[6.3-6.4-6.5] Input validation mod (Security fix) 1.1.1
      #127242 - 04/20/05 12:33 PM Attachment (147 downloads)

Mod Name / Version: Input validation mod (Security fix) 1.1.1

Description: You all probably noticed that several vulnerabilities have been found in ubb.threads over the last months/weeks. Some of them have been fixed by Infopop, but that's only the tip of the iceberg.

There's no proper input validation in ubb.threads, which makes the door wide open for sql injections. Additionally, the output of ubb.threads isn't escaped properly also. This can be used by "hackers" to start XSS (cross site scripting attacks).

Both types of attacks can used to compromise your boards. Either to damage it or to gain unauthorized access.

During a security audit of ubb.threads, I found more than 10 vulnerabilities.

Infopop is aware of this problem and will "take care" of it in the next release. As this will take at least "some weeks", I created a modification that will prevent most of this attacks.

Note that all current installations of ubb.threads are vulnerable at the moment and that some exploits have already been published to security mailing lists (last one yesterday).

If the modification detects a possible attack an error message is displayed and the attack is logged to a logfile.

Working Under: UBB.Threads 6.3-6.4-6.5

Mod Status: Finished

Any pre-requisites:

Author(s): Astaran

Date: 04/20/05

Credits:

Files Altered: ubbt.inc.php

New Files: Validate.php

Database Altered: no

Info/Instructions: Note that there are three versions of this modification (depending on the ubb.threads version you're using).

Just follow the instructions in instructions.txt.

More experienced users can enhance this class to also validate variables that are used in installed hacks/modifications. See the readme.txt for details.

Disclaimer: Please backup every file that you intend to modify.

If the modification modifies the database, it's a good idea to backup your database before doing so.


Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Edited by Astaran (05/11/05 05:17 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
scroungr
Old Hand
****

Reged: 10/17/03
Posts: 2429
Loc: Richmond, VA
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Astaran]
      #127243 - 04/20/05 12:35 PM

Thanx Astaran!

--------------------
Couchtomatoe - www.couch-tomatoe.cc

My abilities are for hire for installs, upgrades, custom themes and custom modifications.



Post Extras: Print Post   Remind Me!   Notify Moderator  
Medar
Code Monkey
****

Reged: 07/13/00
Posts: 609
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: scroungr]
      #127245 - 04/20/05 01:22 PM

Thanks Astaran! Glad to know this is being taken seriously over here.

--------------------
Medar

Bladekeep ForumsBicenet Design


Post Extras: Print Post   Remind Me!   Notify Moderator  
AllenAyres
Wizard
****

Reged: 10/12/01
Posts: 5562
Loc: Texas
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Medar]
      #127253 - 04/20/05 11:00 PM



--------------------
- Allen

- Join Team ThreadsDev

- It's not about you.


Post Extras: Print Post   Remind Me!   Notify Moderator  
DalantechAdministrator
Old Hand
*****

Reged: 06/24/02
Posts: 2410
Loc: Naples, Italy
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Astaran]
      #127259 - 04/21/05 12:57 AM

Excellent!

--------------------
Da LAN Tech

Network News and Reviews


Post Extras: Print Post   Remind Me!   Notify Moderator  
AllenAyres
Wizard
****

Reged: 10/12/01
Posts: 5562
Loc: Texas
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Astaran]
      #127369 - 04/26/05 05:15 PM

Any word on an 'official' fix (6.5.2) from IP yet?

--------------------
- Allen

- Join Team ThreadsDev

- It's not about you.


Post Extras: Print Post   Remind Me!   Notify Moderator  
ksanuk
Member


Reged: 02/06/02
Posts: 290
Loc: Bangkok, Thailand
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: AllenAyres]
      #127449 - 04/29/05 08:46 PM

Hi,

I'm running 6.4b1, so which of these 2 do I implement (attachment only has instructions for 6.3.x and 6.5.x)?

Sanuk!


Post Extras: Print Post   Remind Me!   Notify Moderator  
Calpy
User
*****

Reged: 12/17/02
Posts: 40
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Astaran]
      #127450 - 04/29/05 08:51 PM

* Thanks for the mod! I installed it, and when I peep at the logfile it looks like it's validating everything just fine, but should I clean out the logfile occasionally or something. It looks like it's gonna get pretty big as the days go by.

Post Extras: Print Post   Remind Me!   Notify Moderator  
DLWebmaestro
Addict
***

Reged: 01/16/03
Posts: 1696
Loc: North Carolina
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: AllenAyres]
      #127451 - 04/30/05 12:56 AM

Quote:

AllenAyres said:
Any word on an 'official' fix (6.5.2) from IP yet?




Beta testers are currently testing 6.5.2b1, which addresses many security issues.

--------------------
ThreadsDev 2003 Member Spotlight Winner

JoshPet was here.

Miserable Failure


Post Extras: Print Post   Remind Me!   Notify Moderator  
Astaran
Addict
****

Reged: 12/21/00
Posts: 1552
Loc: Germany
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: ksanuk]
      #127490 - 05/02/05 05:46 AM

Quote:

ksanuk said:
Hi,

I'm running 6.4b1, so which of these 2 do I implement (attachment only has instructions for 6.3.x and 6.5.x)?

Sanuk!



If you're able to modify the hack a bit you can take the version for 6.5.x Use the Validation.php from version 6.5, but the installation instructions from 6.3.x.
Install it, but run it with
define('ABORT_ON_ERROR',false);
for some days. Browse the logfiles and look for unknown parameters. You can manually add them into the validation script. The the readme.txt for further details.

If you're not able to modify it yourself, send over the logfile and I'll have a look at it.

--------------------
Running a community? -> Keep informed and take it to the next level


Post Extras: Print Post   Remind Me!   Notify Moderator  
Astaran
Addict
****

Reged: 12/21/00
Posts: 1552
Loc: Germany
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Calpy]
      #127491 - 05/02/05 05:47 AM

Quote:

Calpy said:
* Thanks for the mod! I installed it, and when I peep at the logfile it looks like it's validating everything just fine, but should I clean out the logfile occasionally or something. It looks like it's gonna get pretty big as the days go by.




Yes, delete it from time to time. Currently, there's no mechanism to do this automatically.

--------------------
Running a community? -> Keep informed and take it to the next level


Post Extras: Print Post   Remind Me!   Notify Moderator  
caymuc
Enthusiast
*****

Reged: 01/17/01
Posts: 449
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Astaran]
      #127499 - 05/02/05 03:25 PM

Hi,
great script. i tried it with 6.5.1 and got an alert from the Google-Bot:

Quote:

ERROR: SECURITY ALERT: POSSIBLE XSS ATTACK DETECTED!\nERROR: Script "/Cat/0/Number/23157/page/vc/1" has been called with an invalid parameter.\nERROR: parameter named "page" with a value of "vc" contained invalid characters. Valid type is: num.\nERROR: Script has been called from: 66.249.65.206\nERROR: User agent was: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)\nERROR: Referer was: \nERROR: Full URI was: /FORUM/php/forum/showthreaded.php/Cat/0/Number/23157/page/vc/1\nERROR: END OF SECURITY ALERT.\nDEBUG: Data "forumbugs" contains alphanumeric characters only. Validation was successful.





Is there anything I can do to accept this request?

My second question is:
How can you limit the logfile that it only shows errors and not everything.
The log is increasing 10KB per minute! right now.
I better switch logging off for a while.
Greetings
carl

--------------------
Carl

Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')


Post Extras: Print Post   Remind Me!   Notify Moderator  
AllenAyres
Wizard
****

Reged: 10/12/01
Posts: 5562
Loc: Texas
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: DLWebmaestro]
      #127505 - 05/02/05 08:03 PM

Quote:

DLWebmaestro said:
Quote:

AllenAyres said:
Any word on an 'official' fix (6.5.2) from IP yet?




Beta testers are currently testing 6.5.2b1, which addresses many security issues.




oh really, odd how the .threads beta testers know nothing of that

--------------------
- Allen

- Join Team ThreadsDev

- It's not about you.


Post Extras: Print Post   Remind Me!   Notify Moderator  
DLWebmaestro
Addict
***

Reged: 01/16/03
Posts: 1696
Loc: North Carolina
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: AllenAyres]
      #127506 - 05/02/05 08:31 PM

Yes, really.

I was not aware Infopop still had a separate beta group for .threads. And if they don't know about it, then I agree, that is odd.

--------------------
ThreadsDev 2003 Member Spotlight Winner

JoshPet was here.

Miserable Failure


Post Extras: Print Post   Remind Me!   Notify Moderator  
ksanuk
Member


Reged: 02/06/02
Posts: 290
Loc: Bangkok, Thailand
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Astaran]
      #127511 - 05/02/05 09:07 PM

Hi,

"If you're not able to modify it yourself, send over the logfile and I'll have a look at it. "

Thanks, but seeing that I am leaving on a vacation in about 16 hrs I think this will have to wait until after I get back.

Sanuk!


Post Extras: Print Post   Remind Me!   Notify Moderator  
Astaran
Addict
****

Reged: 12/21/00
Posts: 1552
Loc: Germany
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: caymuc]
      #127522 - 05/03/05 11:13 AM

Quote:

caymuc said:
Hi,
great script. i tried it with 6.5.1 and got an alert from the Google-Bot:
...

Is there anything I can do to accept this request?

My second question is:
How can you limit the logfile that it only shows errors and not everything.
The log is increasing 10KB per minute! right now.
I better switch logging off for a while.
Greetings
carl



I'll release a new version on thursday, that will address both of it.
Isn't possible in the current version.
The new version will also include a version for ubb.threads 6.4.2

--------------------
Running a community? -> Keep informed and take it to the next level


Post Extras: Print Post   Remind Me!   Notify Moderator  
Astaran
Addict
****

Reged: 12/21/00
Posts: 1552
Loc: Germany
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Astaran]
      #127586 - 05/05/05 05:13 PM

I updated the with a new version.

Changes in version 1.1.0:

- added a version for ubb.threads 6.4.x
- fixed several small bugs in the validation routines and added some new parameters
- changed the login so that only errors and unknown variables are logged by default
- added option to notify you by mail of possible attacks or unknown vars (disabled by default, see the instructions.txt for details on how to enable it)
- error message is a lot nicer now and includes some extra information
- explained the configuration options in instructions.txt

--------------------
Running a community? -> Keep informed and take it to the next level


Post Extras: Print Post   Remind Me!   Notify Moderator  
Astaran
Addict
****

Reged: 12/21/00
Posts: 1552
Loc: Germany
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Astaran]
      #127594 - 05/06/05 05:57 AM

Upgrade instructions if you already have version 1.0 running:

1. Extract the zip file and open the Validate.php that fits to your ubb.threads version.

2. Adjust the path to the logfile like you did during the inital installation

3. Optionally change the settings (see instructions.txt for a list of configuration options)

4. Upload the new Validate.php to your server

You don't need to alter ubbt.inc.php during the upgrade.
It's a good idea to delete the logfile to start fresh before doing the upgrade.

--------------------
Running a community? -> Keep informed and take it to the next level


Post Extras: Print Post   Remind Me!   Notify Moderator  
SchoolScandals
Journeyman


Reged: 07/27/02
Posts: 130
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Astaran]
      #127603 - 05/06/05 05:55 PM

humm. Any idea why now everything on my page is comming up blank? http://www.schoolscandals.com

Post Extras: Print Post   Remind Me!   Notify Moderator  
SchoolScandals
Journeyman


Reged: 07/27/02
Posts: 130
Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: SchoolScandals]
      #127605 - 05/06/05 06:54 PM

Fixed it I think.

I had 7 occurences of "return $thisvar;
so i just left out the last one.

edit: how can I test the log? Make sure I got everything right.

Edited by SchoolScandals (05/06/05 06:55 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1 | 2 | >> (show all)



Extra information
0 registered and 20 anonymous users are browsing this forum.

Moderator:  JoshPet, Gardener, Ian_W, Anno 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating: *****
Topic views: 9547

Rate this topic

Jump to
 
Hot Topic
No posts have caught fire as of yet.

Developers for Hire
Are you looking for custom modifications? Upgrades? Installs?
We have developers who can help!
View Our Services Page for information.

Login
Enter your username and password to login. If you do not have a username you can register one HERE.
username:
password:

Send Password
Remember Me

Online
115 guests have been online with in the last 90 minutes.

ThreadsDev.com
Trans-D Tropin

Current Threads
No current threads found...

Modifications
Recently Added:
· View Private Messages v0.9.3
· Stop Guests from seeing "Who's Online." [6.5.5]
· User List Display Limited by Post Count 1.0
· Paginate PMs 1.0
· Today and Yesterday

Most Downloaded:
· Inline Images 3.1
· Quote Username 1.0
· Games Arcade Deluxe v1.8
· UbbThreads and Photopost Total Integration Version 4
· Tool Tip Body Preview 3.0

Highest Rated:
· Mass Threads Move for 6.3
· Update Last Posts 1.0
· Update B_Parent User 1.0
· Integrated Index Page (IIP) 5.3.1
· IIP SideBarPal 1.1

Recent Stylesheets:
· Mix-Colors_2-0_3D for UBBT v6.3 - 6.5
· Mix-Colors_2-0 for UBBT v6.3 - 6.5
· Dark-Grey_3-0 for UBBT v6.3 - 6.5
· Green-Orange_1-0 for UBBT v6.3 - 6.5
· ebay_1-0 for UBBT v6.3 - 6.5

Recent Template Mods:
· Postlist modification - line separates new topics and replies
· I need some help with my postlist.tmpl file
· Edit, reply, and quote buttons mod for Facelift 6.5
· Google Add Sense add on for Threads 6.5
· Article templates for Thread 6.5

Shout Box

Short Stats
New Members:
4 Last 24 hours
20 Last 7 days
107 Last 31 days

Boards:
11676 Total topics
73324 Total replies

Totals:
5728 Members
85000 Posts

Max Online:
814 Total
(06/01/06 09:46 AM)


Web Hosting Provided by
VertexHost Web Hosting

Content ©2003-2006 ThreadsDev.NET
Powered By UBB.threads™ 6.5.5

 .: IIP 5.5 by David Lozier ©2003 :. 
Distributed by ThreadsDev.net

Visit Our Sister Sites!
JoshuaPettit.com and ThreadsAddons.com
Web Hosting Provided by
VertexHost Web Hosting

Generated in 0.491 seconds in which 0.368 seconds were spent on a total of 27 queries. Zlib compression enabled.


Whiplash Claims - Friendship Bracelets - Jewellery - Whiplash