Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Re:_link_ and _layer_ (1 viewing) (1) Guest
TOPIC: Re:_link_ and _layer_
#28015
Re:_link_ and _layer_ 1 Year, 2 Months ago  
1000 thanks, to all, for this topic!!
zottaro (User)
Junior Boarder
Posts: 23
graphgraph
User Offline Click here to see the profile of this user
Gender: Male carlogazzetta carlo_gazzetta@msn.com Location: Pisa Birthdate: 1972-10-28
Logged Logged
 
 
#28017
Re:_link_ and _layer_ 1 Year, 2 Months ago  
Is there any chance someone could attach a file with the changes...I'm slightly confused as there seems to be multiple workaroundS (plural) so I've kinda been sitting here waiting for the dust to clear and an agreed fix to show up.....but if there's just one example file, that would be great.

Cheers,

Phil
Philip Roy (User)
Junior Boarder
Posts: 40
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
NZMac.com - Supporting the New Zealand Mac Community
www.nzmac.com
 
 
#28025
Re:_link_ and _layer_ 1 Year, 2 Months ago  
The suggested fixes are all the same - just slight variations of your choosing to suit your desired balance of appearance versus security.

The fix ranges from the deletion of entire line of code (line 651 in the 1.0.3 stable version) or selected words.

I deleted the words 'script' and 'link'.

The line (unaltered) looks like this:
[code:1]$ra1 = Array('javascript', 'vbscript', 'expression', 'applet', 'meta', 'xml', 'blink', 'link', 'style', 'script', 'embed', 'object', 'iframe', 'frame', 'frameset', 'ilayer', 'layer', 'bgsound', 'title', 'base');[/code:1]

(and I should probably now remove my signature ;))
bpresent (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Location: AU
Logged Logged
 
Last Edit: 2007/10/17 15:22 By bpresent.
 
 
 
#29121
Re:_link_ and _layer_ 1 Year, 2 Months ago  
I'm wondering why don't escape the output text with htmlentities()?

Doesn't that avoid XSS at 100%?

I think it is safer than the current solution on fireboard. I did it on my forum and it works great! And also it fixes other issue when a post wrings ampersand+lang like this "&lang=es"?
guilleva (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
 
#29139
Re:_link_ and _layer_ 1 Year, 2 Months ago  
Can you be more specific please - what code did you use?
bpresent (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Location: AU
Logged Logged
 
 
 
#29141
Re:_link_ and _layer_ 1 Year, 2 Months ago  
On file components/com_fireboard/template/default/smile.class.php

Replace:

[code:1]$fb_message_txt = FBTools::fbRemoveXSS($fb_message_txt);[/code:1]

With:

[code:1]$fb_message_txt = htmlentities($fb_message_txt);[/code:1]

And delete the line:

[code:1]$after_replace = FBTools::fbRemoveXSS($after_replace, 1);[/code:1]

But my question is, why fireboard doesn't use htmlentities or strip_tags or htmlspecialchars to avoid this? Is there any reason why this should not be done?
guilleva (User)
Fresh Boarder
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/10/27 05:21 By guilleva.
 
 
 
#30474
Re:_link_ and _layer_ 1 Year, 2 Months ago  
thank god.
helo (User)
Junior Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/11/07 23:01 By helo.
 
 
#31310
Re:_link_ and _layer_ 1 Year, 1 Month ago  
guilleva wrote:
[quote]On file components/com_fireboard/template/default/smile.class.php

Replace:

[code:1]$fb_message_txt = FBTools::fbRemoveXSS($fb_message_txt);[/code:1]

With:

[code:1]$fb_message_txt = htmlentities($fb_message_txt);[/code:1]

And delete the line:

[code:1]$after_replace = FBTools::fbRemoveXSS($after_replace, 1);[/code:1]

But my question is, why fireboard doesn't use htmlentities or strip_tags or htmlspecialchars to avoid this? Is there any reason why this should not be done?[/quote]

[color=#008000]I've just done this change on my forum as I assume its safer than the other workaround? anyway, it seems to work fine for me, *but* it seems to do something to forum signatures. Instead of my signature displaying the "£" symbol it has changed to the html code instead "£".

Does anyone know how I can correct this?

Thanks[/color]
whiskymac (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
 
#31312
Re:_link_ and _layer_ 1 Year, 1 Month ago  
guilleva wrote:
[quote]On file components/com_fireboard/template/default/smile.class.php

Replace:

[code:1]$fb_message_txt = FBTools::fbRemoveXSS($fb_message_txt);[/code:1]

With:

[code:1]$fb_message_txt = htmlentities($fb_message_txt);[/code:1]

And delete the line:

[code:1]$after_replace = FBTools::fbRemoveXSS($after_replace, 1);[/code:1]

But my question is, why fireboard doesn't use htmlentities or strip_tags or htmlspecialchars to avoid this? Is there any reason why this should not be done?[/quote]



Are you really sure that htmlentites is never applied before to the message text ???? Isn't it the basics of XSS security ????
florut (User)
FB Translation Team
Senior Boarder
Posts: 195
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#31638
Re:_link_ and _layer_ 1 Year, 1 Month ago  
Any chance this topic could be FAQd or somehow stickied as it's quite a common problem.

Thanks
linker3000 (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
Go to top