Slashdot Mirror


Netgear Routers DoS UWisc Time Server

numatrix writes "For the last few months, hundreds of thousands of netgear routers being sold had hardcoded values in their firmware for ntp synchronization, causing a major denial of service to the University of Wisconsin's network before it was filtered and eventually tracked down. Highlights how not to code embedded devices." A really excellent write-up of the incident.

47 of 447 comments (clear)

  1. and now... by Anonymous Coward · · Score: 5, Funny

    slashdot has hard coded a link to the UWisc CS server, sending a DoS to them too

    oh, and fp.

  2. Obligatory Scooby Doo reference by OneIsNotPrime · · Score: 5, Funny

    And we would have gotten away too, if it weren't for those meddling kids!

    --

    ---

    WARNING:Slashdot karma not redeemable in the afterlife.

  3. Poor uWisc by mobiGeek · · Score: 4, Funny
    First the NTP flood.


    Now the /. effect.

    --

    ...Beware the IDEs of Microsoft...

  4. Bad form in general by Hayzeus · · Score: 4, Insightful
    Highlights how not to code embedded devices

    Or any other kind of software for that matter.

  5. I did that to myself once by eschasi · · Score: 5, Funny

    I did that to myself once. It was a piece of software that went to comp.sources.unix (or something similar) and was default-configured to send error mail to an alias that pointed to me. A patch was released very shortly afterwards.

  6. If they did it to my NTP server... by lightspawn · · Score: 5, Funny

    I'd just send the wrong time back to netgear routers. I bet they wouldn't try that again.

  7. Hasn't /. learned? by ndogg · · Score: 4, Funny

    It's not nice to kick someone when they're down.

    --
    // file: mice.h
    #include "frickin_lasers.h"
  8. In other news at the University... by BMonger · · Score: 4, Funny

    "Quick! Block port 80!"

  9. I wonder what NetGear's liability is. by Jammer@CMH · · Score: 5, Interesting

    Were this a Haxor attack, there would be criminal liability. I'm willing to believe that it was a simple mistake, with no criminal intent, but would NetGear be liable civilly?

    1. Re:I wonder what NetGear's liability is. by HBI · · Score: 5, Insightful

      Of course there is liability - liability means that 'is Party X responsible for the damage'. Netgear quite clearly was responsible for the damage. Even if they allege negligence on the part of their employee, it hardly matters: Netgear had a duty to assure that the software would not cause material harm to others. This is a classic product liability case, far as I can see.

      As for the damages, those are somewhat vague. Sure, maybe they could be made to pay for the bandwidth used. The big hit would probably be punitive damages unrelated to the actual loss.

      This would be a fun case and I would encourage them to sue. So many frivolous lawsuits floating around - this one would actually have some merit.

      --
      HBI's Law: Frequency of calling others Nazis is directly correlated with the likelihood of the accuser being Communist.
    2. Re:I wonder what NetGear's liability is. by seanadams.com · · Score: 4, Interesting

      They probably would be liable. What surprised me was that the article made no mention of the financial impact of the flood... are the guys who run the network so far removed from the guys who pay the bills that they have no idea, or do the universities get such sweet deals on bandwidth that it doesn't matter?

      I mean, we're talking 150+ Mbps here, for months on end. That's $15K/mo in bandwidth, assuming they have a really good deal and pay only $100/Mbps/mo.

    3. Re:I wonder what NetGear's liability is. by ShortSpecialBus · · Score: 5, Informative

      We are discussing several options with NetGear. I can't really go into them at the moment, but NetGear has been VERY cooperative throughout this whole thing.

      --
      //FIXME: Bad .sig
    4. Re:I wonder what NetGear's liability is. by barfomar · · Score: 5, Insightful
      Rather than enrichen the lawyers, Netgear should just donate cash and appropriate equipment to the University.

      It would probably be deductable, passing some of the cost on to we taxpayers; but would sit alot better with public perceptions of the company.

      Set up a few CS scholarships or funding a chair at the University would help.

      They could turn it into a publicity coup and end up paying out less in the long run (and screw the lawyers too). Some (not all) insurance companies have finally discovered that it's usually cheaper to negotiate with the plaintiff right away, avoiding all of the sabre rattling and lopping off a third (or more) of the total probable cost.

      Litigation is rarely the best answer.

    5. Re:I wonder what NetGear's liability is. by zimage · · Score: 5, Informative

      according to a post on an ntp.org mailing list, it's costing $266 per day.

  10. Analysis Tools used in this article.. by joeldg · · Score: 4, Interesting

    Wow, that list of Analysis Tools used for tracking this down had a bunch that I was not familiar with.

    RRGrapher, FlowScan and Cflow being ones I have never messed with..

    Cool.. new tools to play with!

  11. Delicious irony by ryanvm · · Score: 4, Funny

    I love the irony of trying to read an article about a DoS from a site that's experiencing one because of the article. Yummy.

  12. Indeed by gilesjuk · · Score: 4, Funny

    The C comments in the netgear code were a giveaway, they match those in SCOs code.

    "/* Huge Bodge */"

    "/* Kludge */"

    "/* Magic numbers are cool */"

  13. NTP should be responsibility of network server by jefbed · · Score: 5, Informative

    It is foolish to code code dependencies on servers in firmware. There are two problems that result from this. The first is that specified in the article, the denial of service. The second is the high potential for broken network dependencies if, for example the hardcoded site goes offline or the ip address changes. Technically each site should be running their own ntpd to ease the load on the primary servers. ntp syncronization should not be the job of the router, but instead the job of the network administrator.

    --
    AntiRight, download now!
  14. Re:Now did NetGear get permission by jenkin+sear · · Score: 5, Informative

    Not in this case- it's a public time server. If it wasn't, they'd be able to just block inbound UDP for the ntp port at the firewall.

    Check out the NTPd man pages- I believe this server is a second echelon mirror.

    --
    What a strange bird is the pelican, his beak can hold more than his belly can.
  15. Re:Err why ? by NetJunkie · · Score: 4, Insightful

    Logging. You want your log files to have the right time. I've used my router log files many times.

  16. It's not about just embedded devices... by sczimme · · Score: 5, Insightful


    Highlights how not to code embedded devices

    I think this highlights a "how not to code" idea, period. In 1986, when I was taking a BASIC (boo, hiss) course in high school, I learned that values should be expressed as variables even if the coder does not expect them to change. So instead of using (32 feet/second^2), one should instead declare g once, using whatever units are appropriate, and thereafter refer to g instead of a hardcoded value. If g changes, the coder need only update one line.

    Note: I am not a programmer/coder/developer in any sense of any of the words, so technical nits should remain unpicked; however, if I am completely out in left field, please feel free to point that out.

    --
    I want to drag this out as long as possible. Bring me my protractor.
    1. Re:It's not about just embedded devices... by Bryan+Ischo · · Score: 5, Insightful

      Good point, but irrelevent. Even if you declare a global variable, you still have to hardcode its value. The fact that the IP address only showed up 1 time in their string search of the binary would indicate that they did exactly what you said.

      So you're not in left field, it's just that the developer who wrote the software apparently did exactly what you said, which was not relevent to the mistake at hand, which was more about the faulty implementation of the NTP service, and the fact that it was hardcoded to a single IP address.

    2. Re:It's not about just embedded devices... by tommck · · Score: 5, Funny
      Of course if the gravitational constant changes, we've got bigger problems than updating your high school programming assignments! :-)

      --
      ---- It puts the lotion on its skin or else it gets the hose again. It does this whenever it's told.
    3. Re:It's not about just embedded devices... by jeffy124 · · Score: 4, Funny
      that is indeed still the case today. This past spring I was a TA for a freshman programming course, and was instructed to deduct points for those who didnt follow such practices -- pi, hours/day, minutes/hour, etc. On exams, the prof would write "-5 - use of magic numbers."

      oh, and we laughed long and hard at the guy who put down:
      const int SIXTY = 60;
      const int TWENTY_FOUR = 24;
      --
      The One Rule Of Chess You'll Ever Need: Don't play someone who carries a kit in their bookbag.
  17. Netgear should bear the cost... by Phil+John · · Score: 5, Insightful

    IMHO, since this is blatantly a case of Netgear cocking up their appliance they should not only a)refund any monies spent by the university in this problem and b)send out patches, at their own cost, to all users of affected routers. For heavens sake, so many people don't have anti-virus software installed, don't patch, why would they with a router? They just think "I plug this in to my cable modem, plug my computer in and I dun got thar intarnet workun" why would they know that they need to upgrade the products firmware?

    --
    I am NaN
  18. And then, on friday august 22 2003.. by 192939495969798999 · · Score: 4, Funny

    And then we got a ridiculous number of HTTP requests about the problem, which caused our server to explode and rain tiny bits of hazardous material into Lake Michigan. Fortunately, the indigenous wildlife was not affected, because nothing lives in Lake Michigan.

    --
    stuff |
  19. Simple Fix by Boss,+Pointy+Haired · · Score: 5, Funny

    UWisc hard codes the date/time on their time time server to 2038-19-01 03:14:00.

    After 6 seconds, the netgear will crash and burn as a result of the Y2K38 problem and the requests will be no more.

  20. Think Strata by n9fzx · · Score: 5, Informative
    Dave Mill's original clock distribution architecture ala NTP was based loosely on the Bell System's inverted tree structure. Only the top level servers are locked to the national servers; the next level is locked to the top level, and so on. In theory, it's a perfectly scalable infrastructure, with terrific fan-out.

    Unfortunately, the code droids seem to think that there's something magical about being at Stratum 2 instead of Stratum 3 or Stratum 4; also, they seem perfectly willing to take advantage of a nonprofit consortium (the owners/operators of public Strat 1 clocks) instead of spending the $500 or so on hardware to service their own customers, who presumably paid them for something.

    Anyone else remember the Good Old Days when it was considered polite to ask first before using someone else's clock?

    [Truechiming since 1987...]

    --
    ...-.-
  21. Re:Err why ? by rusty0101 · · Score: 4, Interesting

    Routers tend to log activities such as access, configuration changes, firewall violation detection, etc. and it is often handy to know when that event occured.

    Home centric routers do not tend to have their clocks set before shipping as there is no assurance that a battery keeping that clock powered will be doing so ver the entire span of time from manufacture to customer plugging it in. Even if it did the drift involved would give some inaccuracy as well.

    There are two correct solutions. One is that Netgear should operate their own time server and hard code that server as a secondary or fallback time server. The primary time server should be aquired from the internet service provider when they get their network ip address via dhcp.

    -Rusty

    --
    You never know...
  22. SEGA's online game servers by lightspawn · · Score: 4, Insightful

    The (official) reason "Alien Front Online" (a game with the word "Online" in the title!) went offline less than a year after its release is that SEGA developers hard coded the server's IP address, and did not provide any means of changing it. When the company hosting the server went under (gameloft?) it couldn't be moved to a different company since it wouldn't have the same address. Hence, buy a game advertised as "online", never be able to play it online.

    It's not a new story, but I think it bears repeating as a showcase of stupidity.

  23. Mentioned on ntp.org mailing list a while ago.. by James_G · · Score: 5, Informative

    I can't get to the article, so in the meantime, here's the text of an email about this with some details that was sent to an ntp.org mailing list back in June:

    David L. Mills wrote on 2003-06-26 10:55:

    > Guys,
    >
    > I find myself on the review team for an incident taking place at U Wisconsin/Madison. Apparently, the Netgear folks have manufactured some 700,000 routers with embedded SNTP clients configured to use the public U Wisconsin NTP server. The server address is unchangeable and the client cannot be disabled. If that isn't bad enough, if the client gets no replies, it starts sending packets at one-second intervals until forever and without backoff.
    >
    > The U Wisconsin folks determined some 285,000 different IP addresses are now sending between 300 and 700 packets per second requiring between 150 and 400 megabits per second. Apparently, the principal eason for this flux is misconfiguration of the firewall component of the router. This is costing them $266 per day.
    >
    > The Netgear folks were slow to respond until U Wisconsin folks emailed the entire senior management and others known to be U Wisconsin alum. Netgear says they have no way to recall those routers and no way to insure the products are updated from the web site. The products cost between $20 and $40 depending on rebate.
    >
    > U Wisconsin have considered several ways to deflect the tide, the most promising may be noting the source port 23457 unique to these products and tossing them at the doorstep. The products do not use DNS and are not configurable. Another way considered is to configure a subnet visible to BGP and convince the ISPs to punch holes in the routing fabric. Send money.
    >
    > I never thought it could get as bad as that. My reasoned recommendation was to fire up the lawyers and sue the bastards for costs and punitive damages and to injoin the company from selling any products until proved safe. There is apparently some standards group that allegedly reviews and certifies new products for Internet use. The Netgear products were all certified, which surely says nothing about the standards group.
    >
    > Include me in any replies; I am not on any ntp.org list.
    >
    > Dave

  24. Poor UWisc by EmagGeek · · Score: 5, Funny

    First the time server

    Then the e-mail server (from the helpdesk requests)

    Then the webserver (from /.)

    What next?

  25. Re:So who got fired? by Cali+Thalen · · Score: 4, Insightful

    Simple mistake, sure. Barely a trickle of wasted bandwidth, hard to even believe it matters...

    Bah.

    This is one 'simple mistake' by one company that namaged to send a constant "250,000 packets-per-second (and over 150 megabits-per-second)".

    Now I know Netgear is a pretty big outfit, but there are LOTS of companies like that out there, and these little mistakes can add up. How much network traffic could be avoided with proper programming?

    Also, this kind of makes me think about the useless network activity my XP box (bleh) tries to send out. Multiply that by millions and millions, and you get a number a whole lot bigger than the one above.

    Who pays for all that wasted bandwidth?

    --
    Chaos, panic, disorder...my work here is done.
  26. Our usage graph...You Jerks! by ShortSpecialBus · · Score: 5, Interesting

    want to see what the usage graph for a slashdotting looks like?

    http://www.cs.wisc.edu/cgi-bin/cricket/grapher.cgi ?target=%2Fweb-servers%2Fwww;ranges=d%3Aw;view=Acc ess

    Yeah, I work at the CSL at UW Computer Sciences, and the tracking of this netgear issue was quite an interesting tale. Had us stumped for quite some time.

    --
    //FIXME: Bad .sig
    1. Re:Our usage graph...You Jerks! by ClippyHater · · Score: 5, Funny

      Oh yeah?! Well, we just /.'d that one, too!

      Go ahead, give us another, I dare ya! :)

    2. Re:Our usage graph...You Jerks! by ShortSpecialBus · · Score: 4, Informative

      I am a network admin, heh.

      The load is fine. It's already subsiding. We can handle slashdottings, heh.

      Look at the weekly graph, we had 2 this week already!

      Just slows down for a while, but doesn't break anything.

      --
      //FIXME: Bad .sig
    3. Re:Our usage graph...You Jerks! by Just+Some+Guy · · Score: 4, Funny
      You really just linked to content that
      1. is dynamic and has to be generated every time?
      2. is graphic?

      ShortSpecialBus, eh? ;-)

      --
      Dewey, what part of this looks like authorities should be involved?
  27. It generated costs on the other side too by Anonymous Coward · · Score: 5, Interesting

    This didn't only generate trouble for U of Wisconsin, it also generated a lot of cost for some people using the router. Since the server was down, the Firmware has been trying to connect to the time server constantly, thereby keeping the connection from timing out. (Who wrote that algorithm?) For people whos connections are on metered internet access, this ment the connnection was never closed and they are stuck with the bill.

    Aparently there are a lot of Netgear users in Germany who are stuck with horrendous bills now. I wonder if Netgear is going to pick those bills up?

  28. Alas, not true... by OmniGeek · · Score: 4, Informative

    The problem is, if one reads the article (nudge, nudge), that 1) at least some of the routers do this with NO operator interface or settability, and 2) some older routers would keep hitting the hardcoded server address even when configured to use some other address. Plus 3) there were some fixes that weren't. The routers in question accept ANY response, even if it isn't an NTP packet! Sending the wrong time would have zero impact. (Why does a home-network router need a clock so badly, anyway? It's not like they do useful remote logging or anything...)

    This is a case of ill-designed, badly written, poorly debugged, wretchedly tested code. The article details the testing of a code fix that still didn't fix things properly. On the bright side, Netgear is trying to Do The Right Thing now, and they deserve credit for that.

    --

    "My strength is as the strength of ten men, for I am wired to the eyeballs on espresso."
  29. Re:So who got fired? by NulDevice · · Score: 5, Insightful

    Becasue it's not just a use of a public service, it's a complete abuse of a public service. It'd be like you damming up the colorado river for your own personal use and then telling LA to upgrade their water supply.

    This was a big screwup - when an NTP query fails, you don't start retrying every second until it comes back. You don't hardcode a single server address for it. And you don't put this in 700,000 pieces of released hardware.

    --

    ----
    "I used to listen to Null Device before they sold out."

  30. Re:So who got fired? by Dr.+Blue · · Score: 4, Insightful

    In the full description, you'll notice that they include the "strings" output from the netgear software, which includes hardcoded IP addresses.
    Netgear reported that the non-UW addresses were used for debugging by the developers.

    Here's the interesting part: at least two of those are 12.* addresses --- cablemodems with attbi.com. So if you want to know who the developer responsible is, it might be a reasonable guess it's whoever lives at those IP addresses! :-)

  31. They originally thought it was an IT Dept! by altek · · Score: 4, Interesting

    This is funny - one of the head sysadmins for UW's network ops gave a firewall talk in one of my grad classes last semester. I remember him saying that they recently put a packet filter on their FW to block NTP requests because they started getting high numbers of them..

    They thought that maybe somewhere someone had published a net time server in a document or whatever and that an IT department was deploying it on workstations or there was a document floating around telling people to set it up as their time server...

    Looks like they finally got to the bottom of it!

    --
    THE MAGIC WORDS ARE SQUEAMISH OSSIFRAGE
  32. This is par for the course for Netgear. by Anitra · · Score: 5, Informative

    Someone on the coding team at Netgear needs to be taken outside and shot; they never seem to learn their lesson about abusing other people's services.

    Story:
    I used to work/volunteer for DynDNS.org. The Netgear firmware client for DynDNS tried to update regularly (I believe every 5 minutes) whether or not the IP address had actually changed AND whether or not it got a response. Once enough of these got out into the market, this became quite a problem for DynDNS, especially with users complaining that we "blocked" their hostnames updated with the Netgear client when their router advertised specifically that it worked with our service.

    I believe after a year or so of nagging the Netgear people, they finally released a firmware update that actually fixed the problem.

    --

    Have you read the Moderation Guidelines Addendum?
  33. Re:So who got fired? by Malc · · Score: 4, Insightful

    Not their first simple mistake though. Ask the people behind dyndns.org what they think of the Netgear RT314's (and other products like the RT311????) implementation of the dyndns.org client. Trust me, they have nothing nice to say.

  34. Thank you, UWisc and Netgear by SamMichaels · · Score: 4, Insightful

    Seriously. THANK YOU for not filing law suits, hiring the FBI, CIA, Marines, calling upon Patriot Act, etc.

    To Netgear, THANK YOU for not calling upon the DMCA, filing NDA law suits, etc.

    It was resolved in a diplomatic and professional manner...and the write up explaining the entire incident was educational and informative.

    Now, if it had been SCO or Microsoft involved......

  35. They're not the only ones by whterbt · · Score: 4, Interesting

    I took a Unix course at the University of Colorado in Fall 2001, I think. We had a guest lecture from Evi Nemeth, who is a professor emeritus at CU.

    She had done some work on a couple of the DNS root servers, G and H if memory serves. She showed a rate of query graphs for those servers. There was a huge jump in the middle of the graphs that corresponded neatly with the release of Windows 2000.

    Turns out Win2000 had it hard-coded to consult the DNS root servers every time it wanted to run a nslookup!

    --
    Too late to be known as Bush the First, he's sure to be known as Bush the Worst.
  36. To Netgears Credit...Okay maybe not.. by wacko-Netgear · · Score: 5, Informative

    First off i would like to disclaim that my views do not represent the company's views. With that said, I can say that I worked at Netgear for a short period of time in the area of support.

    This specific issues was raised back in may... I can say within that same week they had already started testing firmware to fix the issue. The issue comes with the huge break between Netgear engineers and Netgear support. Umm often times the supports reps do not know of the release of the product until like 2 days or 3 days after its already hit the market. On top of that there is very little communication between the two on firmware and whats the latest version. Its been only in the past couple weeks have they really started to communicate.

    Along with that Netgear did not have a device testing program until i would say about 3-4 months ago, before that it was just people there who had the time to test products... woudl test them. I know being one of those who has and still does test there products, that the communication is not very stable and that sometimes issues like these get short-cutted for other major issues such as security and hardware stability.

    I am also sure anyone in the hardware market understands the rush that sometimes comes with products; in netgear this is not different. I can this was an issue that was not expected and was fixed as soon as it was reported. It should have never gone out as is and the products should have been tested throughly in the consumer enviorment. But, to Netgear's credit the company does sell pretty good products and there customer support although you may not always be able to get your answer to the issue or may not be able to sometimes understand the reps any and all issues do esclate to people who can fix them. If you issues are not getting fixed at that point the president of the company does read your mail and does forward them to the Head of the customer support. I can say that issues like these will become less of a problem now that Netgear has started a beta program and engineers are required to speak to support engineers on a regualr basis