Active Members Fi8sVrs Posted October 13, 2013 Active Members Report Posted October 13, 2013 Google Translate suffers from an open redirection vulnerability.SummaryThe issue being described below affects google translate and is notexactly an open redirect. However the results can be the same undercertain conditions.The following issue can be used as an open redirect when: Potential victim must not block javascripts from being executed inhis/her browser. Potential victim’s browser must not warn him/her about redirections. Potential victim’s browser must allow breaking out of iframes.E.x visit the following link with firefox:http://translate.google.com/translate?u=http://www.solvix.gr/accomplished.htmlDetailsWhen you want to translate a webpage you can visithttp://translate.google.com/translate?u=yoursite where “yoursite” is thewebpage you want to translate. Of course you can add and otherparameters like “sl=” and ”tl=” if you want to specify the sourcelanguage and the language you want your site to be translated to. Butlets keep it simple.If you try to create a redirect, the redirection will happen insidegoogle’s frame. For example the following url:http://translate.google.com/translate?u=http://www.solvix.gr/notaccomplished.htmlnotaccomplished.html has the following code:<script type=”text/javascript”>{window.location.assign(“http://www.solvix.gr/notaccomplished2.html”)}</script>will redirect you from http://www.solvix.gr/notaccomplished.html tohttp://www.solvix.gr/notaccomplished2.htmlBut you are still inside google’s frame.But what will happen if you just try to get yourself out of google’s frame?Hmmm then you just get yourself out of google’s frame. That simple.Check the following url:http://translate.google.com/translate?u=http://www.solvix.gr/accomplished.htmlYou will be redirected in my new blog, without any warning.accomplished.html has the following code<script language=’Javascript’>if (top.location!= self.location) {top.location = self.location.href}</script><script>{window.location.assign(“http://www.solvix.gr”)}</script>ConclusionThis issue is caused because google translate allows the execution ofjavascript from the remote site. However, this is not an XSS. Javascriptis not executed on google’s domain.Some browsers do not allow you to break the iframe (at least not with mycode above) while others warn you about the redirection. However some ofthe most common browsers like firefox and Internet Explorer 8 will beaffected.————————————————————————————————————————————————Tested and working on:Firefox 24.0Firefox 23.0.1I.E 8.0.6001Opera 12.16 (Opera warns about the redirection but you can still escapefrom the frames. Check the following url:http://translate.google.com/translate?u=http://www.solvix.gr/or8.html )Not working:Konqueror Version 4.10.5 Using KDE Development Platform 4.10.5(https://bugs.kde.org/show_bug.cgi?id=57038)I.E 10Google Chrome 30.0.1599.69 mGoogle Chrome Version 31.0.1650.12 beta (browser warns about theredirection)————————————————————————————————————————————————++++++++++++++++++++++++++++++++++++++++++++++++++++++++Source Quote