News for hackers. Stuff that matters.
[deleted]
Re:Why we should adopt a non-Turing complete language for cl... by ynniv on Friday March 30, 2012 @01:00PM (#3776918)
[The parent was deleted, but doesn't matter.] The post is riddled with technical inaccuracies.

be­cause JavaScript is Tur­ing-com­plete, which any an­tivirus re­searcher can tell you is why they still have a job

Viruses exploit security vulnerabilities to self replicate and assume control. They can be written in non Turning complete languages.

the facet of JavaScript's be­haviour I'm in­ter­est­ed in pre­vent­ing is in the fam­i­ly of cross-site script­ing and re­quest forg­eries

Gimping JS would have no effect on this. Increasing browser security would. We have XSS/XSRF because we explicitly allow some cross site communication. Reduce or disallow it and your problem is solved.

The way to get what I want would be to look into the code be­fore run­ning it and se­lec­tive­ly dis­able cer­tain be­haviour.

You don't need to fully understand a piece of code to restrict it's actions. This is what a sandbox is.

I hear tell that there's even a com­pa­ny that bro­kers dis­tribut­ed com­put­ing tasks, tak­ing money on one end from cus­tomers and pay­ing web­site own­ers on the other end to pass on to their users to ex­e­cute for free.

There is nothing you can do about this, short of personally inspecting the source code. Which in this case will certainly be obfuscated to prevent you from easily understanding it.

His re­sponse was prob­a­bly, but I'd still have the prob­lem of prov­ing code cor­rect­ness—a per­fect­ly le­git­i­mate con­cern.

The person who defined the idea that the author defers to told him that it wouldn't solve the problem. Why are we still talking?

But the point is, this is to­tal­ly doable. The the­o­ry is sound,

Where was this shown?

there's high-pro­file de­mand for it

Where was this shown? I personally would not use a web browser that wasn't compatible with the web.

To top it off, the email link provides the brogrammer subject "yo dawg i herd u like TFP"

I don't see how anyone has upvoted this article. If you care about browser security, you might be interested in building better sandboxes based on Capabilities[1]. What the poster has shown is a misunderstanding for both the technical problem as well as the reality of why we run JavaScript in the browser: because web pages are written in JavaScript. All attempts to do anything about that have failed the market.

[1 | http://en.wikipedia.org/wiki/Capability-based_security]