UBB.Dev
Posted By: BassTeQ Javascript [IMG] tag exploit - 03/19/2002 2:44 AM
Im going to work on developing a block for the use of javascript between img tags. With the exploit now becoming more widely known I think its time to write a fix.
I know a fix is being developed for version 6.x boards but the version 5 users arent that lucky frown

What Id like some help on is collecting word to filter in a msg post.
Obviously things like :
Javascript
document.onload
document.cokie
Get cookie
etc ....

any others ???

Thanks
Posted By: joking-down Re: Javascript [IMG] tag exploit - 03/19/2002 9:08 AM
i use this filter for the IMG-Tag in my privatforums. in all other forums is no IMG allow:
[code][/code]what happen when the user post [img ]somescript.js[/ img ]? [Linked Image]
Posted By: LK Re: Javascript [IMG] tag exploit - 03/19/2002 9:15 AM
(correct me if I'm wrong) 5.xx users don't have cookies except for private forums, so you don't have to be afraid. And private forums cookies == temporary, so just don't enter any thread in the same IE after you enter private forums.
Posted By: BassTeQ Re: Javascript [IMG] tag exploit - 03/19/2002 11:50 PM
Hi LK, I'll think you'll find 5.XX has cookies, Username and Password respectively. As it does store these fileds so when you post/reply they are automatically populated, therefore that information is coming from somewhere,has to be a cookie.

Cheers
Posted By: LK Re: Javascript [IMG] tag exploit - 03/20/2002 8:42 AM
I should never enter this forum again wink
Posted By: BassTeQ Re: Javascript [IMG] tag exploit - 03/20/2002 11:54 PM
Nahh no need to be like that!
We all make mistakes!
Posted By: Onkel_Tom Re: Javascript [IMG] tag exploit - 06/05/2002 10:43 PM
something new about this Chapter ?

I got some attacks with IMG-Code on my Forum and searching for a hotfix wink
Posted By: BassTeQ Re: Javascript [IMG] tag exploit - 06/06/2002 1:28 AM
What version are you running, Ive only tested my fix on version 5.47d

I can post fix details here if you like.

Regards
BassTeQ
Posted By: LK Re: Javascript [IMG] tag exploit - 06/08/2002 11:30 AM
Bass, you can't fix it by adding many stuff to block list, it's much more complicated. You'll have to make sure img and url tags don't include ", don't begin with javascript, etc, without forgetting that "javascript" can be written with &#stuff
Posted By: joking-down Re: Javascript [IMG] tag exploit - 06/09/2002 12:46 AM
an other filter is:
Code
[/code]add the code before this code in "ubb_library.pl":
[code]
you can change the text This call of the UBB code [ IMG ] is not permitted... without problems... tipsy
Posted By: BassTeQ Re: Javascript [IMG] tag exploit - 06/11/2002 7:28 AM
Hi, if i test your example with this code below it doesnt seem to print the message that its Not permitted.

Code
[/code]If however I pass it a proper IMG path then all works ok

[code]
Any ideas?
© UBB.Developers