php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#284849 - 04/20/05 12:33 PM Finished-[6.3-6.4-6.5] Input validation mod (Security fix) 1.1.1
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Mod Name / Version: Input validation mod (Security fix) 1.1.1 <br /> <br />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. <br /> <br />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). <br /> <br />Both types of attacks can used to compromise your boards. Either to damage it or to gain unauthorized access. <br /> <br />During a security audit of ubb.threads, I found more than 10 vulnerabilities. <br /> <br />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. <br /> <br />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). <br /> <br />If the modification detects a possible attack an error message is displayed and the attack is logged to a logfile. <br /> <br />Working Under: UBB.Threads 6.3-6.4-6.5 <br /> <br />Mod Status: Finished <br /> <br />Any pre-requisites: <br /> <br />Author(s): Astaran <br /> <br />Date: 04/20/05 <br /> <br />Credits: <br /> <br />Files Altered: ubbt.inc.php <br /> <br />New Files: Validate.php <br /> <br />Database Altered: no <br /> <br />Info/Instructions: Note that there are three versions of this modification (depending on the ubb.threads version you're using). <br /> <br />Just follow the instructions in instructions.txt. <br /> <br />More experienced users can enhance this class to also validate variables that are used in installed hacks/modifications. See the readme.txt for details. <br /> <br />Disclaimer: Please backup every file that you intend to modify. <br /> <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br /> <br />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.


Attachments
127242-InputValidation1.1.1.zip (152 downloads)



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

Top
#284850 - 04/20/05 12:35 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: -Fusion-]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Thanx Astaran!
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#284851 - 04/20/05 01:22 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: 234234]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Thanks Astaran! Glad to know this is being taken seriously over here.

Top
#284852 - 04/20/05 11:00 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Intel -*RW*-]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25366
Loc: Texas
<img src="http://www.ubbdev.com/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#284853 - 04/21/05 12:57 AM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: -Fusion-]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
Excellent!
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#284854 - 04/26/05 05:15 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: -Fusion-]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25366
Loc: Texas
Any word on an 'official' fix (6.5.2) from IP yet?
_________________________
- Allen wavey
- What Drives You?

Top
#284855 - 04/29/05 08:46 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: SurfMinister]
ksanuk Offline
Member

Registered: 02/06/02
Posts: 297
Loc: Bangkok, Thailand
Hi,<br /><br />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)?<br /><br />Sanuk!

Top
#284856 - 04/29/05 08:51 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: -Fusion-]
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
* 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.

Top
#284857 - 04/30/05 12:56 AM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: SurfMinister]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
[]AllenAyres said: <br />Any word on an 'official' fix (6.5.2) from IP yet? [/] <br /> <br />Beta testers are currently testing 6.5.2b1, which addresses many security issues.
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#284858 - 05/02/05 05:46 AM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Deyth_Combine]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
[]ksanuk said: <br />Hi, <br /> <br />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)? <br /> <br />Sanuk! [/] <br />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. <br />Install it, but run it with <br />define('ABORT_ON_ERROR',false); <br /> 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. <br /> <br />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

Top
#284859 - 05/02/05 05:47 AM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: Webstrong]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
[]Calpy said:<br />* 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. [/]<br /><br />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

Top
#284860 - 05/02/05 03:25 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: -Fusion-]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
Hi,<br />great script. i tried it with 6.5.1 and got an alert from the Google-Bot:<br /><br /> [] 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.<br /> [/] <br /><br />Is there anything I can do to accept this request?<br /><br />My second question is:<br />How can you limit the logfile that it only shows errors and not everything.<br />The log is increasing 10KB per minute! right now.<br />I better switch logging off for a while.<br />Greetings<br />carl
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#284861 - 05/02/05 08:03 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: eslmix]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25366
Loc: Texas
[]DLWebmaestro said:<br />[]AllenAyres said:<br />Any word on an 'official' fix (6.5.2) from IP yet? [/]<br /><br />Beta testers are currently testing 6.5.2b1, which addresses many security issues. [/]<br /><br />oh really, odd how the .threads beta testers know nothing of that <img src="http://www.ubbdev.com/forum/images/graemlins/smash.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#284862 - 05/02/05 08:31 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: SurfMinister]
DLWebmaestro Offline
Member

Registered: 08/08/00
Posts: 1753
Loc: California, MD
Yes, really. <br /> <br />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.
_________________________
Webmaster
Drumlines.org

Drumlines.org UBBThreads

Top
#284863 - 05/02/05 09:07 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: -Fusion-]
ksanuk Offline
Member

Registered: 02/06/02
Posts: 297
Loc: Bangkok, Thailand
Hi,<br /><br />"If you're not able to modify it yourself, send over the logfile and I'll have a look at it. "<br /><br />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.<br /><br />Sanuk!

