Slashdot Mirror


Security Hole In SNMP

wiredog writes: "From ZDNET comes the news that there is apparently a serious security flaw in the Simple Network Management Protocol, used to control routers and other network devices." An anonymous reader points to the CERT advisory as well.

76 of 267 comments (clear)

  1. Not much scanning for it yet. by UnderAttack · · Score: 3, Informative

    So far, DShield does not have too much scanning for it yet (data).
    But I guess the kiddies are still sharpening the tools...

    --
    ---- join dshield.org Distributed Intrusion Detec
  2. Interesting by rabtech · · Score: 3, Insightful

    This appears to be quite serious... check out the list of vendors: http://www.cert.org/advisories/CA-2002-03.html#ven dors

    It includes Cisco, Microsoft, HP, Sun, Novell, and many others. When it comes to SNMP bugs, it would seem that most vendors are created equal.

    --
    Natural != (nontoxic || beneficial)
    1. Re:Interesting by Syberghost · · Score: 2

      Two funny bits about this:

      Sun, HP, and RedHat all listed links to the patches before patches were ready.

      In fact, as of this morning, only RedHat had coughed up a patch yet. But Sun and HP still recommend you install the nonexistent patch right away.

      Also, hmm, Microsoft doesn't use Open Source code, but their product is curiously affected by this vulnerability that mostly afflicts UNIX-based implementations...

    2. Re:Interesting by Syberghost · · Score: 2

      Besides which, what equates Open Source with all flavors of Unix?

      UCSD's Free reference code, that's what. The same thing Microsoft used.

  3. From patches to kings by caferace · · Score: 3, Informative
    Seeing as how CERT was aware of this last summer, and has been working with vendors (ALL the big names) to get it corrected at least we can hope that the patches are available.

    Getting them installed may be a different story. There are probably a lot of "forgotten" SNMP devices out there...

  4. I thought SNMP was a security hole... by mumblefish · · Score: 2, Informative

    How many other protocols tell you "That's the wrong password, try this one ...".
    It's probably changed since I last worked with it, but it just looked kindof funny.

    matt

    1. Re:I thought SNMP was a security hole... by hardaker · · Score: 2

      Um, the protocol has never operated that way so I'm sort of confused why you think it would. In fact, the version 1 and version 2 of the protocol wouldn't even answer at all if you sent it an incorrect community name. Version 3 does issue a "report" saying the cryptographic checksum was incorrect.

      --
      The next site to slashdot will be ready soon, but subscribers can beat the rush and start slashdotting it early!
    2. Re:I thought SNMP was a security hole... by fiber_halo · · Score: 2, Informative

      It hasn't worked that way for a long time, but here's what used to happen in some implementations:

      - Send an SNMP set or get to a box. Use any ol' random community string.
      - The box then sends an SNMP trap to its management station which contained the cleartext real community string.

      If you had a packet sniffer, you could easily get the community string. I don't remember offhand if the trap contained the read-only or read-write string, but still, either way, I don't want a device doing that.

      That was a long time ago. I can't imagine any devices still have such a hole unless they haven't been upgraded in years.

    3. Re:I thought SNMP was a security hole... by vrmlguy · · Score: 2
      On many systems, the SNMP daemon/service can be configured such that the trap contains a so-called "trap" string, used exclusively to validate the trap. This prevents the problem outlined by fiber_halo above.

      For example, on a WinNT server that isn't too far from me, I bring up the [Network] control panel, hit the [Services] tab, double-click on the [SNMP Service] line, hit the [Traps] tab, and see that teh [Community Name] is set to "trap". Also, if I hit the [Security] tab, I see that the [Send Authentication Trap] checkbox is checked, so an invalid community string will cause a trap to be sent to the management station.

      On the other hand, the [Accepted Community Names] are set to "Public", with READ-ONLY rights, and "Private", with READ-WRITE rights. Finally, [Accept SNMP Packets From Any Host] is checked, rather than [Accept SNMP Packets From These Hosts]. This means that the system is rather open, but since it is behind a firewall that blocks all SNMP traffic, it isn't too much of an issue.

      --
      Nothing for 6-digit uids?
  5. Not a SNMP hole by Anonymous Coward · · Score: 4, Informative

    This is a security hole in many implementations of SNMP, not in the protocol itself. This means that products can be patched without switching to a new protocol. Of course, SNMP devices will still be insecure if you don't change the default community strings (and even then, SNMPv1 sends the strings in plaintext).

    1. Re:Not a SNMP hole by Quill_28 · · Score: 4, Informative

      Actually this is first post that has made any sense. The problem in not with the SNMP protocol, but rather the software that implemented SNMP. This means the one hack(crack) will effect net-snmp but not MS's crappy agent and vice-versa. btw security problems with the SNMP protocol have been addressed in SNMPv3. Also, in most cases the only thing the crackers can do is shut the box down. I know DoS is a big deal, but taking over a router is bigger.

    2. Re:Not a SNMP hole by tqbf · · Score: 4, Informative
      If this was a hole in an SMTP server it would make sense to say that it's specific to the server. Because the protocol in question in SNMP, it is NOT valid to make this assumption. Virtually all implementations of SNMP trace a lineage back to a common, ancient implementation.

      The reason for this is that SNMP uses an incredibly complicated wire format: ASN.1/BER. ASN.1/BER is based on the (once seductive) idea that you could avoid interoperability and extensibility problems by (in effect) defining a programming language to encode and decode data structures. As long as you implement the primitives of the language, third parties can implement arbitrarily complex constructs on top of the protocol without changing your code.

      The reality, of course, is that almost all queries fit into a tiny subset of the "language", and that the "language" itself is so complicated to implement (relative to other protocols) that nobody is willing to "reinvent the wheel".

      So they all downoad the (free) CMU or UCD SNMP library and use that.

      Hence, everyone is vulnerable.

    3. Re:Not a SNMP hole by tqbf · · Score: 4, Informative

      Nobody uses SNMPv3.

      Nobody uses SNMPv2

      Everyone uses SNMPv1

      People will ALWAYS use SNMPv1. Nobody will set up a new authentication infrastructure just for SNMP. They will build ad-hoc backchannels to isolate SNMP from the rest of the Internet. They will fail repeatedly, but it won't be nearly as expensive as deploying an entire new security infrastructure for network management.

      This is the same reason why nobody will ever use DNSSEC, and why everyone uses SSH. SSH did the simplest thing possible and left the infrastructure up to the consumers. DNSSEC and SNMPvNG repeatedly fucked this simple problem up by trying to mandate more of the environment than was required to get off the ground.

    4. Re:Not a SNMP hole by hardaker · · Score: 3, Interesting

      Actually, that's not true. Of a survey I recently took of SNMP users, 33% did use SNMPv3 and what's even better is that 15% of the total didn't use v1 at all.

      People are beginning to use v3 as the product vendors are beginning to ship it in the majority of the products. Unfortunately, it's still not "all", as you well know.

      (and as for dnssec, the reason it can't be used effectively now is that verisign won't let it be used because they refuse to sign the .com/.org/.net roots)

      --
      The next site to slashdot will be ready soon, but subscribers can beat the rush and start slashdotting it early!
    5. Re:Not a SNMP hole by Dwonis · · Score: 3, Funny

      It's not really MS bashing if it's true.

  6. From the so-never-mail-your-passwords dept? by neoevans · · Score: 5, Insightful

    Who's in charge of Acronyms around here? It's not an SMTP problem!

    --
    "You are not a beautiful and unique snowflake."...Tyler Durden
  7. The scary part is... by wiredog · · Score: 2

    Disabling SNMP doesn't close the SNMP hole, in some cases. Apparently, the hole may be in SNMP itself.

    1. Re:The scary part is... by 2starr · · Score: 3, Interesting

      Well, yes and no. It sounds like there are some assumptions that are commonly made when processing traps. However, if someone wants to be malicious, those assumptions may not hold. But, the protocol isn't necessarily flawed. It just means that developers need to check their assumptions (like they should all the time).

      --

      "Let your heart soar as high as it will. Refuse to be average." - A. W. Tozer

  8. Well duh. by Anonymous Coward · · Score: 3, Funny

    What do you expect from a protocol named Security's Not My Problem?

    1. Re:Well duh. by TheGratefulNet · · Score: 2
      SNMP is also known as:

      Saturate the Network with Mangled Packets.

      (the early CMU code used the phrase "mangled packet" as one of its error messages)

      --

      --
      "It is now safe to switch off your computer."
  9. Re:What is the flaw? by richw · · Score: 2, Informative

    Looks to me like there's a pretty complete analysis of the flaws on the CERT page linked to in articlie

  10. End of email from SANS... by heliocentric · · Score: 5, Informative

    Turning off SNMP was one of the strong recommendations in the Top 20 Internet Security Threats that the FBI's NIPC and SANS and the Federal CIO Council issued on October 1, 2001. If you didn't take that action then, now might be a good time to correct the rest of the top 20 as well as the SNMP problem. The Top 20 document is posted at http://www.sans.org/top20.htm

    --
    Wheeeee
    1. Re:End of email from SANS... by 2starr · · Score: 2, Insightful

      Let's not send the wrong message here... they said turn it off if you don't need it. Don't blow up your car just so no one will steal it. Lock the doors!

      Similarly, SNMP is a really useful tool that administrators should be making even more use of. They shouldn't get rid of it just because of this bug or the fact that lots of people use defautl passwords. That doesn't make the tool bad. Fix the bug(s). (Have there been other bugs recently?) Set the passwords. Save the car.

      --

      "Let your heart soar as high as it will. Refuse to be average." - A. W. Tozer

    2. Re:End of email from SANS... by klieber · · Score: 2, Informative
      Did you even bother to read the CERT advisory?

      "As a general rule, the CERT/CC recommends disabling any service or capability that is not explicitly required, including SNMP. Unfortunately, some of the affected products exhibited unexpected behavior or denial of service conditions when exposed to the OUSPG test suite even if SNMP was not enabled. In these cases, disabling SNMP should be used in conjunction with the filtering practices listed below to provide additional protection. "

      --
      Gentoo Linux http://gentoo.org/
  11. Re:What is the flaw? by kindbud · · Score: 4, Informative

    Once again a security flaw is found, but nobody tells anyone what the security flaw is.

    Bullshit:

    http://www.kb.cert.org/vuls/id/107186
    http://www.kb.cert.org/vuls/id/854306

    These are linked to on the first page of the CERT Advisory. RTFA, doofus.

    --
    Edith Keeler Must Die
  12. SNMP's a pretty damned scary protocol anyway by ErikTheRed · · Score: 3, Insightful

    Even without the aforementioend flaws (whatever they are), SNMP is a truely horrible protocol. The only real security in most implementations is based on IP Address and SNMP Domain Name. Most network devices will be "polite" with their IP addresses (especially when DHCP is enabled), so taking over an IP address is rarely a problem (assuming IP spoofing doesn't suit your needs). And the Domain Name is rarely difficult to brute-force.

    But this assumes that security is even configured at all. So many network devices support SNMP these days that anything less than perfect administration can result in all kinds of trouble. Be honest: how many networks that you know of don't have several devices set to the "public" domain with no address filtering. Hello, Denial of Service.

    After all these years of (alleged) focus on network security, I'm pretty shocked that there isn't a widely deployed standard based on public-key encryption, digital signatures, and other means of access control. You can't really make the argument that this is rocket science anymore...

    --

    Help save the critically endangered Blue Iguana
    1. Re:SNMP's a pretty damned scary protocol anyway by Quill_28 · · Score: 3, Informative

      Ever heard of SNMPv3?

    2. Re:SNMP's a pretty damned scary protocol anyway by Simpler · · Score: 2, Interesting
      Sure... but a frail minority of network devices support V3. SNMPv1 is still the norm for all but a few device providers (CISCO).

      Face it... if you must use SNMPv1, make sure the router configuration port is on a private LAN and not accessible to the service ports you are providing. And pray someone doesn't break through.

    3. Re:SNMP's a pretty damned scary protocol anyway by nickjennings · · Score: 2, Insightful

      The security in ANY service (*read: smtp, dns, snmp etc.*) is questionable when you do not restrict who is able to access it.

      Why, just because SNMP provides a community string as a level of deterent, you says it's insecure because of this? Anyone with a tinge of security mindedness knows that you don't want SNMP exposed to the world in the same way you don't want HTTP available to external IPs (on an intranet machine).

      If you bind the snmp daemon to the internal network, and disable snmp-sets, you have a pretty locked down information gathering service.

      I use SNMP as a remote information gathering tool for a home-brewed network monitor, No One can even know I am running SNMP untill they first break into my internal network.

      Not saying it can't be done, but if it was done, I'd have more to worry about than SNMP.

    4. Re:SNMP's a pretty damned scary protocol anyway by TheGratefulNet · · Score: 2
      Even without the aforementioend flaws (whatever they are), SNMP is a truely horrible protocol.

      flaimbait...

      snmp has survived the years where others have tried and failed. perhaps this is horrible to you, but I call it interoperable and highly functional.

      --

      --
      "It is now safe to switch off your computer."
    5. Re:SNMP's a pretty damned scary protocol anyway by TheGratefulNet · · Score: 2
      the fact that its essentially changed very little over the years, AND the fact that its an ietf standard and would have changed if it was severely lacking, DOES say that its a strong and highly useful/productive protocol.

      we're not talking about some closed vendor product here; this is an ietf-controlled protocol and if it really was junk (as some would have you believe) then it would have evolved into something totally different. and its really just slightly changed over its lifetime, with the core philosophy still being 'model everything as variables and instances and keep the data types as simple as possible'. seems to have gotton us by nicely for such a long long time..

      --

      --
      "It is now safe to switch off your computer."
  13. Re:Alternatives by stinky+wizzleteats · · Score: 3, Informative

    SNMP is well known to be a security problem (at least in the networking community). The answer is to cut all of it off at your firewall, and make sure your internal networks are zoned appropriately. The best way to deal with it right now is to put all your equpiments' management addresses in a management VLAN, of which none of the user ports are members, and then control access to it via the router you'll use to get to the VLAN.

  14. overflowing by yoink! · · Score: 2

    The software vulnerabilities could be exploited to varying effect, Lindner added. In some cases, PCs, routers and other devices could be shut down or cut off from the Internet. "In the extreme case, you could exploit a buffer overflow to take control of the device," Lindner said.

    Unfortunately the article is of provides too little information to know what's actually going on. A search on Google, as of yet, provides equally little information on this or these "bugs." Funny how much the above vagueness sounds like behaviour people used to engage in order to take over IRC channels. Perhaps some of the solutions that have been implemented in other areas can benefit this one... DoS attacks on http servers anyone? The CERT advisory, on the other hand provides the necessary information, but how many people are really going to read that?

    The one thing I dislike reading ZDNet, is how they state it could affect "PC's." Perhaps people who haven't figured out IPTables or who fail to use ZoneAlarm are at risk. With the extent of today's always-on internet connections it seems that most of the problems facing the end user, ie: worms, viruses, stolen data, wrecked systems, etc., are the result of insufficient knowledge concerning the tool they are using. Now if you can't drive a car without a license.... ?? Well think about it.

    What! You don't think computers can kill? :-)

  15. Wrong summation (again). by hardaker · · Score: 5, Informative

    The security flaw is not in the protocol, but rather in how people and companies have implemented it. Unfortunately, most people did in fact implement it in such a way that makes the products vulerable to crashing and /or buffer-overflow attacks. A good portion of the SNMP code to date is written based on early work from the cmu-snmp package, which was a reference release of the protocol. Hence, many of the companies and products that make use of that original code (including ucd-snmp and net-snmp, which I'm the lead developer for) are subject to the vulnerabilities as well. The ucd-snmp and net-snmp packages have been fixed as of a few months ago (and upgrading software is easy on linux, *bsd, etc boxes). However, people with flashroms containing software will have a much more challanging time getting updates from their vendors and installing them in a quick fashion if the deployment numbers of those types of boxes are large.

    --
    The next site to slashdot will be ready soon, but subscribers can beat the rush and start slashdotting it early!
    1. Re:Wrong summation (again). by timothiy · · Score: 5, Funny

      Screw you! I read it. I just didn't understand it. And what, you think that's going to stop me from posting a story? Like that's stopped me before.

      --
      Karma: Terrible (mostly affected by moderation done to your comments)
  16. No security in SNMPv1 by Simpler · · Score: 4, Interesting
    SNMP v1 as defined in RFC 1213 and RFC 1215 has no security features built in to begin with. You have to go to SNMP v2 or v3.

    This means that if you like to configure yoru routers using SNMPv1 and someone intercepts your UDP packet, they can read the community string (normally used as an ad-hock password) you use and have access to your NE (network element).

    This is a common security failure with a LOT of telecom equipment. Normally, if you enable SNMP on your boxes, keep the conguration port (normally found outside of service ports) inside a private LAN and hope for the best!

    And the kicker is, I work for a telecom company implementing SNMP solutions on OOSes and EMSes. Even after 5 years or SNMPv2 being out (SNMPv3 has also come out in the last few years), most NE's being produced on the market (save for the big boys -- Nortel, Cisco, etc) come with standard SNMPv1 managment and configuration capabilities. Safe surfing.

    1. Re:No security in SNMPv1 by hardaker · · Score: 2

      No standardized version of SNMPv2 contains security either. Only SNMPv3 has security.

      Note: there were some defined versions of SNMPv2 that never made it very far through the standards process. These were snmpv2*, snmpv2c, snmp2p, ... They have never been deployed and though they might have been secure they really shouldn't be called SNMPv2.

      --
      The next site to slashdot will be ready soon, but subscribers can beat the rush and start slashdotting it early!
    2. Re:No security in SNMPv1 by TheGratefulNet · · Score: 2
      they can read the community string (normally used as an ad-hock password) you use and have access to your NE (network element)

      not always. many vendors use ACL's (access lists) to police their PDUs based on various criteria (source ip being the most popular).

      --

      --
      "It is now safe to switch off your computer."
  17. scary... by macsox · · Score: 2, Funny

    the scariest thing about this is that windows ships with snmp off by default, making it (at least at first) immune. what are the odds?

  18. Excellent by GMFTatsujin · · Score: 3, Insightful

    IANA Programmer, IANA Sysadmin, I'm just a user... Mod appropriately, please.

    But still, this notice strikes me as excellent. First, it draws attention to a hole that can be patched, and I'm sure a number of programmers are grabbing down what source they can to implement a fix for it. Corporations who bitch and moan about how security flaws should not be broadcast to the world strike as not being willing to fix them quickly, or are willing to sell packages with flaws in them and hope to get away with it. Yay CERT!

    Second, while the magnitude of impact may be great, it's sure a change from the near-weekly "a hole has been found in Microsoft Product X" announcements we get. It stands out because we don't get "Major security hole in basic technologies" announcements very often - usually they're linked to some broken MS implementation of it, or a proprietary protocol looking for adoption.

    Plus, it goes to show that the Internet is an interdependent community that relies on basic technologies to work, rather than perpetuating the myth that Microsoft *is* the Internet. And the community will either fix the problem, or adopt a new, more rigorous standard.

    And speaking of rigorous, isn't it nice that the basic standard has stood up this long under heavy usage? Can MAPI32 say the same thing? Or VBScripting? Or IIS? Or...

    I love watching big stuff break for two reasons - I'm a pyromaniac who loves to see thinks go up in flames, and I'm always uplifted by a well-executed community response.

    GMFTatsujin

    1. Re:Excellent by Anonymous Coward · · Score: 2, Funny


      IANA Programmer, IANA Sysadmin, I'm just a user... Mod appropriately, please.

      Ahh, the mark of someone trolling for karma.


      But still, this notice strikes me as excellent

      Really? I thought it was the clueless stick that strikes you. daily. The notice is no different than any other Cert notice.


      First, it draws attention to a hole that can be patched

      Just like every other security hole notice...


      and I'm sure a number of programmers are grabbing down what source they can to implement a fix for it.

      Wow. You're right. 0 is a number.


      Second, while the magnitude of impact may be great, it's sure a change from the near-weekly "a hole has been found in Microsoft Product X" announcements we get.

      While the magnitude of imoact of an asteroid hitting the earth may be great, it's sure a change from the near-weekly "an airport was shutdown due to a putz forgetting his camera" accouncements we get.


      It stands out because we don't get "Major security hole in basic technologies" announcements very often - usually they're linked to some broken MS implementation of it,

      Right. Like bugs in Microsoft Sendmail. Or Microsoft WuFTP. Or Microsoft Red Hat linux.


      Plus, it goes to show that the Internet is an interdependent community that relies on basic technologies to work, rather than perpetuating the myth that Microsoft *is* the Internet.

      Even more of the obligatory MS sucks, trying to dissipate the blame.


      And the community will either fix the problem, or adopt a new, more rigorous standard.

      Which explains why XWindows is the Linux windowing system of choice.


      And speaking of rigorous, isn't it nice that the basic standard has stood up this long under heavy usage? Can MAPI32 say the same thing? Or VBScripting? Or IIS?

      And speaking of apples and oranges, do you understand the difference between a standard and an implementation?


      I love watching big stuff break for two reasons - I'm a pyromaniac who loves to see thinks go up in flames, and I'm always uplifted by a well-executed community response.

      What's your point again?

  19. Re:What is the flaw? by Florian+Weimer · · Score: 4, Informative
    Obviously, you have never read such notes, otherwise you would now that CERT/CC never releases information which can be used to reproduce problems. They do point to the problems, but do not provide details. (Most of the time, you can guess the concrete problem, though.)

    In fact, there are several different buffer overflow and format string bugs, in different SNMP implementations. The OUSPG report (which triggered this advisory) seems to be more detailed, but I still have to read it. (OTOH, SNMP vulnerabilities are rather boring stuff nowadays, any sane person blocks SNMP at the closest router.)

  20. Do as usual by tyrr · · Score: 2, Insightful

    1) Don't run it if you don't use it.
    2) If you use it and implemented it the way it's supposed to be implemented (listen only to trusted hosts) - upgrade with the next roll-out.
    3) If you use it but don't know what you are using - get a clue, so that you fall in 2). Every lister on your box can fail you, be prepared, you have none to blame but yourself.

  21. Re:Alternatives by gmack · · Score: 3, Informative

    This is why I've always tended to run snmp on a non routable address block. It's saved me a few times.

  22. Testing this vulnerability by Calle+Ballz · · Score: 2

    I've noticed there's a lot of secrecy in this code. How do I, as an adminstrator who uses SNMP confirm any of this? All of these descriptions are about as vague as saying "We have a secret exploit that will kill any machine using the ICMP protocol, not exactly sure but it exists!". Does anyone have any more information as to what exactly this exploit does in order to crash. This is just not enough information:

    Numerous vulnerabilities have been reported in multiple vendors' SNMP implementations. These vulnerabilities may allow unauthorized privileged access, denial-of-service attacks, or cause unstable behavior. If your site uses SNMP in any capacity, the CERT/CC encourages you to read this advisory and follow the advice provided in the Solution section below.

  23. Not a flaw in the protocol, but implementations by PhotoGuy · · Score: 2

    From what I can glean from a quick read of the advisories, is that it's not a flaw in the *protocol*, but a flaw in the many *implementations*. Big difference (but still quite annoying to fix up, especially for vendors whose hardware isn't flashable).

    -me

    --
    Love many, trust a few, do harm to none.
  24. Bogus release number for SNMP Research? by Lumpish+Scholar · · Score: 2
    The most recent releases (15.3.1.7 and above) of all SNMP Research products address the vulnerabilities identified in the following CERT vulnerability advisories ...
    They've just announced 15.3. There's a version 15.2.1.7. Anyone know if that's what they really mean?
    --
    Stupid job ads, weird spam, occasional insight at
    1. Re:Bogus release number for SNMP Research? by Steve+Moulton · · Score: 2, Informative

      Sure, I've a clue.

      15.2.1.7 is a release that shipped for nearly
      a year on some operating systems up to October
      of 2001. We started shipping 15.3 in July, and
      15.3.1.7 is the release that has changes
      addressing the OUSPG-related issues, which started
      shipping in October.

      The 15.3.1.7/15.2.1.7 release number similarity
      is an unfortunate accident - had I thought
      about it we might have done it differently.

  25. Idiot's Guide to Security... by thrillbert · · Score: 2

    Why does a vulnerability need to be discovered for people to realize that allowing any type of services (telnet, tftp, snmp or http) from outside your internal network to your router is outright stupid?

    And in the case of an ISP, they should know their IP addresses and what addresses they use for internal machines, so creating simple Access Control Lists in their routers to deny all snmp from everywhere except their own internal machines should be as common sense as One leg at a time when putting your pants on while standing up.

    access-list 161 permit tcp 192.168.148.0 0.255.255.255 any eq 161 access-list 161 deny tcp any any eq 161

    1. Re:Idiot's Guide to Security... by rcw-home · · Score: 2
      Also if you have SNMP enabled on the routers themselves, IOS's SNMP server can be configured to use an access list:

      access-list 20 permit [monitoring ip address]
      snmp-server community [communityname] RO 20

      The access list number, 20, is arbitrary. It's in a range that denotes a simple IP access list.

  26. Updated story on cnet's news.com and some links by wavelet · · Score: 2, Informative

    http://news.com.com/2100-1001-835602.html

    To mitigate this vulnerability OULU (the guys that found this a year ago) has some good links at http://www.ee.oulu.fi/research/ouspg/protos/testin g/c06/snmpv1/

    Securing SNMP on Solaris
    http://ist.uwaterloo.ca/security/howto/2000-10-04/
    Securing SNMP in Windows
    http://www.sans.org/infosecFAQ/incident/SNMP.htm
    Securing your Cisco Router when using SNMP
    http://www.sans.org/infosecFAQ/netdevices/router.h tm
    SNMP - simple management tool for hackers?
    http://www.nwfusion.com/newsletters/sec/1004sec1.h tml
    Windows 2000, SNMP and Security
    http://www.securityfocus.com/focus/microsoft/2k/sn mp.html

    1. Re:Updated story on cnet's news.com and some links by vrmlguy · · Score: 2

      Of the links listed above, most of them are fairly useful. The University of Waterloo link, however, is worthless. All it does is describe how someone who admits that they know nothing about SNMP turned off the SNMP daemons.

      --
      Nothing for 6-digit uids?
  27. CERT Considered Harmful. by tqbf · · Score: 2, Insightful
    According to ZDNet, this vulnerability was reported to CERT by a research team one year ago. It was only today announced in an advisory. CERT maintained a multiple-month window of time to suppress the advisory.

    And yet, looking at the advisory, the most important vendors don't yet have patches . In particular, Microsoft, Cisco, and Sun remain vulnerable, with no released patches!

    The entire rationale behind keeping vulnerabilities quiet is to enable vendors to fix the problem before the exploit falls into the hands of attackers. The entire rationale behind CERT's very existance is to act as a clearinghouse for vulnerabilities so that fixes can be coordinated prior to announcements. Virtually every credible security researcher has repeatedly exclaimed that CERT's model doesn't work. I can't imagine a clearer vindication for CERT's critics than this.

    From the looks of this announcement, this may well be the most serious security vulnerability ever published; it's a root hole in literally every piece of Internet infrastructure deployed to date (assuming lack of filtering; but remember that most networks aren't properly firewalled off internally from customers and insiders). If CERT can't successfully coordinate a response to this vulnerability, why should we trust them with any other problems?

    SNMP is a bad protocol. It's universally hated and derided by implementors. This is an amazingly great example of the problems that spring from shallow implementation gene pools; most of these vulnerabilities are probably due to code in CMU and UCD's (related) SNMP libraries. This is an excellent example of why it is critical to diversify implementations of core protocols on the Internet. Some incredibly hardworking researchers have been working towards these ends for years; the network engineering community has largely responded to them with derision . Think about this.

    This problem was so subtle that it wasn't detected for years and years, even though the vulnerability boils down to simple buffer overflows. This is because SNMP is an ASN.1/BER protocol. There are like four bazillion ways to represent a length in BER. Talented researchers have continuously reiterated the need for simple, modular protocols to replace the rickety ad-hoc mess we use now. They have again met with derision from the network engineering community. Think about this.

    Finally, the fact that SNMP is an insanely complicated protocol has not been lost on attackers. The very fact that CERT "accelerated" the release of this advisory indicates that they knew attackers "could" find some of these vulnerabilities. The fact is that some black hats almost certainly have worked this out. If we had published last year, when the discovery was made, just like the overwhelming majority of other vulnerabilities, the problem would have been fixed a year ago. If you manage a large network, how do you know you haven't already been compromised? Attackers have had years to exploit these problems without you knowing about it.

    Why isn't anyone learning from these mistakes?

    1. Re:CERT Considered Harmful. by ryanr · · Score: 3, Informative

      According to ZDNet, this vulnerability was reported to CERT by a research team one year ago. It was only today announced in an advisory. CERT maintained a multiple-month window of time to suppress the advisory.

      And yet, looking at the advisory, the most important vendors don't yet have patches . In particular, Microsoft, Cisco, and Sun remain vulnerable, with no released patches!

      The entire rationale behind keeping vulnerabilities quiet is to enable vendors to fix the problem before the exploit falls into the hands of attackers. The entire rationale behind CERT's very existance is to act as a clearinghouse for vulnerabilities so that fixes can be coordinated prior to announcements. Virtually every credible security researcher has repeatedly exclaimed that CERT's model doesn't work. I can't imagine a clearer vindication for CERT's critics than this.


      Not that I'm trying to validate CERT's model mind you...

      They were somewhat forced into releasing today. There was a leaked early version of the advisory (with no details) that had a release date of February 20th. Details were spilling out from various sources. Given how many patches were announced today after the advisory, it's safe to say that those vendors must have been pretty close to being ready.

      It also demonstrates that it's not possible to try and give that many vendors that much warning, and not have leaks.

  28. S.N.M.P. by Anonymous Coward · · Score: 2, Funny

    Security's
    Not
    My
    Problem!

  29. Re:OpenBSD by hardaker · · Score: 2

    ucd-snmp 4.2.2 is not vulnerable, unless the OpenBSD packaging of it is broken. See the vendor statement for net-snmp.

    --
    The next site to slashdot will be ready soon, but subscribers can beat the rush and start slashdotting it early!
  30. Re:Correction... by thrillbert · · Score: 2

    Yeah.. sorry about that, I was looking elsewhere when I left the tcp portion in there. I meant to change it to /any/.

    Thanks! :-}

  31. Re:Alternatives by fanatic · · Score: 2

    Disable snmp-sets (which allows the remote admin to change data on the target system). I only use SNMP for infomation gathering, and do nothing with snmp-sets.

    We do the same, almost universally, certainly for all of our Cisco routers and switches. Unfortunately, that does not address all the issues here, as some of these are buffer overflows which are independent of community string and allow DOS attacks. Unfortunately, the grisly details don't seem to be available - CERT refers to docs at mitre, but mitre currently isn't disclosing what these contain.

    --
    "that's not encryption - it's a new perl script that I'm working on..." - from some Matrix parody
  32. Those evil Microsoft d00ds by Zico · · Score: 5, Informative

    You'll notice that Microsofts response was to turn off the SNMP service until they get a patch ready.


    Yeah, those bastards. Why can't they do things like the following model citizens?

    • Red Hat: "Red Hat Inc. has investigated this vulnerablity, and currently has a candidate fix which is undergoing regression testing. Updated ucd-snmp packages incorporating this fix will be available shortly from this page shortly."
    • Sun Microsystems: "Sun is currently generating patches for this issue and will be releasing a Sun Security Bulletin once the patches are available."
    • Caldera: "A fix for supported versions of OpenServer 5 will be available at a later date."
    • SGI: "SGI acknowledges the SNMP vulnerabilities reported by CERT and is currently investigating. No further information is available at this time."
    • Cisco: "Cisco Systems is addressing the vulnerabilities identified by VU#854306 and VU#107186 across its entire product line."
    • Netscape: "As a result, we have created fixes which will resolve the issues, and these fixes will appear in future releases of our product line. To Netscape's knowledge, there are no known instances of these vulnerabilities being exploited and no customers have been affected to date."
    • Lucent: "Fixes for the rest of the affected product portfolio will be available shortly."
    • HP: "Patches in process. Watch for the associated HP Security Bulletin."
    • Novell: "The SNMP and SNMPLOG vulnerabilities detected on NetWare are fixed and will be available through NetWare 6 Support Pack 1 & NetWare 5.1 Support Pack 4. [None of which are available yet.]"
    • Compaq: "At the time of writing this document, COMPAQ continues to evaluate this potential problem and when new versions of SNMP are available, COMPAQ will implement solutions based on the new code."
    • Redback Networks: "Redback Networks, Inc. has identified that the vulnerability in question affects certain versions of AOS software on the SMS 500, SMS 1800, and SMS 10000 platforms, and is taking the appropriate steps necessary to correct the issue."
    • Network Computing Technologies: "Network Computing Technologies has reviewed the information regarding SNMP vulnerabilities and is currently investigating the impact to our products."
    • DMH Software: "It is unclear at this point if our snmp-agent is sensitive to the tests described above."
    • Avaya: "Avaya Inc. acknowledges the potential of SNMP vulnerabilities and is currently investigating whether these vulnerabilities impact Avaya's products or solutions. No further information is available at this time."
    • AdventNet: "The release of AdventNet Inc's. Service Pack correcting the behavior outlined in VU#617947, and OUSPG#0100 is scheduled to be generally available to all of AdventNet Inc.'s customers by February 20, 2002."

    1. Re:Those evil Microsoft d00ds by SecretAsianMan · · Score: 2
      You forgot one:
      • FreeBSD: Fixed already
      --

      Washington, DC: It's like Hollywood for ugly people.

  33. Re:What is the flaw? by Florian+Weimer · · Score: 2

    That's one particular effect of the vulnerabilties on the products of one vendor (actually, multiple vendors, because of Cisco's acquisitions).

    As expected, the Cisco notice does not contain any explanations which would make easier for you to conduct your own tests.

  34. Re:OpenBSD by hardaker · · Score: 2

    Probably. I'd actually bet they only tested one version and didn't test 4.2.2 (which would have told them it was safe). It's easier to just say "4.2.3 is safe" and not test the rest of the versions.

    --
    The next site to slashdot will be ready soon, but subscribers can beat the rush and start slashdotting it early!
  35. Jeeeeez by Shoten · · Score: 2

    So what? SNMP is so ludicrously insecure as a protocol in the first place, this bit of news is like saying "new security vulnerability in the doors of cars that don't have locks in the first place." Between the fact that there's no granular access control, no widely accepted authentication that isn't plaintext, and simply no reason for the outside world to be able to communicate with anyone's network via SNMP in the first place, if anyone has SNMP accessible by others they were screwed long before this discovery. I doubt this changes much one way or the other.

    --

    For your security, this post has been encrypted with ROT-13, twice.
  36. There is not secret by RobertGraham · · Score: 3, Informative

    The advisories contain a link to a tool that will test the vulnerability. There are no secrets being kept, it's all out in the open. The problem is that no "easy-to-use" tool has been created (except for checks that have been added to scanners).

  37. blanket statements are misleading by TheGratefulNet · · Score: 2
    as someone qualified to comment on this (I've spent the last 15 yrs specializing in snmp and routers/networking) snmp isn't any more or less secure than it ever really was. ie, the protocol is fine; but some implementations may be sloppier in their bounds checking than others.

    buffer overflows are platform and agent dependant. you can't just say the protocol SNMP has inherent overflow problems.

    no doubt some vendors' implementations have overflows and DOS issues. note the CERT title Multiple Vulnerabilities in Many Implementations . this is a far cry from the blanket statement that slashdot used as their headline (sigh).

    --

    --
    "It is now safe to switch off your computer."
  38. Ob-BOFH by sharkey · · Score: 2

    No, it's Exchange Server. Stupid Non-technical Manager's Proposals.

    --

    --
    "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
  39. public and private by garver · · Score: 2

    I was honestly expecting the CERT advisory to be something like "90% of all SNMP agents were found to be using the default community strings. Your pants our down, buddy, turn off the agent."

    Seriously, I've always been surprised the script kiddies haven't gotten hold of this. How hard would it be to write something that finds vender X's boxes and shuts down their interfaces? Switches cannot always be behind firewalls, and the ones in front are the juicy ones.

  40. No experts on Slashdot? by fwr · · Score: 2
    What amazes me is that non of the experts have posted on SlashDot (except for hardaker from NET-SNMP.org). Where's Dougie? Where's Jim from AOL? Where's Norm from HP? Where's Wojcik? For the critically OpenSource croud, what about Shane.O from OpenNMS. How about Wodisch? And you can't forget Bubba SNMP. Then there's Peckar from Fognet, and Imhoff, and Croft from VoiceStream, and Sorrel from T.RowePrice. Last but not least is Waldbusser. (appologies for those that I've missed. No, I didn't include all those that have authored SNMP RFC's, rather those that work with the protocol every day and have practical experience with various implementations, and whom I have personal experience).

    If you don't know these names you can always check out the OVForum and join the fun. I've been "working with" these guys for quite a few years and if you want to tap some of the most experienced network engineers that deal with SNMP for the largest companies in the world then you're welcome to stop by. Yes, it's HP OpenView centric, but unless it's really off-topic then general questions are, generally, tolerated.

    So that this is not taken as a totally self-serving reply here are some suggestions that I use that generally mirror the recommendations from CERT:

    Create a separate VLAN or management network for your LAN infrastucture.

    Protect this management network from the rest of the network via a firewall or at a minimum access-list.

    Use access-list or similar technology to limit SNMP access to your WAN infrastructure from your management network, or better yet specific network management servers.

    Use SNMPv3 if at all possible.

    Just like any other security matter, make sure that you are running the appropriate version of code and or patches on your systems.

    Hope this was helpful!

    Fred Reimer

  41. Re:Fucking LAZY Vendors by fanatic · · Score: 2
    There are at least two posts above yours that give the exact commands to fix this problem on Cisco routers.

    If you mean using access lists to protect the SNMP process, sorry but:
    1. Doesn't exist on switches (at least at our levels) and interface ACLs don't exist in the MSMs we're using in our 65xx core switches. Yes MSMs are old, but they work and we (until today) had more important things to do that replace routing modules that did the job..

    2. Doesn't protect agains source IP address spoofing, which is an issue since SNMP is UDP.

    This is probably what we'll end up doing anyhow, to narrow our vulnerability while we certify a new release, but it's by no means a true fix for the problem.

    If you mean turning off SNMP altogether in the router, it's like poking out your eyes to protect them from sun damage. Network Management Systems (as well as a lot of my home-brewed scripts) assume that SNMP is present and working. Still, in some cases, it may actually be necessary.

    I still stand by my original point - if the OpenBSD crew can audit their kernel code and theb OpenSSH code, why can't Cisco and Microsoft (OK, forget MS, they just don't care), with more money than I can think about, do the same?
    --
    "that's not encryption - it's a new perl script that I'm working on..." - from some Matrix parody
  42. we are seeing SNMP scans by chongo · · Score: 2, Informative
    We have seen SNMP scans at a rate of about 17 per 4 hours (~6/hr) as of 2300 PST. The rate has been steady for the past 23 hours. One would expect the scan rate to increase as the exploit tool gets into the hands or more script kids. Prior to this week it was rare for someone to probe the SNMP ports.

    The scans are talking the IP address space in pseudo-random order. It appears to hold the top 16 bits constant while walking the lower 16 in a pseudo-random order. We have not seen simple SNMP scans that just walk up the IP address range.

    It appears that the tool is initially just looking for open SNMP ports. The tool could be simply collecting open SNMP ports for later system cracking.

    --
    chongo (was here) /\oo/\
  43. Old News. But it does bring up other issues.. by TeddyR · · Score: 2, Informative

    The problems with SNMP mentioned here is actually OLD NEWS for any system administrator that can spell his/her job title. I know we came across this issue well over a year ago, with emails to those concerned that were not answererd, or were answered with "That how its supposed to work..."...

    I, and most admins I know will completely block SNMP at the border routers (only allowed in through an IPSEC or VPN connection.). I used to have a simple demonstration of how "evil" unportected SNMP could be by showing admins just WHAT kind of info their SNMP enabled switches/routers haapilly gave out.. (quick hint: if u have the snmp tools in linux:

    snmpwalk {ip address of any SNMP enabled cisco device} public

    And watch as a list of the devices ARP tables shows you exactly which ports have which devices, as well as the routing table for the device and all sorts of info that any snoop can use to help them build a better picture of how the network is configures... [in fact, Fluke makes a software product called Network Inspector that uses the SNMP data from switches among other things to build a full network map including stuff to show things like exactly which switch port a device is on as well as the distance between two devices and how a packet IN THE SWITCH ENVIRONMENT travels from one device to another]

    http://www.flukenetworks.com/us/LAN/Monitoring+A na lysis+Diagramming/Network+Inspector/Overview.htm

    The other real issue that this brings up is what about the implementations of OTHER protocols like syslog? How many vendors use the same BASE code that may require a patch in flash as a firmware update?...

    --

    --
    Time is on my side
  44. Cable modems... by wowbagger · · Score: 2
    As I understand it, many cable modems are controlled by SNMP - that's how some folks are removing the upload speed caps.

    Now, considering that many cable modems are owned by the USER, not by the cable supplier, how will they be updated?

    If the modem can be updated remotely by the ISP, then it can also be updated by some 5|<r!97 |<!66!E, and that scares the hell out of me.

    If the modem can only be updated from the client's side, then how the hell will the cable company know if what update to direct the user to?

    And worst yet, what if the modem cannot be reflashed? I can just see the conversation now:

    Cable Company Rep: Sir, your modem is bad, and needs to be updated.
    Luser: But I'm connected just fine.
    CCR: But your modem has the SNMP flaw and is being used by bad people to do bad things.
    Luser: <Stack Fault> Me not understand. Me connected. You just trying make me spend money.
    CCR: Look, sir, if you don't get a new modem we will have to turn off your service.
    Luser (who had fully rebooted his speech centers): Fine! Then I won't pay my bill.
    CCR: Money talks, bs walks. OK, we won't make you update, we couldn't really anyway, goodbye.

  45. Have you tested their software? by BLKMGK · · Score: 2

    I was made aware of this test suite just a few days before CERT put out it's alert on this - early I might add. The software has been available on that WEB site for MONTHS! Anyone who cared to download it could've tested this themselves - it's a pretty complete test suite.

    Anyway, I was asked to test this set of tools against MSFT servers and then some networking hardware. So far the tests against WIN2K have been pretty good. I've managed to get SNMP to die gracefully a total of 2 times. No BSOD, the service simply dies. Howver in order to do this I had to run all 4 test sets at once and damn near FLOOD the machine I was testing - over 5meg worth of data at one point. When the service did die it didn't die consistantly - that is to say we cannot pick a single "magic packet" to kill WIN2K's SNMP service. Starting all test suites at the same point kills the service only occasionally and always at different test sets. I've been told via word of mouth that NT4 is even more robust - we're testing that next. :-)

    IF we get the same results from NT4 then it would seem to me that Microsoft's response to this isn't so bad. Their software doesn't APPEAR to be particularly vulnerable - hell if anything I was surprised at how robust it seemed to be with the absolute FLOOD of pure crap we were sending it's way - SNORT was going nutz BTW noting "potentially dangerous traffic" (lol).

    Networking hardware may or may not be effected more easily. We've had some procurement issues but I expect we'll be attacking some test equipment soon - starting with CISCO stuff. Network management software also tends to talk SNMP. TIVOLI (note IBM didn't really mention this in their response - AIX?!), Compaq Insight Manager, TNG, HP OpenView, and many others could be effected. We're going to test what we can based on what we use. Printers and other networked office equipment might also have issues but that's low on my list of priorities right now.

    Overall, I'm not really worried by this YET. When it was first brought to my attention the message was one of panic - that this software would be the "kiss of death" for most anything running SNMP even if the Community string wasn't known. Well, so far it's really yet to kill much of anything in our lab! I'm sure we'll find some things that keel over more quickly but so far our primary operating platform has shrugged off 99% of these attacks and our IDS spotted it even without having an alert put on it just for this traffic.

    Anyone else testing this software? Finding problems? Hint: it seems to work best when run off of LINUX\Java. When run on a WIN2K\Java platform it didn't appear to form the packets correctly - we're getting different\better results on LINUX (shrug). I'd still be careful to only test this on isolated test netowkrs though - just in case ;-)

    --
    Build it, Drive it, Improve it! Hybridz.org
  46. Re:Alternatives by Tony-A · · Score: 2

    Kindergarden lesson.
    Don't talk to strangers.

    And this means you do not connect a vulnerable server to the internet to download patches.

  47. Re:The benefits of diversity by Tony-A · · Score: 2

    We'll see how it plays out. Methinks it will cause much less problems than such as Code Red. Looks like the *BSDs may have had it pretty well patched for a year or so. Guess the closed-source don't have very good eyes.

  48. Re:SNMP Hole is that of Administration by hyrdra · · Score: 2

    Often times they do...do a tracert on any UUNET dialup and find the dialup server and dump the MIB tree. I think you will be suprized at the information you can learn AND change.

    --


    "I'll just chip in a bit for RedHat: I actually have that installed on my university machine." - Linus, '95