🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #18589

Re: SafeWeb "Paranoid" Sanitization kills JS bugs

#18589
From: Dave Howe
Date: Tue, 08 May 2001 01:20
161 lines
10117 bytes
In our last episode (<alt.security.pgp>[Mon, 07 May 2001 23:23:40
GMT]), safeweb2@pacbell.net (Jon Chun) said :
Interesting - welcome to the group(s) Jon - I hope you hang around a
while so we can ask you things about safeweb ;)

>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.
I hate to point out that the webmaster might not even know - it could
be a webbanner include, from a doubleclick-style site.

>To protect yourself against such potentially malicious websites simply
>click on the "Configure" button in the SafeWeb toolbar and check the
>"Paranoid" sanitization level.  
which seems to work, yes - but unfortunately at the expense of some of
the other javascript-using sites I tried. I assume that is why it
isn't the default.

>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.
the problem then becomes identifying such sites.
Let us take a scenario using only the displayed functionality - a
DoubleClick style advertising company decides it desparately needs
marketing info on those who are safewebbing; to this end, it arranges
for the free web hosts to be requesting an entire html page from their
server (or SSI requesting a subset of html), rather than just a
graphic. on selected days then, it checks the inbound request, and for
sites that are in the Safeweb IP range, returns a cooked page that
opens one of the usual annoying popups, frameless and without any
controls other than the close. so many geocities-style sites use them,
users just close them automatically without even really looking at
them - but in this case, they have stepped outside of the nice safe
Safeweb sandbox. Provided the terms & conditions of the hosting
service permit it (a generic "hosting services xxx is funded entirely
by advertising revenue; while we do not track visitor IP addresses in
any way, we cannot guarantee that our advertisers do not;" followed by
and buried in enough of the usual "withdraw a site at any time" and
"illegal content not permitted" clauses that few people ever read will
give the host something to point and and wash their hands of the
situation) they will say they are exchanging webspace and bandwidth
for advertising "eyeballs" in an increasingly poor-paying market, and
are surprised/upset about this and will take it up with the company
immediately....

>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.  
no more than they would for gathering such info anyhow - if they feel
no guilt over grabbing and correlating such info in the first place,
then they are unlikely to feel added guilt over bypassing any
lockdowns the user may have put in place.

>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.  
It would almost have to be automatic - members of these groups are the
converted as far as privacy goes, but the average joe-on-the-street
will just assume Safeweb is transparently doing what it says it is -
sanatizing attempts to track him.

>In addition, SafeWeb can
>simply add code to trap such "cooked" code if the situation demands it
>as described below.
<snip>
I must admit to not having learned JS to this depth - is it really so
difficult to rewrite Eval(string) as Eval(Safeweb.checksafe(string))?
(note this not valid syntax, and I know it - it is just to give feel
for the required process) or would that be too slow for most uses? I
have the feeling it would be (imagining a site calculating a clock
with eval *shudder*)
how about a java library? could you call a local java app to
sanity-check strings for you? even if this only caught events after
the fact (got a copy of the string after it had been passed to eval,
and popped up a "oops, site has done $NAUGHTYTHING; click here of if
you wish to inform Safeweb of the following information:
website url
string"

>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", 
both of which are really only packet-based - ok for email or terminal
sessions, but not really much use to the average user.
I could see a use for a VPN tunnel to a web proxy that doesn't pass on
user IP, but as you point out, this requires a lot of client-side code
to be running.

>"Citrix Metaframe" 
not really a security tool - but useful for remote dialin to a LAN.

>and "Freedom" 
heard good things about it - but yes, requires client-side installs
and accounts and so forth.

> 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.
Hmm. Safeweb works well in IE and Netscape........

<snip advertising copy>
yes, Safeweb is vastly better than Anonymiser, and for free we are
probably looking a gift horse in the mouth - but unfortunately, by
establishing a expectation of "for dummies" online security, you may
be risking getting users to drop protection they might otherwise have
used 
(taking an extreme example; someone living in a repressive country
might be posting info on people the local troops are looking for to an
online site so they know to dig a hole and pull it in after them until
they stop looking; the local governor decides finding out who this is
is a high priority (especially now he seems to be posting directly to
the board, rather than sending the data to a online confederate in
america who then posted it up to a day later) so they hire a hacker
who breaks into the site - finding safeweb accesses he can't trace.
but hey, here is this handy 'sploit he knows - so he arranges for the
upload page (only) to trace the IP of whoever uploads the next file to
that area.....)
Yes, it's an extreme example, and the user should not have been so
foolish as to rely on Safeweb alone if his life depended on it (or to
at least investigate the settings and set them to "paranoia" every
time) - but he could well believe that the extra day of advanced
warning would save more lives than he was risking.

>Although no security technology is immune from such issues, we have
>not discovered nor had any actual security holes ....<snip>
we have. Ok, we have not found a *live* site using this, but a hole is
a hole - the usual theme for Bugtraq posts is that it is better to fix
the hole in advance than risk a blackhat exploiting the hole for
months before anyone notices. In the same theme, it would have been
better for Safeweb to have been notified directly rather than told
this conversation was happening - Bugtraq posts are usually condemned
by the list members if they don't say the authors were notified, and
given at least a week to respond (note not fix - just acknowledge the
problem and give an estimate of the time it will take to fix) but the
fact still remains - if a route exists to bypass the protection of a
program, then you do not need to find examples of it "in the wild"
before you look into patching it. I would argue that "safe unless the
webmaster wants to make a real effort to get your data" is not safe
enough.
I am sorry if this is a bit unformatted - but it is after 2am here,
and I am going to bed now ;)
--== DaveHowe ( is at) Bigfoot dot com ==--
Technical Details
Message-ID: <b4feft88h4ochujrvbvr4cii6guno7mgoh@4ax.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!nntp.cs.ubc.ca!fu-berlin.de!uni-berlin.de!hawkswing.demon.co.UK!not-for-mail
References: <fe251fd9420f9a91080c169f69999f42@mix2.hyperreal.pl> <mon8ft8ruhpkga4ssi50se6tk66q74838h@4ax.com> <7xn18rt0lz.fsf@ruckus.brouhaha.com> <3af72cfa.25210490@news.pacbell.net>

Show Full Headers
Complete Article Headers
Message-ID: <b4feft88h4ochujrvbvr4cii6guno7mgoh@4ax.com>
Subject: Re: SafeWeb "Paranoid" Sanitization kills JS bugs
Date: Tue, 08 May 2001 02:20:36 +0100
From: Dave Howe <Spam.Blocker@bigfoot.com>
References: <fe251fd9420f9a91080c169f69999f42@mix2.hyperreal.pl> <mon8ft8ruhpkga4ssi50se6tk66q74838h@4ax.com> <7xn18rt0lz.fsf@ruckus.brouhaha.com> <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!nntp.cs.ubc.ca!fu-berlin.de!uni-berlin.de!hawkswing.demon.co.UK!not-for-mail
Newsgroups: alt.privacy,alt.privacy.anon-server,alt.security.pgp
Organization: Not Usually organised
Lines: 161
NNTP-Posting-Host: hawkswing.demon.co.uk (193.237.236.173)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: fu-berlin.de 989284899 18151876 193.237.236.173 (16 [50167])
X-Newsreader: Forte Agent 1.8/32.548