XSS bug when accessing Google from WWWJDIC

Bug reports and enhancement requests
Post Reply
Bueller007
Posts: 2
Joined: Mon Aug 24, 2009 2:41 am

XSS bug when accessing Google from WWWJDIC

Post by Bueller007 »

Note: WWWJDIC is widely used Japanese-English dictionary made available by Monash University. You may need to have Japanese text support enabled in order to read this bug report properly.

If you search for the word "胸像" at http://www.csse.monash.edu.au/~jwb/cgi-bin/wwwjdic.cgi and then click on either the [G] or [GI] links (which perform Google and Google Image searches, respectively), you will see that NoScript says that it has "filtered a potential cross-site scripting (XSS) attempt from [http://www.csse.monash.edu.au]", and that it has "sanitized" the URLs, resulting in undesired Google hits for the word "胸" instead of the original search term "胸像"--NoScript has mistakenly removed the final character, "像".

The problem here is definitely with NoScript. This can be confirmed easily because the links work properly on Firefox when NoScript is disabled. The console messages are shown below.

Code: Select all

[NoScript XSS] Sanitized suspicious request. Original URL [http://www.google.com/search?q="胸像"&hl=en&lr=lang_ja& ie=euc-jp] requested from [http://www.csse.monash.edu.au/~jwb/cgi-bin/wwwjdic.cgi?1E]. Sanitized URL: [http://www.google.com/search?q= 胸 &hl=en&lr=lang_ja&ie=euc-jp#18723719206980682291].

[NoScript XSS] Sanitized suspicious request. Original URL [http://images.google.com/images?q="胸像"&hl=en&ie=euc-jp] requested from [http://www.csse.monash.edu.au/~jwb/cgi-bin/wwwjdic.cgi?1E]. Sanitized URL: [http://images.google.com/images?q= 胸 &hl=en&ie=euc-jp#9620423950367644196].
The [A] link to alc.co.jp is problematic in a different way. In this case, NoScript seems to delete the search term entirely.

Code: Select all

[NoScript XSS] Sanitized suspicious request. Original URL [http://eow.alc.co.jp/%B6%BB%C1%FC/EUC-JP/] requested from [http://www.csse.monash.edu.au/~jwb/cgi-bin/wwwjdic.cgi?1E]. Sanitized URL: [http://eow.alc.co.jp/#49875865245852047393].
The link to goo.ne.jp is also problematic in a different way. In this case, NoScript does not trigger a XSS warning/sanitation, but it still messes up the search term, replacing "胸像" with "胸<".

The [W] link to Japanese Wikipedia and the [JW] link to Japanese Wordnet work properly.

Note that none of these things are problems for other words in the dictionary. This is the only word of about ten that I checked that resulted in an XSS warning/sanitation. It seems to be specific to this word; even other words that begin with "胸" or end in "像" do not have this problem.
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: XSS bug when accessing Google from WWWJDIC

Post by dhouwn »

It's an encoding issue.

/edit: Deleted my half-nonsense.
Last edited by dhouwn on Mon Aug 24, 2009 2:59 pm, edited 2 times in total.
Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: XSS bug when accessing Google from WWWJDIC

Post by Giorgio Maone »

It's being fixed, however. Just wait for 1.9.8.7, to be released in hours.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: XSS bug when accessing Google from WWWJDIC

Post by Giorgio Maone »

Please check latest development build 1.9.8.61, which contains the fix.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)
Bueller007
Posts: 2
Joined: Mon Aug 24, 2009 2:41 am

Re: XSS bug when accessing Google from WWWJDIC

Post by Bueller007 »

Thanks. The [G], [GI] and [A] links are working properly now. The link (to goo.ne.jp) is still not working, but I think it's likely a bug in WWWJDIC. It doesn't work properly in Safari either.
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Post Reply