Top
#284864 - 05/03/05 11:13 AM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: rodrigo1]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
[]caymuc said:<br />Hi,<br />great script. i tried it with 6.5.1 and got an alert from the Google-Bot:<br />...<br /><br />Is there anything I can do to accept this request?<br /><br />My second question is:<br />How can you limit the logfile that it only shows errors and not everything.<br />The log is increasing 10KB per minute! right now.<br />I better switch logging off for a while.<br />Greetings<br />carl [/]<br />I'll release a new version on thursday, that will address both of it.<br />Isn't possible in the current version.<br />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

Top
#284865 - 05/05/05 05:13 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: -Fusion-]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
I updated the with a new version.<br /><br />Changes in version 1.1.0:<br /><br />- added a version for ubb.threads 6.4.x<br />- fixed several small bugs in the validation routines and added some new parameters<br />- changed the login so that only errors and unknown variables are logged by default<br />- 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)<br />- error message is a lot nicer now and includes some extra information<br />- explained the configuration options in instructions.txt
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#284866 - 05/06/05 05:57 AM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: -Fusion-]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Upgrade instructions if you already have version 1.0 running:<br /><br />1. Extract the zip file and open the Validate.php that fits to your ubb.threads version.<br /><br />2. Adjust the path to the logfile like you did during the inital installation<br /><br />3. Optionally change the settings (see instructions.txt for a list of configuration options)<br /><br />4. Upload the new Validate.php to your server<br /><br />You don't need to alter ubbt.inc.php during the upgrade.<br />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

Top
#284867 - 05/06/05 05:55 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: -Fusion-]
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
humm. Any idea why now everything on my page is comming up blank? http://www.schoolscandals.com

Top
#284868 - 05/06/05 06:54 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: TestPappy]
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
Fixed it I think. <br /> <br />I had 7 occurences of "return $thisvar; <br />so i just left out the last one. <br /> <br />edit: how can I test the log? Make sure I got everything right.


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

Top
#284869 - 05/07/05 04:50 AM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: TestPappy]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
Thank you very much for the update and the fix.<br />I will now switch it on and see what happens. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />Greetings<br />carl
_________________________
Carl
Colour-Ize-Forums (test entry: user: 'test' pw: 'test2')

Top
#284870 - 05/07/05 11:11 AM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: rodrigo1]
SchoolScandals Offline
Journeyman

Registered: 07/27/02
Posts: 138
I use the age verification for users prior to signing up and every time a user tries to sign up:<br /><br />Script "/final/newuser.php" has been called with an invalid parameter.<br />Parameter named "ssubbt_dob" with a value of "11/18/1989" contained invalid characters. Valid type is: alphanum.<br /><br /><br />Is there a way to avoid this specific one? or should I change the code to input the DoB as 19811118 or something like that?

Top
#284871 - 05/07/05 12:23 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: TestPappy]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Open ubbt.inc.php and replace<br />$validate->addKnownParam($config['cookieprefix'] . "ubbt_dob",'alphanum');<br /><br />with<br />$validate->addKnownParam($config['cookieprefix'] . "ubbt_dob",'text');
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#284872 - 05/07/05 04:04 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: -Fusion-]
caymuc Offline
Enthusiast

