![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
So, in another thread it was mentioned that the current fix may get the job done, its also filtering out good data. There must be some proper solution to handle incoming comment data securely. I thought I would start a discussion in regards to finding an alternate fix to the problem then the one currently available.
The problem: Users input data into comments that is executed and causes trouble. Solution ideas: Escape incoming data so that it cannot execute? Allow only alphanumeric comment data and write the SQL statements so that they cannot be broken out? I will be the first to admit I am not a professional coder, although I do write a lot of code myself. I haven't taken a long look at how the comments are currently handled, but plan to. Lets pool some ideas and help MrZeroPage come up with a more solid fix! No members have liked this post.
|
| Comments |
|
#2
|
||||
|
||||
|
I do a few things.
First off, I almost ALWAYS use sprintf(). It's pretty awesome.
Bam, you'll always get an integer. Also, query looks hella prettier. :3 Two, why not use vBulletin's built-in cleaning functions on data? That would solve a lot of it, wouldn't it? Mind you, I'm a complete newbie to the scripting of this modification in particular, but I have successfully programmed a bunch of homebrewed mods for my own. I just want a disclaimer here that I could be completely off-base. X3 No members have liked this post.
|
||||
|
#3
|
||||||||
|
||||||||
|
Starting with 2.7.1+
To fix that exploit was to edit one line..
change to
Originally Posted by BirdOPrey5
__________________
vb ibProArcade: Download Game, Game Challenge, Report Game Systems.Plus more can be found here: next-level-arcade.com No members have liked this post.
|
||||||||
|
#4
|
||||
|
||||
|
See? Perfect example of where sprintf() would be put to awesome use.
Just use %d in your query and you're good to go.No members have liked this post.
|
|
#5
|
||||
|
||||
|
Wait, so it wasn't the comments that were causing the problem, but the S_ID? My board personally was not hit by this exploit, so I did not have the details.
![]() No members have liked this post.
|
|
#6
|
|||
|
|||
|
I have a feeling that the code Stangger has posted was the fix for the exploit that was fixed in 2.7.1, rather than 2.7.2.
No members have liked this post.
|
|
#7
|
||||
|
||||
|
I didnt know anything about a exploit with 2.7.2..
__________________
vb ibProArcade: Download Game, Game Challenge, Report Game Systems.Plus more can be found here: next-level-arcade.com No members have liked this post.
|
|
#8
|
|||
|
|||
|
No I meant FIXED in 2.7.2.
No members have liked this post.
|
|
#9
|
||||
|
||||
|
the only thing needed is what stangger posted above..
--------------- Added 29 Feb 2012 at 20:48 ---------------
Originally Posted by Mark.B
I didnt know anything about a exploit with 2.7.2.. either
![]()
__________________
ibProArcade-Support-Forum in the Premium-Modification-Section
No members have liked this post.
Last edited by Hippy : 29 Feb 2012 at 20:55. |
|
#10
|
||||
|
||||
|
__________________
vb ibProArcade: Download Game, Game Challenge, Report Game Systems.Plus more can be found here: next-level-arcade.com No members have liked this post.
|
|
#11
|
|||
|
|||
|
But the code Stangger has posted is NOT what changed in 2.7.2.
No members have liked this post.
|
|
#12
|
||||
|
||||
|
stangger5 knows this mod better than anyone here.. so trust what he says ...
he has tested this out for the last few days...
__________________
ibProArcade-Support-Forum in the Premium-Modification-Section
No members have liked this post.
|
|
#13
|
||||||||||||
|
||||||||||||
|
MrZ changed this:
2.7.1
to this: 2.7.2
I have this:
MrZ`s code is tring to clean the int data . I`m no guru like MrZ... ![]() --------------- Added 29 Feb 2012 at 22:29 --------------- To get this thread back on track,,here is a very good read for the ones wanting to learn some of the vBulletin Input Cleaner.. Using the vBulletin Input Cleaner
__________________
vb ibProArcade: Download Game, Game Challenge, Report Game Systems.Plus more can be found here: next-level-arcade.com No members have liked this post.
Last edited by stangger5 : 29 Feb 2012 at 22:29. |
||||||||||||
|
#14
|
||||
|
||||
|
I guess my question was just if the other part that was added is needed, the looping replace function that removes SQL words from comments (but also removes good data). It is near the bottom of the 2.7.2 arcade.php ... needed or just playing it safe?
No members have liked this post.
|
|
#15
|
||||
|
||||
|
I think,,its playing it safe...Which is not a bad thing these days...
I`m looking into using the vBulletin Input Cleaner instead of the ibp_cleansql..
__________________
vb ibProArcade: Download Game, Game Challenge, Report Game Systems.Plus more can be found here: next-level-arcade.com No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fix overlapping blog comments images | shahz | vBulletin 4.x Template Modifications | 2 | 04 Nov 2010 03:17 |
| Image with Alternate Text BB Code | mikkitine | vBulletin 3.7 Add-ons | 7 | 02 Jul 2008 01:29 |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 01:59.


vb ibProArcade: Download Game, Game Challenge, Report Game Systems.
Just use %d in your query and you're good to go.



