Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard Spread FireBoard!
Re:SOLVED! (Adding underscores)_link_ and _layer_ (1 viewing) (1) Guest
Go to bottom Favoured: 23
TOPIC: Re:SOLVED! (Adding underscores)_link_ and _layer_
#28015
Re:_link_ and _layer_ 1 Year, 1 Month 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
 
The administrator has disabled public write access.  
#28017
Re:_link_ and _layer_ 1 Year, 1 Month 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
 
The administrator has disabled public write access.  
#28025
Re:_link_ and _layer_ 1 Year, 1 Month 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.
 
 
The administrator has disabled public write access.  
#29121
Re:_link_ and _layer_ 1 Year 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
 
 
The administrator has disabled public write access.  
#29139
Re:_link_ and _layer_ 1 Year 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
 
 
The administrator has disabled public write access.  
#29141
Re:_link_ and _layer_ 1 Year 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.
 
 
The administrator has disabled public write access.  
#30474
Re:_link_ and _layer_ 1 Year 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.
 
The administrator has disabled public write access.  
#31310
Re:_link_ and _layer_ 1 Year 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
 
 
The administrator has disabled public write access.  
#31312
Re:_link_ and _layer_ 1 Year 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
 
The administrator has disabled public write access.  
#31638
Re:_link_ and _layer_ 1 Year 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
 
The administrator has disabled public write access.  
Go to top