NoScripts forbirds to use link to static HTML as it XSS

Bug reports and enhancement requests

NoScripts forbirds to use link to static HTML as it XSS

Postby cy6erGn0m » Mon Jun 27, 2011 9:20 pm

I tried to make link to http://download.oracle.com/javase/6/doc ... ring%28%29 This link just has reference to anchor. Unfortunately NoScript blocks this link as it XSS-attack. I guess Java Official documentation is popular and it's very strange that I can't link to it at all.

This behavior has been introduced recently.
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Mandriva Linux/1.9.2.18-0.1mdv2010.2 (2010.2) Firefox/3.6.18
cy6erGn0m
 
Posts: 3
Joined: Mon Jun 27, 2011 9:16 pm

Re: NoScripts forbirds to use link to static HTML as it XSS

Postby Giorgio Maone » Mon Jun 27, 2011 9:33 pm

cy6erGn0m wrote:This behavior has been introduced recently.

No, it hasn't. http://download.oracle.com/javase/6/doc ... lone%28%29 works as expected.
toString() is blacklisted because, as JavaScript, it can be used to evaluate code dynamically under some circumstance.
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
Giorgio Maone
Site Admin
 
Posts: 6830
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy

Re: NoScripts forbirds to use link to static HTML as it XSS

Postby cy6erGn0m » Tue Jun 28, 2011 7:20 am

I dont' know why, but it's blocked for me by default. Also, "toString()" is just a anchor name. I never heard somebody executes javascript from URL (HTTP URL, not javascript:) so it's strange that toString is blocked in such context.
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Mandriva Linux/1.9.2.18-0.1mdv2010.2 (2010.2) Firefox/3.6.18
cy6erGn0m
 
Posts: 3
Joined: Mon Jun 27, 2011 9:16 pm

Re: NoScripts forbirds to use link to static HTML as it XSS

Postby Giorgio Maone » Tue Jun 28, 2011 9:10 am

cy6erGn0m wrote:I dont' know why, but it's blocked for me by default.

Do you mean "clone()" is blocked as well for you? Did you actually check my link?

cy6erGn0m wrote: Also, "toString()" is just a anchor name. I never heard somebody executes javascript from URL (HTTP URL, not javascript:) so it's strange that toString is blocked in such context.

You don't know how many sites carelessly output their URL (or part of) in any context, causing them to be interpreted as JavaScript.
It's called "reflective XSS".
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
User avatar
Giorgio Maone
Site Admin
 
Posts: 6830
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy

Re: NoScripts forbirds to use link to static HTML as it XSS

Postby cy6erGn0m » Tue Jun 28, 2011 7:27 pm

No, with "clone" it works as expected. But why the only "toString" is blocked?
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Mandriva Linux/1.9.2.18-0.1mdv2010.2 (2010.2) Firefox/3.6.18
cy6erGn0m
 
Posts: 3
Joined: Mon Jun 27, 2011 9:16 pm


Return to NoScript Development

Who is online

Users browsing this forum: No registered users and 7 guests