Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Microsoft

Remote 'Root' Exploit in IIS 5.0 184

eEye Digital Security was doing some testing that apparently Microsoft hadn't done on its own webserver (IIS 5.0) running on its latest OS (Windows 2000, all versions). "Within a matter of minutes," they say, "a debugger kicked in on inetinfo.exe because of a 'buffer overflow error'" -- and two weeks later, we got simultaneous announcements from Microsoft and eEye. This is a remote SYSTEM-level exploit in a popular webserver, in the wild, i.e., Danger Will Robinson. eEye says about a million servers will need to be patched; it may be more. Go see Microsoft's writeup and patch. See also eEye's droll and informative writeup, which, now that an exploit is confirmed to be in the wild today, has added some source code.
This discussion has been archived. No new comments can be posted.

Remote 'Root' Exploit in IIS 5.0

Comments Filter:
  • I can excuse holes in IE letting attackers mess up win98 because it's in single user mode all the time, but NT? There's A CHOICE to run programs as 'root' or as a user. For NT and IIS there is no acceptable explanation other than Microsoft saying "We fucked up bigtime."
  • by Anonymous Coward
    Dude, if iis 5 didn't have a few remote exploits, so many script kiddies would be out of a hobby. Thank god the proud tradition of most easily defaced webserver continues at microsoft!
  • by Anonymous Coward
    Don't be a jerk. Hell I heard the story on NPR this morning and was amazed to see how long /. took to post it.
  • IIS does some sort of file locking or caching in kernel (probably similar to what khttp does), and that's all. IE runs entirely user mode on NT.

    Thanks for FUDing, please drive thru.
  • by Anonymous Coward
    "... as opposed to other OS's which you'd have to configure a service to run."

    Have to configure a service? I beg to differ. My boxes get portscanned a couple dozen times a day. About a third of those scans appear to be coming from Redhat default server installs that were compromised by scripts running on some other Redhat default server install that was compromised by scripts running on some other Redhat default server install that was ...

    I hold Redhat responsible for all these portscans to the same extent that I hold Microsoft responsible for the hundreds of Outlook viruses that have appeared in my inbox. Fortunately, neither affects me much, but I know they affect others.

  • by Anonymous Coward
    eEye. eEye? Oh...
  • by Anonymous Coward
    Yes! WE chinese hackers have modified hundreds of USA web servers' Index.html etc...! Most of them are Windows NT 4 or 2000 LOL Microsoft makes the difference!!!!
  • by Anonymous Coward
    2.2.16 was a local exploit only, bad, but nothing like a remote root exploit.

    BIND is not enabled by default on most distros.

    This is news because it is the worst kind of security hole possible, and its exploitable on a default version of win2000.

    An exercise for the reader: modify the exploit given to install a DDoS client, and then write a PERL script that trys the exploit against sequential IP addresses.

    The kiddies are falling over each other doing exactly that. The exploit has been out for a few days or so, and I've ALREADY got firewall logs of someone scanning my entire class C for it! This will no doubt end up being even bigger than the rpc.statd in redhat 6.2 exploit in terms of mass exploitation for DDoS purposes.
  • by Anonymous Coward
    Frankly, this language choice shows that there's someone at Microsoft with their brain turned on. If nothing else, doesn't seeing this use of pronouns make you stop and think about your preconceptions?

    Also, I am a bit annoyed with assumption that if it ever were possible to create a security problem that could only be exploited by female attackers, this security problem would then automatically be minor, since the women obviously are no threat. Not only would many women I know find that attitude insulting, underestimating someone because of their gender can be downright dangerous.

    Yeah, I know I'm overanalyzing a joke, which one of the lamest things around; there's I reason this is anonymous. Suppose however that it was discovered that servers painted darker colors ran poorer because they kept overheating, and that in some cases painting a server white made it work better. Would you even _think_ of posting something along the lines of "so _that's_ why my black/hispanic/vietnamese co-workers are so damn lazy"? I mean, maybe some anonymous coward would, but that comment would get moderated into oblivion faster than a speeding mouse. That this got a 5 is just more evidence that way, way too many people have moderator points.
  • by Anonymous Coward on Wednesday May 02, 2001 @05:42PM (#249535)
    Seriously, why does IIS need full Administrator privs? This is a security risk that all IIS users saw from day one and chose to ignore.

    Will the 'fix' from Microsoft involve IIS running with user level privs? I betcha it won't.

  • by Anonymous Coward on Wednesday May 02, 2001 @06:18PM (#249536)
    Actually the restart feature applies to all W2K services. You specify what to do on the first and second explicitly, and then on subsequent. The options are to restart service, reboot computer, take no action, or run an external program (such as a pager alert program). By default it is set at take no action, meaning the service dies and stays dead until manually restarted.
  • by Anonymous Coward on Wednesday May 02, 2001 @05:50PM (#249537)
    Do the /. editors knock each other down on the way to post bad news about Microsoft? Seriously, do you guys have your own 'Frist (Anti-MS) Post thing going between you? Relevant stories get rejected all the time, but you guys must hit 'refresh' ad nauseum until something appears in the inbox with bad news about Microsoft. After that, all bets are off, whoever can hack together a clever title, story, and work in a few extra jabs at Gates & Co., and YOU ARE THE FRIST POST MASTAH! Why not revamp the stories to reflect your true inter-editor competition? Something like:

    CmdrSprk writes: Another MS Bug FA-MSP Editor Biachezzzz!!!!! I 0wn3z j00! Sporks rule!

  • by Anonymous Coward on Wednesday May 02, 2001 @06:30PM (#249538)
    From Microsoft:

    This could enable a remote attacker to conduct a buffer overrun attack and cause code of her choice to run on the server. Such code would run in the Local System security context. This would give the attacker complete control of the server, and would enable her to take virtually any action she chose.

    Only females can exploit this hole!*

    *Not to be taken out of context

  • by Anonymous Coward on Wednesday May 02, 2001 @11:10PM (#249539)
    actually, it's not quite so easy. i wrote the exploit, and inititally looked at creating a fix as the initial exploit and ran into the following problems: 1. deleting the file: if you delete the printer dll, it is replaced by the copy in dllcache. if you delete the one in dllcace, it gets replaced by the original. if you delete both at the same time, it then asks for the original install media. self healing files are cool until they reintroduce the problems. 2. removing the extension: there isn't a really easy way to deal with the metabase(the registry like structure used in dealing with iis) using asm 3. size: writing an exploit with around 400 bytes, taking into effect that you have to load addresses and data and have some boot strap code, not to mention that you have to split your code into 2 segments because the buffer overflows right in the middle. if anyone has questions as to why, or how, let me know. i'd be more than happy to explain both to serious inquiries. ryan permeh, ryan@eeye.com
  • Most places still run IIS 4 on NT 4.0, either because of proven stability, laziness, compatibility issues, or sheer inertia (which I guess could also be laziness.) Still a hell of a lot of servers, though.

    - A.P.

    --
    Forget Napster. Why not really break the law?

  • Yes, that is exactly how it works, it starts as root so it can bind to port 80. After this it drops its uid and gid back down to whatever is specified in the configuration usually nobody:nobody.
  • Remote exploits are gaping holes. Using non-root authority to leverage root authority (which was the bug fixed in 2.2.16) is merely a hole, not a gaping one. These are two entirely different classes of security problems. Remote exploits are cause for sounding the alarms. Besides, nobody has said that linux (or a linux application) has never had such a bug. You're setting up straw man arguments to lure careless moderators into throwing "Insightful" points at your insightless post.
  • by nathanh ( 1214 ) on Wednesday May 02, 2001 @11:40PM (#249543) Homepage
    A "real" admin would get on the various security lists, go through the MS checklists, apply the high-security template, and download the scripts that Microsoft used to help secure their own W2K webservers.

    No, the install should simply be secure by default. I would apply the same standard to Linux distributions, and they often fail the test. Microsoft isn't alone here but I don't think this makes it "right". It just makes it common.

  • Anyone running printer services over the Internet on a server is an utter moron

    True, if s/Internet/web/ . But what else can Microsoft do? They're losing SMB print server share to Samba, so they've got to start using something else.

    Maybe someone should start a pool on when Microsoft will be removing SMB printing capabilities from their desktop OS...

  • The vast majority of security vulnerabilities are buffer overflows.

    I don't have numbers (probably only large espionage organizations do), but I'm willing to bet that's not true.

    Indeed - if we are to believe tallying the number of entries in each category given on the security focus page you mention, it would seem that "input validation" is the most common type of security error.

    Looking at those vulnerabilities though leads me to conclude that "input validation" is too broad a category - unfortunately, I'm not sure how to divide it up.

  • That is only if things are running properly.... I assume the big deal about the bug is that it breaks IIS before it has the chance to change to the IWAP_machinename, so the buffer overflow exploit gets executed as system. If I'm wrong let me know...
  • The whole problem would no nowhere as bad if IIS isn't running as system. This is definitely a fault of Microsoft because it wanted things to be nice and easy integrating the NT security with IIS. I can't remember any Linux/BSD distribution installing Apache as root. On NT/Win2000 every service and its dogs run as system, and any of them having a buffer overflow bug would leave the entire system open to sack and pillage.

    It needs to be said that there are equivalent stuff on Linux: Most distributions have a BIND package that runs as root, WU-FTPD as well...
  • Lots of people use the feminine pronouns that way. If you say "he", feminists will bite your head off for "assuming that everyone is male", but if you say "she", everybody (except you, apparently) knows that a guy could be doing the same thing. Using she is more convenient than using she/he, or even s/he. Other ways of trying to weasel out of using words with a gender, like using "they", aren't as good. One usually ends up being grammatically incorrect when using "they", because it's plurar and one is trying to talk about a single person. (notice how I used "one" to make that last sentence work? It's not very easy to use either).
    #define X(x,y) x##y
  • There is no such language as C/C++ - there's C, and there's C++. C++ programmers use string classes. The standard library for C++ includes a pretty good string class (actually a template class that can be used for byte strings and wide character strings).
  • by jamiemccarthy ( 4847 ) on Wednesday May 02, 2001 @06:01PM (#249550) Homepage Journal
    "Debian sendfile root exploit (updated package available)"

    That's a local (not remote) root exploit in a not-commonly-installed tool.

    "Bugzilla shell exploit (updated info available)"

    That's a remote unprivileged-user (not root) exploit in a not-commonly-installed application.

    "Iplanet calendar server exposes netscape admin password"

    That's a local (not remote) non-root exploit in a not-commonly-installed application.

    "DoS against Novell Border Manager"

    That's, um, a DoS against Novell Border Manager.

    "But it's not news unless it's Microsoft, eh, folks?"

    I know it's fun and easy to bash Slashdot for being anti-Microsoft, especially when we report security news, but we don't ignore open-source problems [slashdot.org] and we only report vulnerabilities which are of pressing and widespread concern.

    Jamie McCarthy

  • About This is the not everyone is going to patch thier server some and then cry like a fool when the get hacked. Despite the fact they are many people out there take thier security seriously alot more do not. (I had this happen to a friend where the hosting company did not apply a patch that 6 months old. Well have fun patching and rebooting :)
  • by astrashe ( 7452 ) on Wednesday May 02, 2001 @07:38PM (#249552) Journal
    This exploit is more serious than the others you've listed. It's a remote root exploit, and it affects people who take the out of the box installation.

    A comparable Unix exploit would have been the recent BIND fiasco. And that got good coverage on /.

    I get tired of MS bashing too. But I think there's a lot less of it here than there used to be. The article about Easel and Ximian took a lot of heat, but I think it was a healthy thing to post. We're still a long way away from looking at the ethics of some of the Linux IPOs, but it's a start.

    This is a big security problem, and it was made worse by some questionable design decisions (automatic restarts, etc.). But the effect isn't really any worse than the recent BIND exploits.

    And you could argue, as perhaps the OpenBSD guys might, that by not advising people to run BIND in a chroot jail, the ISC guys are being less responsible than MS, which has published security guidelines that protected the users who followed them from this particular exploit.

    But what good does that do? The reality is that both Linux and Windows have their share of security problems. MS has a long list of bad decisions from a security point of view, but we have things like linuxconf. Sacrificing security for convenience isn't just a MS thing. And there are plenty of buffer overflows to go around.

    We need to encourage everyone to think about security more seriously. We need to get companies to think about security from the beginning, instead of trying to bolt it on in the end. And we need to make sure that they respond quickly when problems do arise.

    This just isn't a Linux vs. MS situation.
  • crawling or limping is a feature ...


    Freaker / TuC
  • Language does evolve. It is not because some
    stupid rules were adopted at one time that
    they should remain. People decide how they
    will speak and if they so choose the language
    changes and so will the rules.

    That rules of the gender choice is illogical
    and should be as we do in French and Spanish
    which is whatever sounds the best according
    to the way the words are spelled. A "table" is
    feminine while a "lit" is masculine.

  • So, a new BIG, HUGE and FAT HOLE in ISS is published... Patch ready... So patch fast if you love IIS so much. However it seems that today the large majority of sysadmins don't read bugtraqs. Anyway this is sure for the very large majority of Windows users. The history of this system has shown that there is a chronical and traditional carelessness for security, starting on m$ and ending on the user himself.

    So soon there will be news on how another Pentagon server was screwed up, on how another major corp had his finances washed up and how another major pop-website with tons of kitch and whoolaprizes is "temporarly unavailable".

    And who should be blamed for this? The script kiddies like in that 98 scandal with Solaris at Pentagon? The hackers that show how buggy and crappy is a piece of software (here m$ doesn't matter)? The OpenSource, GPL, freeware communities for being much more liberal in these matters? Or the commies for once again digging another hideous conspiration against the US, the Free World and my backyard?
  • why not just fricken run apache on unix?

    ....

    Just pretend to be professional for a second and use unix...


    Personally, I prefer linux to any other operating system I have tried. But in my experience, it's quite hard to convince a business running more established platforms to change to an 'alternative' operating system. I've managed to convince the school I work at to replace one of the Netware servers with a linux machine running samba, but it wasn't easy.

    The reason I asked the question in the first place was that I don't know the dis/advantages of using IIS or apache under win32.

  • I've never really used IIS .. I've never really felt the need, so I don't know what its good points are.
    My question is, why not run apache on Windows NT/2000? Does IIS have any major advantages over apache and the wide range of addons which are available for it?
  • The report of the vulnerability I read had this interesting quip at the end:
    Gartner analyst John Pescatore says a large portion of Windows

    2000 users probably have not turned off the affected services and
    should either do so or install the patch immediately. Pescatore
    says Microsoft made a critical error. "IIS has been a cancer on
    Windows 2000," he says. "Including that code in the Windows 2000
    base vs. it being a separate application was a huge mistake." -
    George V. Hulme

    I'm know I'm probably just adding fuel to the fire, but I'm curious how true that sentiment is.

    -OT
  • Most places still run IIS 4 on NT 4.0, either because of proven stability, laziness, compatibility issues, or sheer inertia (which I guess could also be laziness.) Still a hell of a lot of servers, though.

    This is certainly the case where I work. See, with load-balancing, and extreme over-provisioning (or maybe recognition that MS solutions consume hardware at a rate aproaching 8-sideways), we have probably nearly 100 NT servers now. With the recent economic downturn, it is pretty much a given that we will be sticking with the status-quo for probably the remainder of the year. That means running servers with NT 4.0 SP 6a (since apparently SP7 is only available in orbit), with the associated software (IIS 4, etc).

    Ah well, it makes life interesting at least. 8^)

  • Change that to "Large, complex programs written in languages like C are subject to buffer overruns", and I'll both agree and point out why I don't like crufty old languages.
  • I do not agree with that all. I was CTO of a company (resigned today) and we used W2K servers with Apache 1.3.19. Apache ran like a charm and was STABLE AS HELL. Where IIS may need a reboot or restart Apache just kept on running.

    I made the decision to Apache because the W2K environment has better development tools.

    But there is one thing to remember W2K is REALLY GOOD, just do not run any MS software on top of it. Then things become very unstable very quickly.
  • And yet when they decide that Bluetooth or USB 2.0 support is too flaky to put in before the initial release of XP, people here howl and moan. Damned if ya do, damned if ya don't.


    Cheers,

  • Well, I had tested the exploit against a Win2K Pro SP1 machine with IIS (PWS) installed and it didn't crash IIS. On another Pro SP1 machine, I installed the patch, and haven't had any ill effects for few days that it's been installed. So, at first glance, it doesn't seem like eEye's exploit works against Pro, but I took steps anyway, and recommend that others do the same. I just renamed msw3prt.dll in the System32 and dllcache directories.


    Cheers,

  • Don't blame Ford when you had your keys to a 3 yr old and they wreck the car....

    If the car looked like a toy and was easy to use for the three year old, and on top of this, was of a major brand (i.e. had cred), I would...

  • ...and that was today's episode of As The Massively Obvious Security Hole Turns, brought to you, as always, by Microsoft! 'Microsoft - What Do YOU Want To Crack Today?'

    [annoying organ music]

    Kids, don't forget to send in those Ovalteem labels for your free Windows XP Product Activation DECODER RINGS!

    Tune in next week for our latest episode - Clippy's Revenge!

    [more annoying organ music, followed by station identification]

  • Because Bugtraq generally gets us the info months before CERT would?

    --
  • Of course, Ford doesn't advertise that their cars practically run themselves, with no operator needed. Nor do they include a "Getting Started" guide that gives the sense that nothing more is needed than the pointy, clicky, hit FINISH and it's running method. Their allowing their "certified" people to be churned out after a week of rote-cramming and little-to-no practical experience furthered that image. So many MCSEs have proved to be so obviously clueless that the idea that NT can be competently adminned by someone with a clue deficiency.

    --
  • Anyone running printer services over the Internet on a server is an utter moron for one.

    How else would you run printer services over the Internet, assuming that's what you require? Throw an HP JetDirect box next to your router? Or set up an IPP daemon on a server you can secure, printing to the printers, and lock it down?

    As an aside, are there any good, securable IPP daemons for any OS out there yet? I haven't touched Win2000's IPP service yet, and haven't had much chance to look into CUPS on Linux.

    --
  • by sharkey ( 16670 ) on Wednesday May 02, 2001 @06:41PM (#249569)
    Quite so. The weary WebAdmin, as well as the SysAdmin and Network Operator can all sleep easy knowing that Joe RandomScriptKiddie is remotely administering the latest updates to their Win2000 servers for them.

    --
  • by sharkey ( 16670 ) on Wednesday May 02, 2001 @06:15PM (#249570)
    What if it's crawling or limping, as would be more likely than "running?"

    --
  • Its not just that, but this is a big story because MS has hyped themselves up as the end-all be-all to the companies that shell out the bucketloads of cash for their support on IIS.

    If IBM's Websphere had an exploit would anyone care? No.
    If Sun's iPlanet webserver had a big gaping root exploit, would anyone care? No.
    If Netscapes crappy web server had issues, would anyone care? No.

    The only reason IIS (and apache) make big news is because they're the biggest players, and they have the largest groups of zealots on both sides drawing attention to itself.

    Any piece of software is going to have bugs -- If it's job is to serve material over the net, there's going to be some sort of exploit.

    So there's another exploit. The vendor will patch it. Big deal. Move on with business.

    ~dlb
  • Some interesting quotes are:

    "IIS has been a cancer on Windows 2000," he says. "Including that code in the Windows 2000 base vs. it being a separate application was a huge mistake."

    InformationWeek:How much more complex is Windows 2000 security compared with Windows NT 4.0? And in what ways is it more complex?

    Fossen: It's roughly 10 times more complex. The security infrastructure of Windows 2000 includes Active Directory, Encrypting File System, Group Policy, IPSec, Kerberos, public key infrastructure, remote-access policies, and smart-card logon services. NT security is characterized by the ad hoc plugging of security holes; Windows 2000 security is characterized by the management of these security services to make security scale across an enterprise. Holes still need to be plugged, of course, but now there are built-in tools to make even that effort easier.

    http://www.informationweek.com/story/IWK20010502 S0 003

    http://www.informationweek.com/834/winsec.htm

    With Windows 2000's complexity and some poor design decisions, I have a feeling we will see more major security flaws in the future.
  • I suppose you've never heard of tunneling?

    I can't imagine any valid use of an open printer to the internet...No self-respecting script-kiddie (yes I know that's an oxymoron) would drop by to pick up his/her printouts.

    P.S. Note the correct form of denoting unknown gender
  • So lets say http://www.microsoft.nl [microsoft.nl] and http://www.microsoft.be [microsoft.be] aren't vulnerable then? (sorry, couldn't resist...) (just two of the three I happened to check. On the plus side, www.microsoft.de is still running IIS 3.0 so it's safe from this one...)
  • Right on. (although CERT did release today).

    But I also found the timing of the Microsoft announcement and the eEye announcement on Bugtraq interesting. They came out basically at the same time, and there is nothing about eEye's self-aggrandizing announcement that makes me think they would be particularly sensitive to protocl.

    One of two things happened; either those eEye guys are more polite and rational than they sound, or else bugtraq held the announcements to coincide. Acutally I'm guessing both.

    Boss of nothin. Big deal.
    Son, go get daddy's hard plastic eyes.

  • by QuantumG ( 50515 ) <qg@biodome.org> on Wednesday May 02, 2001 @06:35PM (#249584) Homepage Journal
    Yawn, I'm not going to go over this argument yet again. The bug is essentially this one instruction:

    mov [ebp+var_4], 202h

    when the buffer is actually only 101h bytes long. So eEye could of made a one byte patch and released this, fixed the problem and then gone to Microsoft to get them to fix it in the source. But that's not the way it goes down. Microsoft has to be the one that makes the patch and although they beat the 30 day average I think 11 days to release a patch is pretty shameful (openbsd would patch this in under 6 hours, 24 hours being the maximum). Especially considering that mumblings of this bug were on bugtraq before April 19.
  • by Rix ( 54095 )
    He asked a valid question. Like it or not, Apache is the norm on the net (though not necessarily on the Win32 platform). So why should someone choose IIS over Apache?

    Your post seems little more than an eloquent version of "Apache suxxors and IIS rules". Please tell us why IIS is a good choice.

    Cheers
  • IIS is generally considered to be quite a bit faster than the standard Apache distribution

    IIS is faster for static content. Apache is faster for dynamic content (SSI, CGI, et cetera). Speed on static content is rather useless, as it doesn't take much of a box to saturate a reasonable connection with either IIS or Apache.

    Oh, and there's an Apache module for asp.

    Cheers
  • by moeller ( 57451 ) on Wednesday May 02, 2001 @05:40PM (#249588) Homepage Journal

    The vast majority of security vulnerabilities are buffer overflows. This latest vulnerability extends this status quo. There are technologies out there that prevent this, however, almost all of these technologies slow down the system in some way or another. Examples include languages that allow dynamically sized arrays and other preventative measures.

    CPU speed is growing such that it would appear that we could take a speed hit for increased security. Is it coming down to the fact that various organizations would rather market a fast webserver at the expense of a secure one? The $64,000 question is why the industry has not moved towards safer technologies that prevent these security holes.

    Not that Microsoft is incredibly innovative on the security front, but they're hardly the only culprit. Many others rely on unsafe languages and techniques that allow these vulnerabilities to leak through.

    When will it end? Is there any incentive to end?

  • by tqbf ( 59350 ) on Wednesday May 02, 2001 @06:38PM (#249589) Homepage
    eEye takes an incredible amount of shit from the White Hat "elite" --- the same people, like Marcus Ranum and Bruce Schneier, who villify the researchers at eEye have a noticeably softer take on Mudge and The L0pht. The difference between the two? The L0pht's non-research hacker involvement and a lot of trendy Boston VC money.

    Of course, I'd be pretty upset too if a bunch of upstarts were singlehandedly obsoleting my practices and methodologies, like eEye (and groups like them) has done with "traditional" security consulting and management. I just hope all you people are watching now and paying attention to the contributions the security community gets from eEye's critics.

    A published root hole in IIS is a coup for open source (when was the last "Administrator" break from Apache?). The disseminated fix will be a coup for full disclosure. Everybody wins. Except the dinosaurs.

  • by joq ( 63625 ) on Wednesday May 02, 2001 @05:37PM (#249594) Homepage Journal
    Lets get real for a second here. Anyone running printer services over the Internet on a server is an utter moron for one. Secondly shame on Microsoft for allowing by default just about everything under the sun to run, as opposed to other OS's which you'd have to configure a service to run.

    Thats the most common problem with server security, is the lack of knowledge of some of the administrators setting them up. They don't truly know what is running either via way of moronically not being intuitive enough to know what ports are open for what services and why, or just not having a clue altogether.


    Ryan Permeh, resident shellcode ninja of eEye Digital Security, has created an example exploit to be used as a "proof-of-concept".

    Funny how many would whore out including the staff of eEye. Instead or placing a nicely written morally sound write up, they overhype the issue to promote their product.

    Lets not forget, what goes around comes around [attrition.org] as eEye has seen in the past. I've purchased programs via my company from eEye, and they're not all that, nor are their advisories. Someone should teach those guys humility.

    As for Microsoft, its just another one of their flaws, so I don't see what the big deal is.

    removing the dot in dot com [antioffline.com]


  • by SirSlud ( 67381 ) on Wednesday May 02, 2001 @05:47PM (#249596) Homepage
    Since MSs products do this that the other thing and the last thing you ever want to do but not the thing you need to buy the 3rd party software for, is it really any surprise MS always suffers from escaped code review buffers? When you bite off more than you SHOULD chew, this 'll always happen. =)

    Its a good thing for the OS community .. more granular projects lead to better security ...

    Garret
  • by Nailer ( 69468 ) on Wednesday May 02, 2001 @07:03PM (#249597)
    Apache can run VB based ASP via closed addons from Chillisoft and Halycon software and Perl based ASP using Apache::ASP (I think that's what its called), an open source app.

    Apache can also authenticate against NT domain security using the SMB PAM module.

    IIS is administered through a standard interface which is very friendly. There are a few of these available for Apache, most notably a great Webmin module.

    Many old versions of Apache modules were a bitch to package (ie. PHP3). Newer ones (ie. PHP 4) package great, but compile-heads who prefer using non known-good software that isn't supported by their distro because it satisfies their pathetic egos still like compiing, and less epxerienced admins think that's the standard way to do it.

    And its SYSTEM, not 'root', on an NT box.
  • Do you remember when Slashdot posted stories on security flaws like this as an attempt to disseminate the information to the tech community at large, even though they didn't like Microsoft, as opposed to now, when they attempt to show that they don't like Microsoft by disseminating information about such security flaws? Its a subtle change, but its there...
  • I submitted this story yesterday and was rejected.

    2001-05-01 23:24:00 Another Major Security Hole in IIS (articles,microsoft) (rejected)

  • Lots of shirking the responsibility seems to be going on in this discussion. Sure system admins should be informed about security and keep with patches and all, but to some degree, fault must inevitably lie with software vendors who don't have a deep commitment to producing trustworthy (read: secure) software. And that's not just Microsoft.

    A program can be provably invulnerable from certain attacks, but undecideable on other attacks. It's a shame that software most often fails on the most obvious and straightforward of fronts to defend: buffer overflows. Something along the lines of 30-60% of all exploits make use of buffer overflows. However, checking for such weaknesses can be carried out by a sufficiently capable automated tool. With as common a problem as buffer overflows have been, you would think that it would be foremost in people's minds when designing against flaws. If you left your door unlocked and were robbed seven times in a row, wouldn't you start locking your front door as the first measure?

    It's a small example but indicative of a larger problem I am trying to frame. Software vendors, hobbyists, open source developers, just don't think about these things. They write software in an ad hoc fashion intended to be configurable and carry out a service, so intent on the goal that they fail to consider the larger context. They believe an exploit or a security flaw is something blatant and obvious in the code, or they base their assumptions on a narrower range of input than the application will be exposed to. And even in that case, they see a security flaw as just another bug to patch in the next release, as innocuous as the something like a memory leak.

    Software that provides services is meant to do that. To everyone. And if not to everyone, to a select group of people who must be authenticated and authorized. Those mechanisms must be engineered to be extremely fault tolerant. Unfortunately, they often are not.

    The software vendors to carry blame for this. Don't push this off onto system administrators for not knowing "how to configure" something. That's a poor excuse. They should be informed, of course, but their software should be secure, out of the box. Correct software isn't patchwork. It is carefully designed, carefully crafted to fit together but remain modular. It is not a series of patches with various nebulous origins to fix flaw after flaw in far flung parts of the code. Despite what you want to claim, secure, well-engineered software truly is a Cathedral, and not a Bazaar.

    Simply throwing bugfixes at a problem won't fix and underlying engineering flaw. Throwing your code at people won't fix its design flaws. Take for example Kerberos. Nearly ten years it spent in the open source community as a secure protocol for providing services. The code was in the open and everyone just assumed that it was correct. In two weeks of studying the code at Purdue, a flaw was discovered that allowed the encryption to be subverted and tickets forged in less than a tenth of a second. The flaw had been in the code for ten years, because no one with enough training bothered to look for it.

    Like I said, throwing patches at a problem isn't going to fix an engineering flaw, throwing your code at people isn't going to fix your design flaws. Until vendors realize this (which will probably be never) and start designing secure software from the ground up, there will always be buffer overflows, always exploits, always patches. A lot of services are set up to be turn-key, infeasible for the application to have a babysitter to patch the software night and day. Blaming system admins for their systems be penetrable? Who wrote the software again?
  • And of course, this deserves front page notice because root exploits are not found in UNIX/Linux, after /. doesn't post about any...

  • They fired all their testers. Testers are too expensive. Much easier just to release the software and let the users pay for the privilidge of finding the bugs.

    I hear next month they're going to replace all their programmers with a large but finite number of monkeys. Code quality is expected to improve.

  • by blakestah ( 91866 ) <blakestah@gmail.com> on Wednesday May 02, 2001 @08:09PM (#249607) Homepage
    As many people have pointed out, anyone reasonably experienced, and any "real" website, isn't vulnerable to this if they followed the best practice of deleting all app mappings that aren't in use. It's like the blank SQL sa password all over again. Easy to get worked up about, pretty much a nonissue for anyone who even halfway knows what they're doing.

    Right. And millions of stolen credit card numbers as a result is only proof of stupid admins, not stupid software.

    Software has an obligation to setup secure by default, and insecure by the expressed will of the admin. Apparently with IIS and/or MSSQL this little bit of advice is forgotten.

    You can go on and on about how anyone who bothered to read the docs would not setup the server in a vulnerable way, but this ignores an INCREDIBLY important aspect of human nature. That default computer usage should be reasonable is assumed by default. 80+% of all web users NEVER change their home page. In a simliar vein, most web admins simply use the default install, irrespective of the potential holes pr default passwords.

    The default install has to work securely, plain and simple. For IIS or MSSQL, there are obvious reasons that your customers' business is not safe if you used the default install.
  • Because unlike apache on unix, IIS has a built-in facility to let "webs" and "subwebs" take on different user priviledges.. giving not only a sort of "run-as" functionality to web apps easily, but also leveraging the NT security model for isolation between separate websites and apps on the same webserver.

    To do this with apache, well, you're talking about extensions and helpers that break parts of apache and are security risks in their own right... "suexec" comes to mind... and apache still needs to run as root to let any of these work. Furthermore, does suexec work with php ? mod_perl ?.. or is it only a cgi-bin wrapper (i.e. killing apaches performance as a dynamic content server)

    Fwiw, there may be better solutions than the old suexec on apache by now...

    it is possible that via perhaps Impersonation, IIS could run as non-system and still have separate users and app protection etc, but thats tricky to program. There may be other reasons for IIS to run as system; what i've written is just a possibility.
  • by Mr Krinkle ( 112489 ) on Wednesday May 02, 2001 @05:38PM (#249616) Homepage
    "However, this couldn't be used to conduct an effective denial of service attack, as the IIS 5.0 service automatically restarts itself after a failure. " If it takes me like one packet to shutdown the service(Hence the restart). I can generate lets say 4 packets per minute? (I really do have a better connection but) If I can not keep an IIS server thoroughly enough pissed with a small attack to prevent users Im confused. Not that I would but I just refuse to believe that while IIS is automatically restarting itself users would not be denied service. Oh well two cents. minus a dollar.
  • Even without that an admin should inspect anything that's viewable upon basic install -- and delete it if not needed. Really, this is like letting Apache install stuff to your cgi-bin/ directory and leaving it there even if you have no use for it.

    A) This thing shouldn't have been installed by default. Oops on Microsoft.
    B) If an admin is worth his weight in dirt he would have seen it already and canned it.
    C) The MS coder that wrote something which would be included in a basic install should have been notified of this... and the code should have been properly audited. Odds are, whoever coded this ISAPI extension would have said upon notice that his extension would be in the default install something along the lines of, "WTF for? Nobody actually _uses_ this thing." :)

    C would have fixed a few problems ... betcha anything the guy who coded it had no idea ever that this was in the default install. He's probably running around pisses as hell in the Redmond base right now because his "quick little addon" turned into a huge deal behind his back. :)

    Justin Buist
  • Comment removed based on user account deletion
  • Comment removed based on user account deletion
  • by The Pim ( 140414 ) on Wednesday May 02, 2001 @06:39PM (#249630)
    The vast majority of security vulnerabilities are buffer overflows.

    I don't have numbers (probably only large espionage organizations do), but I'm willing to bet that's not true.

    Buffer overruns undeniably get a lot of coverage on bugtraq--if you casually read the list, you'll be forgiven for thinking that buffer overruns are the overwhelming bane of computer security. But there are two biases to this observation:

    1. Buffer overruns get more talk than vulnerability reports. Go to the vulnerability database at SecurityFocus [securityfocus.com] and browse the recent reports. On the first page [securityfocus.com], there are 28 vulnerabilities, of which only three explicitly mention buffer overruns. Even assuming that this is an unusually low number, and that a few buffer overruns aren't labeled as overruns, and allowing that buffer overruns tend to be more serious than the average vulnerability, this is hardly a preponderance.

      I frankly think the reason the discussion on bugtraq seems dominated by buffer overruns is that the community enjoys, and is comfortable, discussing buffer overruns. Even though the same religious issues (bounded arrays, language choice, non-executable stack, stack-guarding libraries) are rehashed over and over, people never get tired of them. Buffer overruns have a cherished place in security folklore. This is kinda nice in that it gives the community a common ground, but dangerous because it leads people to overlook the importance of other program flaws that can result vulnerabilities.

    2. bugtraq report statistics probably over-represent buffer overruns. This is related to the above discussion--buffer overruns are popular and well-worn ground. If you report one, everyone will understand it and you'll win sure ego points. So if you're going to search for vulnerabilities, you'll probably search for buffer overruns.

      Further, buffer overruns are plain easy to find. If you have source code, a few greps often take you right to the hole. Even if you don't, tools like fuzz [sourceforge.net] do pretty well (many bugtraq reports indicate that tools like this were used to find the overrun). Plus, contrary to what you might think, buffer overrun exploits are ususally easy to write, so don't think that turns of any would-be security gurus. Other classes of vulnerability usually require more analysis of program logic to find.

    In short, even if we stop using languages with unsafe pointers tomorrow, our security woes will continue in full force.
  • by Chester K ( 145560 ) on Wednesday May 02, 2001 @07:58PM (#249633) Homepage
    Does anyone have a program that will exploit the hole and run code to automatically remove the .printer ISAPI mapping, then crash IIS so it will automatically restart with the new, safer configuration?

    That would be a White Hat job.
  • Yes, hence my use of "yet, of course". Maybe this will encourage those lazy sys admins to download the patch.

  • I wasn't referring to the writeup, I was referring to the inevitable flamers who decide that as soon as they read Microsoft in a story they prepare their posts.

  • by proxima ( 165692 ) on Wednesday May 02, 2001 @05:43PM (#249639)
    Ok, so there's a major security flaw with Windows 2000 server computers running IIS 5.0 because this ISAPI extension is installed by default. A patch is already available, and for those who don't want to patch (why the hell not?), they can simply remove the extension.

    Yes, this seems to be a really nasty hole, but it doesn't appear as if it's been exploited (yet, of course). Microsoft did release a patch and didn't try to play down its importance (so it seems to me). Those of us in the *nix community have had our share of root exploits in various daemons, so they crop up in even our most favorite software.

    There is no reason to be blindly insulting MS or promoting the secureness of Open Source programs. Large, complex programs are subject to buffer overruns.

    If you have a Win 2000 server or know someone that does, just get the patch. Simple as that.
  • From the Microsoft writeup:
    A security vulnerability results because the ISAPI extension contains an unchecked buffer in a section of code that handles input parameters. This could enable a remote attacker to conduct a buffer overrun attack and cause code of her choice to run on the server. Such code would run in the Local System security context. This would give the attacker complete control of the server, and would enable her to take virtually any action she chose.

    The attacker could exploit the vulnerability against any server with which she could conduct a web session. No other services would need to be available, and only port 80 (HTTP) or 443 (HTTPS) would need to be open. Clearly, this is a very serious vulnerability, and Microsoft strongly recommends that all IIS 5.0 administrators install the patch immediately. Alternatively, customers who cannot install the patch can protect their systems by removing the mapping for Internet Printing ISAPI extension.
    So, as you can see, only a FEMALE hacker can exploit this vulnerability. And since the current /. poll shows us that females (or, more accurately, famales) are outnumbered 20:1, we really don't need to worry about this.

    Windows is dead!
  • Of course, Ford doesn't advertise that their cars practically run themselves, with no operator needed. Nor do they include a "Getting Started" guide that gives the sense that nothing more is needed than the pointy, clicky, hit FINISH and it's running method. They're allowing their "certified" people to be churned out after a week of rote-cramming and little-to-no practical experience furthered that image. So many MCSEs have proved to be so obviously clueless that the idea that NT can be competently adminned by someone with a clue deficiency.

    In this context, here is this bit of classic humor, as they say, "found on the Net"

    WHAT IF PEOPLE BOUGHT CARS LIKE THEY BOUGHT COMPUTERS?

    General Motors doesn't have a "help line" for people who don't know how to drive, because people don't buy cars like they buy computers -- but imagine if they did . . .

    HELPLINE: "General Motors Helpline, how can I help you?"
    CUSTOMER: "I got in my car and closed the door, and nothing happened!"
    HELPLINE: "Did you put the key in the ignition slot and turn it?"
    CUSTOMER: "What's an ignition?"
    HELPLINE: "It's a starter motor that draws current from your battery and turns over the engine."
    CUSTOMER: "Ignition? Motor? Battery? Engine? How come I have to know all of these technical terms just to use my car?"

    HELPLINE: "General Motors Helpline, how can I help you?"
    CUSTOMER: "My car ran fine for a week, and now it won't go anywhere!"
    HELPLINE: "Is the gas tank empty?"
    CUSTOMER: "Huh? How do I know?"
    HELPLINE: "There's a little gauge on the front panel, with a needle, and markings from 'E' to 'F.' Where is the needle pointing?"
    CUSTOMER: "It's pointing to 'E.' What does that mean?"
    HELPLINE: "It means that you have to visit a gasoline vendor, and purchase some more gasoline. You can install it yourself, or pay the vendor to install it for you."
    CUSTOMER: "What!? I paid $12,000 for this car! Now you tell me that I have to keep buying more components? I want a car that comes with everything built in!"

    HELPLINE: "General Motors Helpline, how can I help you?"
    CUSTOMER: "Hi! I just bought my first car, and I chose your car because it has automatic transmission, cruise control, power steering, power brakes, and power door locks."
    HELPLINE: "Thanks for buying our car. How can I help you?"
    CUSTOMER: "How do I work it?"
    HELPLINE: "Do you know how to drive?"
    CUSTOMER: "Do I know how to what?"
    HELPLINE: "Do you know how to drive?"
    CUSTOMER: "I'm not a technical person! I just want to go places in my car!"

    Check out the Vinny the Vampire [eplugz.com] comic strip

  • Nobody really considers Apache insecure, even if a major flaw was found in it. Why? Because flaws of this level are rare in Apache. M$, however, has fallen victim to 2 things. The first is that they push out a lot of bugs and sometimes break things with patches rather than fix them. The second is EVERYBODY hears about it when they have a bug. Even your grandmother.

    You only come down really hard on the kid that is always in trouble...

    REAL /.ers only have a karma of 49...

  • No holes like this exist in Linux

    I'm presuming that this is just a troll, but in case you're serious there are a number of holes just like this for Linux, and there remain thousands or millions of Linux servers that haven't properly been patched up (just as there are NT 4 servers with holes 2 years old out in the wild).

  • My question is, why not run apache on Windows NT/2000?

    This is a circular question: Why not run IIS rather than Apache? What you really are likely to get in response are zealotry replies about how IIS suxxors and Apache rules. In reality IIS 5.0 is a very high performance, high reliability system that excellently integrates with the security subsystem of NT/2000. But preferences vary and others will likely think differently for reasons that make sense for their needs.

  • It's more important to the /. community to be informed of MS bugs than *nix ones? I think not.
  • Funny how many would whore out including the staff of eEye

    I don't know if anyone remembers, but eEye pulled this same shit about a year and a half ago. They found some vulernability, and used it just to promote their (then shitty, havn't checked it lately) security scanner.

    I think they spend more time trying to find exploits than they do working on their product. They really are in it just for the publicity.
    -

  • "A friend" of mine just tried this on a local server and found that it doesn't reboot the web server - or if it does it doesn't always come back. Expected 10 seconds of downtime but instead the server responds with an "error -3108".

    Woops.... Hope they get it running again soon. "He" never would have done it had "he" known this was going to happen. But regardless, this exploit can most definately deny service to users. (Just check out www.ncix.com - they're down as I write this. I bet "my friend" will think twice before testing any other servers.)

    Willy

  • Remote web server administration is a real pain. With all the various firewall security packages out there, it can make a weary IT manager even wearier.

    Let Microsoft take you away from all that. With our new RemoteRoot feature for IIS on Windows2000, users can log in as root from remote sites without all the muckety muck.

    Forgot your password? No problem. RemoteRoot makes getting in easy.

    Microsoft has partnered with the company responsible for Zero Click [ridiculopathy.com] technology to bring you this wonderful new feature. You can read more about it on their web site. [ridiculopathy.com]

  • by curtS ( 214040 ) on Wednesday May 02, 2001 @05:45PM (#249663)
    The MS writeup clearly states "Note: The vulnerability is only exposed if IIS 5.0 is running."
  • by rabtech ( 223758 ) on Wednesday May 02, 2001 @05:36PM (#249665) Homepage
    From the Microsoft Bulletin:

    Servers on which the mapping for the Internet Printing ISAPI extension has been removed are not at risk from this vulnerability. The process for removing the mapping is discussed in the IIS 5.0 Security Checklist. The High Security template provided in the checklist removes the mapping, as does the Windows 2000 Internet Security Tool unless the user explicitly chose to retain Internet Printing


    So in effect, if the admin who setup the webserver is in ANY way competent, he should have already been over the checklist and applied the template, both of which discuss removing this extension. If he's lazy and only used the SecTool, that would still do the job.



    -------
    -- russ

    "You want people to think logically? ACK! Turn in your UID, you traitor!"
  • by rabtech ( 223758 ) on Wednesday May 02, 2001 @06:14PM (#249666) Homepage
    "If the person who setup the webserver was in ANY way competent, do you think they would be using IIS?"

    Better go tell Dell, Microsoft, eBay, NASDAQ, Intel, etc. that they don't have a clue.

    Setting up IIS securely takes work, just as doing so on a Linux box does. The problem is that many so-called "WinNT/2K Admins" are clueless. They click Install, and see that they can get to their web page. They then assume everything is OK.

    A "real" admin would get on the various security lists [microsoft.com], go through the MS checklists [microsoft.com], apply the high-security template [microsoft.com], and download the scripts that Microsoft used to help secure their own W2K webservers. The admin would also stop by the MS security site [microsoft.com] at LEAST once per month, if not more. They even have a security Tool [microsoft.com] that can baby-step you through the configuration if the registry scares you.

    Don't blame Ford when you had your keys to a 3 yr old and they wreck the car....

    Of course in this particular case, Microsoft should have performed better testing, but still...

    -------
    -- russ

    "You want people to think logically? ACK! Turn in your UID, you traitor!"
  • Not to be a know-it-all, but it actually does run under an local account called IWAP_machinename that's supposed to run with low privledges. But considering I just went through our webservers and removed "everybody-full control" (equivalent of Other-RWX) access from our (internal) webservers I don't know what low privledges are by default.

    Trolls throughout history:

  • by rppp01 ( 236599 )
    Uhm, isn't this version 5? It shouldn't take 10 versions of a software to get it right, does it? Or maybe we are talking about MS here, and that changes the rules. I am actually impressed that MS is pushing the patch for this like they are.

    Give them props for doing what we always slam them for not doing-- responding quickly to a large exploit.

    Though it does nothing for all the other exploits for win NT/2k out there.....

  • by einhverfr ( 238914 ) <chris.traversNO@SPAMgmail.com> on Wednesday May 02, 2001 @05:47PM (#249673) Homepage Journal
    Did anyone ever not expect a big security hole in this?

    Let me see--

    • OS-level web server
    • NT codebase
    • Microsoft
    hmmmmm..... Perfectly expected. The first item is a major reason why I am avoiding Tux until either I can further test it or it has more real-world testing.... Although Tux runs on Linux, I have serious problems running server software which runs with that kind of machine access. I will stick with Apache running as Nobody....
  • My question is, why not run apache on Windows NT/2000? Does IIS have any major advantages over apache and the wide range of addons which are available for it?

    Hmmm.....

    1. Apache (at least 1.x) is a resource hog in Windows computers because of posix emulation among other things (and no shared memory).
    2. IIS is much faster on Windows than Apache (at least 1.x)
    3. Apache performs better on UNIX/Linux than on Windows
    I can't see running this environment currently...
  • Here [indiana.edu] is the accouncement for khttpd in June 1999. That's pre-2.4 if you didn't notice, the current kernel at the time of announcement was 2.2.9
    Alan Cox wasn't sleeping, here [indiana.edu] is his 2c worth, about 2 weeks after the announcement. It's just a special in-kernel cache after all, not like running IE5 or IIS5 wholly in the kernel like some other OS's.

    The home page is http://www.fenrus.demon.nl [demon.nl]. kHTTPd only serves up static content, all non-static stuff is passed to a userland webserver, like Apache or Zues.


    "Why didn't I join Microsoft? [LAUGHTER]"
  • by hammock ( 247755 ) on Wednesday May 02, 2001 @07:24PM (#249678) Homepage
    Would a r00t exploit in the latest linux kernel make slashdots front page? I've often wondered this.

    You sir are an idiot. Please click the links at your leisure.
    Security Flaw with Linux 2.4 Kernel and IPTables [slashdot.org]
    New Linux Worm [slashdot.org]
    Linux 2.1.* Security Hole [slashdot.org]
    *BSD procfs vulnerability [slashdot.org] Hey a BSD one!!
    Linux 2.2 DoS Attack [slashdot.org]
    IP Frag Exploit in Linux Kernel [slashdot.org]
    New Linux Security Holes [slashdot.org]
    Cracking All The Live Long Day & RH6/7 [slashdot.org]


    "Why didn't I join Microsoft? [LAUGHTER]"
  • by geomcbay ( 263540 ) on Wednesday May 02, 2001 @05:42PM (#249683)
    Actually, I find the opposite to be true. Holes in Microsoft servers tend to be much more widely reported, even if they are fairly harmless (which this one is admittedly not).

    There's been virtually billions of 'remote root' level holes in Sendmail alone, nevermind the various other daemons that ship with one or more standard Linux (and/or other UNIX based system) distributions..While these are reported on the geek/security sites like buqtraq, they rarely make it to the mainstream.

    Anyway, this is bound to turn into a long useless series of Microsoft-sucks, Linux-sucks posts...But the reality is every OS, open source or closed, has major bugs found in it from time to time...glass houses..stones...etc. Try not to feed the trolls.

  • by geomcbay ( 263540 ) on Wednesday May 02, 2001 @05:38PM (#249684)
    IIS is generally considered to be quite a bit faster than the standard Apache distribution -- which isn't that surprising since Apache has never really been about raw speed.

    IIS is also far easier to install and maintain, it uses Microsoft's standard MMC console admin interface..Of course, there's two sides to the ease-of-admin issue (many will argue it invites security risk due to low-clue admins being able to do the job, half-assedly).

    Probably the most important feature, though, is Active Server Pages functionality. The ability to write parsed HTML code in any of the languages supported by Microsoft's Active Scripting (JScript, VBScript, Perl, Python, etc), with the added bonus of access to pre-built COM objects.

    It is quite nice. Personally, I prefer PHP for most web-app development..but the wide variety of language choice and the COM integration are pretty cool if you don't mind locking your box to Microsoft technology.

  • ... Every new .0 release is generally pretty buggy. It's almost smarter to wait until .1 and .2 releases to upgrade.

    Look at RedHat 7.0, for example. Don't bash MS because they have bugs -- to do that would be hypocritical.

  • by PicassoJones ( 315767 ) on Wednesday May 02, 2001 @05:55PM (#249690)
    This wasn't caught during windows2000test [slashdot.org]!? I don't believe it!
  • by Nurgster ( 320198 ) on Wednesday May 02, 2001 @05:37PM (#249693) Homepage
    No gaping holes in LInux?

    Of course, the mad rush to upgrade to 2.2.16 was purely cosmetic, and had nothing to do with a root exploit affecting all the previous kernels of the 2.2 series.

    And BIND has never had a serious exploit in it. Oh no.

    [Note for the sarcasm impaired: That was sarcasm]
  • The choice of programming language significantly affects the security (and quality) of the software in question by elimination of whole classes of errors. Buffer overflows are just not possible in the more abstract programming languages such as Lisp, Dylan, Sather, Eiffel, Cecil, ML, OOCaml, and others. Pointer or memory management problems such dangling pointers or memory leaks are not possibilities either.

    That covers the most common programming errors in C/C++. In C/C++, the programmer manipulates raw addresses and allocates and deallocates memory manually. In the other languages, the programmer doesn't have access to raw addresses or manipulate memory directly, so the programmer can't cause crashes and neither can an opponent.

    This is all obvious... but no one seems to learn it.

    Most of these language have very efficient implementations for them... meaning that they have compilers that can produce code that performs in the neighborhood of C code (or sometimes better). And these languages from the Lisp or functional families are much more productive than C/C++.
  • to prevent buffer overflows is... (drumroll please)

    COMPETENT PROGRAMMING!

    Think of it. If I'm going to read in data, I will never ever ever blindly pass in a fixed-length array. In many many cases you can peek ahead to see how much data is waiting to be collected, or specify the length of your array so that the called function will not overflow your buffer. If you can't (then the called function was not written properly, but...) do something silly like allocate a buffer in the heap, and then copy the needed data into an internal buffer afterwards. If the "temp space" buffer is out-of-range-of-executable-code and big enough (reasonably, we can assume that we're not going to receive a 26MB buffer overflow) then even with a function that you can't specify the length of your array, an overflow will not be a problem. It's common sense people, especially with all of the press coverage that buffer overflow attacks have gotten. It's not brain science, just another example of incompetent programming.
  • by carlgt1 ( 448875 ) on Wednesday May 02, 2001 @05:58PM (#249709) Homepage
    I think the development is easier & faster in IIS, e.g. using VB or C++ for distributed COM DLL's; or just using ASP pages with ADO or Oracle Objects for OLE. So right there is a big reason I know a lot of places like IIS.

"It takes all sorts of in & out-door schooling to get adapted to my kind of fooling" - R. Frost

Working...