Registered: 01/17/01
Posts: 449
Hi, <br />I still get this: <br /> <br />ERROR: Script "/Cat/0/Number/35279/page/vc/1" has been called with an invalid parameter. <br />ERROR: parameter named "page" with a value of "vc" contained invalid characters. Valid type is: num. <br /> <br />-and- <br /> <br />ERROR: Script "/Cat/0/Number/31920/page/fpart/5/vc/1" has been called with an invalid parameter. <br />ERROR: parameter named "page" with a value of "fpart" contained invalid characters. Valid type is: num. <br /> <br />ERROR: User agent was: Googlebot/2.1 (+http://www.google.com/bot.html) <br />ERROR: Full URI was: /showthreaded.php/Cat/0/Number/35279/page/vc/1 <br /> <br /> <br />So cat is not 'num' if "Googlebotfriendly" is activated in the Board prefs? <br />(Or do I have a problem in the database?) <br /> <br />And what is to do with "unknown formats? <br /> <br />INFO: UNKNOWN PARAMETER FOUND: U_Language. Value was: english <br />INFO: Full URI was: /FORUM/php/forum/adduser.php <br />INFO: UNKNOWN PARAMETER FOUND: U_AcceptPriv. Value was: yes <br />INFO: Full URI was: /FORUM/php/forum/adduser.php <br />INFO: UNKNOWN PARAMETER FOUND: U_TimeFormat. Value was: short4 <br />INFO: Full URI was: /FORUM/php/forum/adduser.php <br /> <br /> <br />Greetings <br />Carl


Edited by caymuc (05/07/05 04:21 PM)

Top
#284873 - 05/10/05 03:51 AM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: rodrigo1]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
[]So cat is not 'num' if "Googlebotfriendly" is activated in the Board prefs?<br />(Or do I have a problem in the database?) [/]<br />Well that's a problem of ubbthreads an not a problem of this modification. The function that translates the search engine friendly urls back into variables is a very simple one.<br />It takes the url and takes all "subdirectories" as key/pair values.<br />So long story short: If your url is invalid, the translation into variables will fail which causes a security alert.<br /><br />Invalid url: /Cat/0/Number/35279/page/vc/1<br />Valid url: /Cat/0/Number/35279/page/0/vc/1<br /><br />[]<br />And what is to do with "unknown formats? <br />[/]<br />See the readme.txt for details, but basically you can add them in ubbt.inc.php with:<br /><br />$validate->addKnownParam('U_Language','text');<br />$validate->addKnownParam('U_AcceptPriv','text');<br />$validate->addKnownParam('U_TimeFormat','text');
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#284874 - 05/11/05 05:20 PM Re: Finished-[6.3-6.5] Input validation mod (Security fix) [Re: -Fusion-]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Updated the attachment with version 1.1.1.<br />It contains several "new" variables and fixes some to strict checks.<br />Everybody should update to this version to avoid false alerts.<br /><br />To upgrade simply adjust the configuration directives in Validation.php and replace the version on your server.
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#284875 - 06/07/05 08:54 AM Re: Finished-[6.3-6.4-6.5] Input validation mod (Security fix) 1.1.1 [Re: -Fusion-]
krejt Offline
Lurker

Registered: 01/27/01
Posts: 9
I use UBBT 6.5. In the instructions for 6.5 you say that there are 6 occurences of "return $thisvar;". I have two additional occurences of "return $thisvar;" in the if ($type == "session") block. This matches with your 6.3 and 6.4 instructions. <br /><br />Did you make a typo?<br /><br />Tjerk.

Top
#284876 - 06/07/05 09:53 AM Re: Finished-[6.3-6.4-6.5] Input validation mod (Security fix) 1.1.1 [Re: tw08]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
The instructions are made for 6.5.1, didn't notice that the code differs in 6.5.<br /><br />So just use the instructions for 6.4:<br /><br />There are 8 occurences of "return $thisvar;".<br />Place the following line before the occurences 1 to 6.<br />So skip the last two located in the "if ($type == "session") {" block.<br /><br />Will update that for the next release. Thx for your hint.
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#284877 - 06/07/05 07:49 PM Re: Finished-[6.3-6.4-6.5] Input validation mod (Security fix) 1.1.1 [Re: -Fusion-]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
I noticed the same thing. I added the line before all 7 occurences I could find and the site went blank. Commented out the last one (after the first six) and it worked.
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#284878 - 06/08/05 12:43 PM Re: Finished-[6.3-6.4-6.5] Input validation mod (Security fix) 1.1.1 [Re: -Fusion-]
krejt Offline
Lurker

Registered: 01/27/01
Posts: 9
May I suggest you move the info about the CONFIGURATION OPTIONS in the end of the instructions.txt file to the instructions right above the options in the Validate.php, and weed out obvious differences like LOG_UNKNOWN_VARS versus LOG_UNKNOWN_PARAMS and ALLOW_UNKNOWN_VARS versus ALLOW_UNKNOWN_PARAMS etc? Also the info about the default settings is not correct everywhere. <br /> <br />Also, in the info about the LOG_UNKNOWN_PARAMS you refer to setting "this to one", where you seem to mean 'true' <img src="http://www.ubbdev.com/forum/images/graemlins/grin.gif" alt="" /> <br /> <br />Apart from that, nice mod! <br /> <br />Tjerk. <br /> <br />Edit: and maybe rename Validate.php to validate.php?


Edited by krejt (06/09/05 03:00 AM)

Top
#284879 - 06/27/05 01:56 AM Re: Finished-[6.3-6.4-6.5] Input validation mod (Security fix) 1.1.1 [Re: -Fusion-]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 806
Loc: Berlin, Germany
in your instructions you wrote: <br /> <br />1. Open Validate.php and set the path to the logfile (Line 57). This file must be writeable by the webserver. You can adjust the settings at the top (defined in constants). Standard settings should be fine in most cases. <br /> <br />should this be a path to directory only or a path with filename ? <br /> <br />/edit: it must include a filename <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> <br /> <br />You wrote something about the Googlebot and fix it in 1.1.1 <br />In my log I see the Yahho Slurp like this: <br /> <br />ERROR: SECURITY ALERT: POSSIBLE XSS ATTACK DETECTED! <br />ERROR: Script "/ubbthreads/showthreaded.php" has been called with an invalid parameter. <br />ERROR: parameter named "page" with a value of "vc" contained invalid characters. Valid type is: num. <br />ERROR: Script has been called from: 68.142.250.13 <br />ERROR: User agent was: Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp) <br />ERROR: Referer was: <br />ERROR: Full URI was: /ubbthreads/showthreaded.php?Number=108450&page=vc <br />ERROR: END OF SECURITY ALERT. <br /> <br />I m not sure how to handle your script and like to ask for your assist. <br /> <br />While do some tests I get: <br /> <br />INFO: UNKNOWN PARAMETER FOUND: sub. Value was: browser_misc <br />INFO: Script "/ubbthreads/feeds/rss.php" has been called with an unknown parameter./ubbthreads/feeds/rss.php?func=board&sub=browser_misc <br />INFO: Full URI was: /ubbthreads/feeds/rss.php?func=board&sub=browser_misc <br />INFO: Script has been called from: 80.136.191.134 <br />INFO: Referer was: <br />INFO: User agent was: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; de) Opera 8.0


