Article View: alt.privacy.anon-server
Article #18587SafeWeb "Paranoid" Sanitization kills JS bugs
From: Jon Chun
Date: Mon, 07 May 2001 23:23
Date: Mon, 07 May 2001 23:23
176 lines
10638 bytes
10638 bytes
FYI, The JavaScript code on the site referenced below is indeed "cooked" and in a form neither the author or we have ever seen real content sites use. In fact, a company/webmaster would usually have to go to some length to re-write all their links in such an unnatural and difficult to maintain fashion in an futile attempt to fool SafeWeb. To protect yourself against such potentially malicious websites simply click on the "Configure" button in the SafeWeb toolbar and check the "Paranoid" sanitization level. To verify SafeWeb defeats this "cooked" JavaScript please try the following: 1) Goto www.safeweb.com 2) Enter www.yahoo.com in the main input box and click the "Go!" button 3) The secure SafeWeb browser window will open up with our toolbar at the top. Click on the "Configure" button below the URL input box. 4) The Configuration window will pop-up, check the "Paranoid" box under the Sanitization level and then click "Update Options" 5) Now enter "www.nightsong.com/phr/safeweb-insecure.html" into the SafeWeb toolbar You'll now see that this "cooked" malicious JavaScript code is blocked by SafeWeb and you are protected from any invasive pop-up yahoo window (or 1x1 gif). The "Paranoid" Sanitization Level is not a default because such malicious websites are extremely rear while many more real websites may use the same potentially dangerous JavaScript command for legitimate reasons. Rather than potentially limit functionality of these real websites we've enabled you to selectively protect yourself against such theoretically malicious websites should they come into existence. Keep in mind, any website that did intentionally deploy such malicious "cooked" JavaScript would immediately stand-out and garner negative press for going to such extreme efforts for controversial anti-consumer and anti-privacy objectives. In a time when even companies like DoubleClick are backtracking on their previous privacy violations and appointing "Chief Privacy Officers", consumer rights groups are winning the ear of the media and even the government is hard at work on privacy legislation you're not likely to see any significant web property go to through such contortions and costs to invade your privacy with such "cooked" JavaScript. If this did come to pass, you can just block such malicious JavaScript now via our "Paranoid" Sanitization Level or SafeWeb could automatically switch on "Paranoid" sanitization for known offenders. In addition, SafeWeb can simply add code to trap such "cooked" code if the situation demands it as described below. (NOTE: The next two paragraphs have a more technical description for those who are interested in the details of how this "cooked" JavaScript works and how SafeWeb defeats it. Please ignore it if you're neither technical nor interested in such detail). This "cooked" JavaScript works by taking advantage of what SafeWeb calls "dangerous" JavaScript such as those commands with the ability to create self-modifying code including the "eval" statement used here. Such self-modifying code works by dynamically creating additional commands that are then executed. The danger here is that any sanitization program parsing self-modifying code will not, to a first approximation, know what the ultimate command created by self-modifying code is before execution making it difficult to determine malicious intent. In addition, the eval command is executed on the remote client PC within the web browser's embedded JavaScript interpreter engine which SafeWeb has no view into. To catch maliciously written self-modifying code one would have to basically create a full JavaScript interpreter on our proxy servers and test the execution there. However, because JavaScript, VBScript and most other web scripting languages are relatively straightforward and have few powerful, potentially malicious commands we can contain the potential problems much more simply. The simplest solution is to selectively block these few commands which could potentially be misused which is what "Paranoid" Sanitization does in SafeWeb. Most websites do not depend upon these few JavaScript commands so most web surfing is unaffected. Should websites begin to commonly deploy such malicious JavaScript (very unlikely), SafeWeb can further address this issue by extending our JavaScript sanitizer to only pass through self-modifying commands we can resolve and certify to be secure. This would leave the vast majority of the rich websites secure and functional via SafeWeb. (NOTE: End of Technical jargon) The overriding design goals of SafeWeb are to be "easy to use" and "effective". SafeWeb was founded because there was (and still is) no other security technology meeting both of these goals. There are very effective solutions like "PGP", "SSH", "Citrix Metaframe" and "Freedom" to solve various security and privacy issues but all are too complex and expensive for the vast majority of users who are non-technical which explains why none of them can be considered a standard for Internet privacy. We decided early on that this market for complex security applications was crowded with good products. In addition, most download applications such as Alexa, Freedom, Brodia, etc (although useful) have been marketplace failures, massively unprofitable, of questionable longivity, and do not meet the general needs of 95% of Internet users who even struggle with AOL. In addition, download applications have tremendous problems with cross platform programming, support and costs as well as incompatibilities with other applications, operating systems and even ISPs like AOL. Finally, download applications do not work on managed networks like corporate LANs or behind restrictive government firewalls where privacy and security are most in need. However, if a particular user does have the money, time, expertise and no technical incompatibilities/restrictions that allow these applications to be used they are effective no doubt. To be easy to use SafeWeb had to be a web-based security solution anyone could use anywhere, anytime without downloads, configuration, registration, login, etc. In looking at the many web-based privacy proxies we realized that none were really effective. Before SafeWeb became the world's largest privacy proxy shortly after our launch, the oldest and previously largest web-based security solution did then and still: (1) sends all web content unencrypted over the public Internet (paid and free version - SSH tunneling very costly, complicated, impractical and not a pure web solution), (2) can only sanitize simple static HTML breaking millions of rich websites like sony, mtv, hotmail, etrade and webvan (all versions), (3) partners with invasive advertisers like flycast, (4) can easily be blocked by firewalls and censorware (all version) and (5) blocks you from viewing many websites (free version). SafeWeb has solved all these shortcomings common among the "easy to use" web-based privacy solutions in order to create an "effective" security solution. In addition, with TriangleBoy SafeWeb is the only privacy service of any kind that cannot be blocked via traditional firewalls and other censorware. Within a few months from launch SafeWeb has quickly grown to be the world's largest online browsing privacy service mostly via a few good press articles, word of mouth and users voting with their browsers. Although no security technology is immune from such issues, we have not discovered nor had any actual security holes reported to us. To date, all such reports of potential security holes have turned out to be from users who do not know of all functionality of SafeWeb which we often embed behind the "Configure" button to protect non-technical users from overload. We are not overly arrogant or naive to think that such security holes will not eventually be discovered and always listen and respond in quickly to all such feedback like this one. If you do find what you think is a security hole or have other issues or comments regarding SafeWeb/TraingleBoy please contact us at feedback@safeweb.com. Regards, Jon Chun President & Co-founder SafeWeb On 06 May 2001 00:09:28 -0700, Paul Rubin <phr-n2001@nightsong.com> wrote: >Dave Howe <Spam.Blocker@bigfoot.com> writes: >> Well, that is easy for you to demonstrate - return to that site, load >> up the page, and save it as a Safeweb shortcut - then paste the url >> here so we can see it fail for ourselves. > >Try visiting http://www.nightsong.com/phr/safeweb-insecure.html. That >page contains some javascript to pop a window on www.yahoo.com, where >the javascript is cooked to bypass Safeweb's anonymization, so your IP >address will appear in Yahoo's logs. > >Of course I could have made the javascript generate an image tag >to a 1x1 pixel invisible gif on my site, instead of to Yahoo. >That means I'd have gotten your IP instead of Yahoo, and no window >would have popped. > >Safeweb does anonymize normal, straightforwardly written Javascript, >but someone writing javascript specifically to beat Safeweb >anonymization can get your address. I haven't noticed any sites doing >that, and I find Safeweb useful for providing low-grade privacy >despite its having some security holes. I would never think of it as >being in the same league as ZKS Freedom or anything like that.
Technical Details
Message-ID:
<3af72cfa.25210490@news.pacbell.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.mbox.zip!newsfeed.google.com!newsfeed.stanford.edu!pln-w!extra.newsguy.com!lotsanews.com!cyclone-sf.pbi.net!206.13.28.33!news.pacbell.net.POSTED!not-for-mailReferences:
<fe251fd9420f9a91080c169f69999f42@mix2.hyperreal.pl> <mon8ft8ruhpkga4ssi50se6tk66q74838h@4ax.com> <7xn18rt0lz.fsf@ruckus.brouhaha.com>Show Full Headers
Complete Article Headers
Message-ID: <3af72cfa.25210490@news.pacbell.net> Subject: SafeWeb "Paranoid" Sanitization kills JS bugs Date: Mon, 07 May 2001 23:23:40 GMT From: safeweb2@pacbell.net (Jon Chun) References: <fe251fd9420f9a91080c169f69999f42@mix2.hyperreal.pl> <mon8ft8ruhpkga4ssi50se6tk66q74838h@4ax.com> <7xn18rt0lz.fsf@ruckus.brouhaha.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.mbox.zip!newsfeed.google.com!newsfeed.stanford.edu!pln-w!extra.newsguy.com!lotsanews.com!cyclone-sf.pbi.net!206.13.28.33!news.pacbell.net.POSTED!not-for-mail Newsgroups: alt.privacy,alt.privacy.anon-server,alt.security.pgp Organization: Safeweb X-Newsreader: Forte Free Agent 1.21/32.243 Lines: 177 NNTP-Posting-Host: 64.166.141.106 X-Complaints-To: abuse@pacbell.net X-Trace: news.pacbell.net 989277962 64.166.141.106 (Mon, 07 May 2001 16:26:02 PDT) NNTP-Posting-Date: Mon, 07 May 2001 16:26:02 PDT