Article View: news.software.nntp
Article #87109Re: Semi-random thought: websockets
From: Russ Allbery
Date: Thu, 22 Oct 2015 18:43
Date: Thu, 22 Oct 2015 18:43
34 lines
2597 bytes
2597 bytes
J. Moreno <planb@newsreaders.com> writes:
> That lets you develop the javascript, but doesn't cut the
> server/javascript leash, which is what I was actualy after -- as it is,
> javascript can really only communicate to the page it's on or to a http
> server. While this is of course a problem with javascript not with
> other protocols or servers, one way to address it would be for non-http
> servers to add a way to let javascript talk to them.
Wouldn't the easiest way to do that be to run a web server on the news
server that sets up the WebSocket bridge?
> Alternate solutions would be to standardize websocket bridge ports, or
> wait/hope that the browsers start allowing raw tcp streams out.
> Not allowing raw streams seems to be a deliberate decisions -- both
> Chrome and FireFox allow it, but only under limited circumstances
> (plugins, certified apps for Firefox OS), so waiting doesn't seem likely
> to be useful in the short term.
It seems really unlikely to me that browsers will want to allow web pages
you visit to start using your computer to send spam email, automate
captcha solving, brute force bank passwords, or all the other fun things
you can do with raw network sockets. All you'd need to do is inject your
Javascript into an ad network, and tada, instant botnet without even
having to find weaknesses in the individual computers.
--
Russ Allbery (eagle@eyrie.org) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87pp06iw1y.fsf@hope.eyrie.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<20151017031939.880$4B@newsreader.com> <87d1wava2l.fsf@hope.eyrie.org> <20151022023903.402$7b@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <87pp06iw1y.fsf@hope.eyrie.org> Subject: Re: Semi-random thought: websockets Date: Thu, 22 Oct 2015 11:43:05 -0700 From: Russ Allbery <eagle@eyrie.org> References: <20151017031939.880$4B@newsreader.com> <87d1wava2l.fsf@hope.eyrie.org> <20151022023903.402$7b@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 32 NNTP-Posting-Host: 96.90.234.101 Mime-Version: 1.0 Content-Type: text/plain X-Trace: usenet-its.stanford.edu 1445539385 3452 96.90.234.101 (22 Oct 2015 18:43:05 GMT) X-Complaints-To: news@usenet-its.stanford.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:X0Gvl9mHdpaoF6RwXyi3XG00jfA= X-Received-Body-CRC: 2336681490 X-Received-Bytes: 2531