Edited by Zarzal (06/27/05 03:42 AM)
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#284880 - 06/27/05 10:11 AM Re: Finished-[6.3-6.4-6.5] Input validation mod (Security fix) 1.1.1 [Re: landyphil]
dont Offline
Lurker

Registered: 12/07/02
Posts: 5
Will any of these work with 6.1.1?

Top
#284881 - 06/29/05 05:59 AM Re: Finished-[6.3-6.4-6.5] Input validation mod (Security fix) 1.1.1 [Re: landyphil]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
I'll upload a new version of this mod with some clearer instructions this weekend.<br /><br />Regarding the google/yahoo bot:<br /><br />"/ubbthreads/showthreaded.php?Number=108450&page=vc"<br />is an url with invalid parameters.<br />It should be<br />"/ubbthreads/showthreaded.php?Number=108450&page=&vc"<br /><br />Note the additional &.<br />So the securiy alert is correct. This will not be changed, as this is the desired behaviour. The page parameter should be an integer value.<br />In your case, it has the value "vc" which is not allowed.<br /><br />Apart from that, you can change the behaviour by modifing the known_params array in Validate.php.<br />Search for "page => 'int' and replace it with "page => 'alphanum'.<br />But beware, that this may lead into a security problems.<br /><br /><br />Regarding the unknown parameter<br />"UNKNOWN PARAMETER FOUND: sub. Value was: browser_misc"<br />The script /ubbthreads/feeds/rss.php isn't a standard ubbthreads script, is it?<br /><br />You can manually add new params to the validation script. Have a look at the readme.txt for further instructions on how to do this.
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#284882 - 06/29/05 06:00 AM Re: Finished-[6.3-6.4-6.5] Input validation mod (Security fix) 1.1.1 [Re: jndas]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
[]dont said:<br />Will any of these work with 6.1.1? [/]<br /><br />I haven't tested this mod with 6.1.1, because neither I or any of my clients are still using that version.<br />You could try to use the instructions for 6.3.2, but I can't promise that it will work.
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#284883 - 07/10/05 12:41 PM Re: Finished-[6.3-6.4-6.5] Input validation mod (Security fix) 1.1.1 [Re: -Fusion-]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 806
Loc: Berlin, Germany
If I try to rename a forum in the control panel I get this error:<br /><br />Warning: preg_match() expects parameter 2 to be string, array given in /home/.../ubbthreads/Validate.php on line 320<br /><br />Warning: htmlentities() expects parameter 1 to be string, array given in /home/.../ubbthreads/Validate.php on line 301<br /><br />We cannot proceed.<br />This page has been called with an invalid option.<br />The execution has been aborted for security reasons.<br /><br />Further information:<br /><br />Name of option: forum<br />Value of option:<br />Expected data type: alphanum<br />Name of the script: /ubbthreads/admin/doforummanage.php<br />Current time: 10.07.2005 19:38<br /><br />Please contact us if you think that all options are correct. You might have found a bug in our software.<br /><br />Please use your back button to return to the previous page.
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#284884 - 07/17/05 03:14 AM Re: Finished-[6.3-6.4-6.5] Input validation mod (Security fix) 1.1.1 [Re: landyphil]
Astaran Offline
Addict

Registered: 12/21/00
Posts: 1545
Loc: Germany
Can you put a php script on your server and just do this in it:<br /><br />echo $_SERVER["PATH_TRANSLATED"];<br /><br />Seems that this variable isn't filled correctly in your environment. Or send a link to your phpinfo site via pm/mail.
_________________________
Running a community? -> Keep informed and take it to the next level

Top
#284885 - 01/17/06 12:43 AM Re: Finished-[6.3-6.4-6.5] Input validation mod (S [Re: landyphil]
peterhd Offline
Newbie

Registered: 05/11/99