Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Bug Security Encryption Hardware

Duplicate SSH Keys Put Tens of Thousands of Home Routers At Risk 114

alphadogg (971356) writes A setup mistake has apparently left hundreds of thousands of home routers running the SSH (Secure Shell) remote access tool with identical private and public keys. John Matherly, founder of a specialized search engine company whose technology is used for querying Internet-connected devices, found more than 250,000 devices that appear to be deployed by Telefónica de España sharing the same public SSH key. A different search found another 150,000 devices, mostly in China and Taiwan, that have the same problem. Matherly said in a phone interview on Wednesday it is possible the manufacturers copied the same operating system image to all of the routers.
This discussion has been archived. No new comments can be posted.

Duplicate SSH Keys Put Tens of Thousands of Home Routers At Risk

Comments Filter:
  • No surprise... (Score:5, Informative)

    by jasno ( 124830 ) on Thursday February 19, 2015 @10:15AM (#49087431) Journal

    Most embedded guys are batting out of their league and don't have a clue when it comes to security... and I say that as an embedded guy who often has to do exactly that to get the product out.

    Most embedded development I've done is far from 'software engineering' - it's whack and hack until the tests pass(often because you loosened the testing requirements).

    • Re:No surprise... (Score:5, Insightful)

      by sinij ( 911942 ) on Thursday February 19, 2015 @10:34AM (#49087581)
      Government already demands product certification (e.g. FIPS), it is time corporate and individual consumers started doing the same. We expect our power supplies to not electrocute us, there is a certification program to ensure that is the case, why is when it comes to data security we are so lax?
      • by BVis ( 267028 )

        1) "Gubmint Bad", or
        2) General ignorance, or
        3) Billions of lobbying dollars from the manufacturers ensuring that the cost of each unit doesn't go up $1, or
        4) ...
        5) PROFIT

        • by raymorris ( 2726007 ) on Thursday February 19, 2015 @11:04AM (#49087863) Journal

          Most electrical equipment mass-marketed in the US is tested by UL (Underwriters Laboratories). Many consumers and most large purchasers recognize the UL mark as indicating a degree of safety. Contracts can specify that products an components meet various UL standards. That's why your router's power suppy wall-wart probably has the UL mark, and doesn't generally catch fire.

          The "Gubmint" doesn't force UL certification or listing, purchasers choose UL listed products. There's no "billions of lobbying dollars", in fact companies PAY to have their products tested, because if they are recognized by UL they don't sell nearly as well. Not only do individual consumers recognize the UL logo, but purchasing agents for Walmart and Target know they'd rather buy and sell UL tested products, so if you want Walmart to order 500,000 fire safes from you, you better have UL test it.

          So no, it doesn't have anything to do with "gubmint" or "lobbying" - UL or another organization could check the firmware in the router just like they already check the power supply circuit.

          • by sinij ( 911942 )
            There are already programs in place. One example, NIST certifies private security testing laboratories to test according to FIPS standards. It just nobody asking for certified products outside of the government procurement.
            • by sjames ( 1099 )

              After the recent crypto fiasco, a NIST certification might be seen as a mark of shame.

            • There are already programs in place. One example, NIST certifies private security testing laboratories to test according to FIPS standards. It just nobody asking for certified products outside of the government procurement.

              FIPS 140 certification, which I assume is what you're referring to, is almost worthless in terms of determining how resistant to real-world attack a product really is. It would have done nothing to prevent the problem discussed here. Its main use is as a measure of how desperate a vendor is to get government contracts, which is also why no-one asks for it outside government procurement.

          • Kinda Apples and Oranges. UL testing is fairly straight-forward. The quick explanation - they stress the device in various ways and see if it catches on fire. Checking a crypto setup to a reasonable level of satisfaction can't be done externally. The code for the entire system must be examined, and that is relatively difficult to do.

            -Matt

          • Not only do individual consumers recognize the UL logo, but purchasing agents for Walmart and Target know they'd rather buy and sell UL tested products, so if you want Walmart to order 500,000 fire safes from you, you better have UL test it.

            So no, it doesn't have anything to do with "gubmint" or "lobbying" - UL or another organization could check the firmware in the router just like they already check the power supply circuit.

            You're assuming perfect certification and a lack of counterfeiting. The running joke at the moment is that CE stands for Chinese Engineering rather than being the European equivalent of UL. We see products in Australia a lot carrying both the UL and CE logos, because frankly the same products are sold all over the world. It quickly becomes apparent when dismantling them that either the certification is fake or that the certification isn't worth the paper it's printed on. In fact early last year if I recall

            • >. You're assuming perfect certification and a lack of counterfeiting

              No, I'm pointing out that it's better than NO testing or certification. If 5% of the products are counterfeit, that means 95% aren't. Compare the safety of what's one the shelves at Walmart vs what street vendors sell in Mexico or China. It does in fact work.

              > For a certification scheme like this to work you need perfect certification

              There's no "would need". UL has been testing products for over a hundred years, so it's not theo

              • Compare the safety of what's one the shelves at Walmart vs what street vendors sell in Mexico or China.

                Well that's kind of my point. These stories while sensational are actually quite rare. I think you were being generous to my argument about 5% being counterfeit, in the western world it would be lower. But equally low are the number of products we have major security issues with. Yes it seems like every week there's another story about some small embedded device with a problem, but every week 20 new such devices hit the market. 10s of thousands of home routers? I have about 5 routers in my home, so the effe

                • > . I think you were being generous to my argument about 5% being counterfeit, in the western world it would be lower. But equally low are the number of products we have major security issues with.

                  Being in this industry, it seems to me that ALL major router manufactures have had multiple major security problems. NONE of them have had major "catch on fire" problems to my recollection. So the assertion that the number of devices with security problems is the same as the number that have fire problems is f

                  • My reply didn't exactly match your comment, but I'd say it's true for counterfeiting too. Pick a random electronic device at a random big-box store. It's probably NOT counterfeit. It probably DOES have lax security.

                    Even more, I'm talking about testing like UL does. UL focuses primarily on fire safety, and it works - our electronic devices rarely catch fire. Fire safety is a success. Data safety is a miserable failure - I can personally hack most devices.

                    • I don't think the point was to actually have UL look into it, but rather create a security certification scheme.

                      But while your comments are true in the general sense I think there is more to it than that. I don't think I've been to a random big-box store in years. Now that could be our local market where the big-box stores do their best to screw users with ridiculous prices, but one thing that is very popular in Australia for instance is drop shipping. In many cases I have no idea at all where the device co

      • by gmack ( 197796 )

        They could do that, but then Telefonica wouldn't be able to buy the routers from China for $15 each (non wholesale price for the exact model Telefonica had in my house when I lived in Spain).

      • by brunes69 ( 86786 )

        FIPS is a joke and doesn't really do much of anything to ensure real security. Its just a compliance checkbox. An appliance running a piece of software can be 100% insecure from the ground up and be FIPS certified quite easily.

        • Re:No surprise... (Score:4, Insightful)

          by sinij ( 911942 ) on Thursday February 19, 2015 @11:06AM (#49087887)
          FIPS is not a joke - it ensures that that your cryptographic algorithms are implemented correctly and meet the standard. So you don't generate matching private/public keys or all 0 keys and other preventable but non-obvious to people outside of crypto mistakes. FIPS does not guarantee that you use these algorithms intelligently, there are other certifications that do that.
          • Re:No surprise... (Score:4, Insightful)

            by brunes69 ( 86786 ) <slashdot@nOSpam.keirstead.org> on Thursday February 19, 2015 @12:10PM (#49088451)

            It is a total joke.

            FIPS 140-2 ensures your algorithm is part of a standard set - big deal. It does no investigation at all as to how you use that algorithm or why you use it. If you are using AES with a FIPS-certified library, you get the checkbox. Nevermind the fact that the private key you are using is sitting in plain text on the disk.

            Its the same as all federal standards - FedRAMP, FIPS, FISMA, ISO 27K. They all do *SOME* things, but none of these standards, or any intersection of them, actually do anything with regards to real secure engineering. Note, I am not even sure it would be close to practical to do this. I am just raising awareness that saying that an application is "FIPS certified" is next to useless.

            Source: I have dealt with getting applications certified in all of these umbrellas, and more. It is an extremely time consuming and expensive process for all involved to get certified - but in the end does very little in terms of real application security. But it sure makes the auditors a lot of money!

            • by sinij ( 911942 )
              First, there is no such thing as perfectly secure information system. The best we could do is mitigate identified risks. The best any standard could do is specify how to mitigate specific risks.

              In case of NIST CAVP (part of FIPS testing most people are familiar with), the risk they are mitigating is that cryptographic algorithm you are using is flawed in some way. This certification program is hugely successful, there are robust standards and specs, and hardly anyone these days end up with bad algorithms
              • by brunes69 ( 86786 )

                FIPS level 3 has nothing to do with software, that is the level which requires safeguards against physical tampering - tamper-evident seals etc. Again, nothing to do with the actual operation of the software. Level 4 takes Level 3 up a notch requiring even more hardening around "the module"... but AGAIN, nothing about how your software actually USES the module. Such a thing is totally outside the scope of FIPS.

                FIPS is an outdated standard. It made sense when it was created and crypto was not well understood

          • FIPS may not be a joke, but most government networks are, especially, but not limited to, those outside of the DOD and IC. They are (in large part), administered by people who follow proscribed procedures, not people who understand what they're doing or why. While some "rogue" administrators will implement best practices beyond those they're required to do, they are the exception, not the rule -- especially admins who actually understand what they're doing rather than overestimating their own competence,

      • Yes please, require 10 certifications until you can connect a router to the internet. Best is the build is signed, and the user's access to the system is restricted, otherwise they can install malware because of infected computers. Of course every single of those 10 certifications needs money, but everybody can pay 1.000.000$ for releasing a build, so thats no problem. With government certifications, it would be ensured that insecure and uncertified router firmwares like dd-wrt are forbidden, which is good

      • Sure, we can start doing product certification. You won't be able to buy $15 routers anymore though, they'll go back up to $150.

        • by sjames ( 1099 )

          And they'll still be insecure.

          • Only in ways that the certification fails to cover.

            • by sjames ( 1099 )

              That depends. If the certification process is highly regulated, they'll find new and more spectacular ways to fail. It the certification itself is left for the market to figure out, they'll vote with their dollar and select for the rubber stamps and drive the people who actually know the standard and expect it to be met into another line of work.

    • Re:No surprise... (Score:4, Informative)

      by internerdj ( 1319281 ) on Thursday February 19, 2015 @10:56AM (#49087759)
      My first job was a contract to a network equipment manufacture. I spent most of my time in their hardware division. At least for that particular company, hiring was based entirely about making hardware. Lots of electrical engineers, a few structural guys to do placement, software engineers were only for the network management division. A lot of the guys who were tasked with writing the embedded stuff were out of their league to write code period, but project management was so physical engineering heavy that they didn't understand what was going wrong. So yeah, I've seen the same thing.
    • Most embedded guys are batting out of their league and don't have a clue when it comes to security... and I say that as an embedded guy who often has to do exactly that to get the product out.

      Most embedded development I've done is far from 'software engineering' - it's whack and hack until the tests pass(often because you loosened the testing requirements).

      Gee man, get a spine and at least raise a stink about the problem next time. I understand that sometimes you gota just deliver what you got for business reasons but if you keep doing that without making a point about the quality and security of the solution, eventually they will *rightly* hold you responsible for the failures. Such stuff can get hard to hide on a resume. Do the *right* thing as often as you can and when someone forces you into doing the wrong thing, document the issue, if for nothing els

    • by Lumpy ( 12016 )

      On the same note, Most CS guys could not survive 10 minutes in an embedded systems world. And it's not because those of us in Embedded systems don't have the skills, it's because the Idiots in upper management wont let us have the resources to do it right. If I can give you 900% more security by raising the cost of the box by $0.10 each then you freaking do it, not the "it will probably go unnoticed, so it's not that important" crap I hear.

  • WTF? (Score:3, Insightful)

    by Anonymous Coward on Thursday February 19, 2015 @10:18AM (#49087459)

    Isn't TFS supposed to explain what it's talking about?
    1. Why does a router have public-facing SSH? The reason to use SSH on your router is to configure it, over a wired connection from your PC, innit?
    2. Why does a router come with SSH keys already installed? Don't you generate your own SSH keys?

    • Isn't TFS supposed to explain what it's talking about?
      1. Why does a router have public-facing SSH? The reason to use SSH on your router is to configure it, over a wired connection from your PC, innit?
      2. Why does a router come with SSH keys already installed? Don't you generate your own SSH keys?

      Given that they were deployed by one particular provider (Telefónica de España in this case) they probably requested a special firmware from the vendor for their CPE to allow remote management. And then did a bad job of keeping the master key safe (by putting a copy of it on 250,000+ devices). And then the vendor used it elsewhere, too.

      Honestly, after the Carna botnet, does anyone think the internet isn't a raging sea of completely compromised devices?

      • by gmack ( 197796 )

        Isn't TFS supposed to explain what it's talking about?
        1. Why does a router have public-facing SSH? The reason to use SSH on your router is to configure it, over a wired connection from your PC, innit?
        2. Why does a router come with SSH keys already installed? Don't you generate your own SSH keys?

        Given that they were deployed by one particular provider (Telefónica de España in this case) they probably requested a special firmware from the vendor for their CPE to allow remote management. And then did a bad job of keeping the master key safe (by putting a copy of it on 250,000+ devices). And then the vendor used it elsewhere, too.

        Honestly, after the Carna botnet, does anyone think the internet isn't a raging sea of completely compromised devices?

        I don't think so. The pubic and private keys are only good for outgoing connections and not incoming.

        • I don't think so. The pubic and private keys are only good for outgoing connections and not incoming.

          Not funny. Anyway, having the private key is a valid way to authenticate inbound (if so configured) and its often enabled by default as it is thought to be a pretty good way to do it (until you put the same keys on a quarter of a million devices).

          • by nyet ( 19118 )

            The host key pairs are NOT used to authenticate the incoming user.

            They're used to prevent MITM attacks (by uniquely identifying the endpoint), so this statement

            "It’s hard to say if the key errors means that a remote attacker could log into all of the devices, as it would depend on how the routers are configured for remote authentication."

            It's complete bull; the article is written by a clueless moron.

            Attackers would have to use the keypairs to setup MITM attacks for EVERY machine they wish to compromis

            • by msauve ( 701917 )
              "The host key pairs are NOT used to authenticate the incoming user."

              Are you speaking with specific knowledge of the device in the article? Because, in a general sense, keys can be, and are used for ssh authentication.

              AUTHORIZED_KEYS FILE FORMAT
              AuthorizedKeysFile specifies the files containing public keys for public key authentication; if none is specified, the default is ~/.ssh/authorized_keys and ~/.ssh/authorized_keys2.

              The device at hand is said to run Dropbear, which is "Compatible with OpenSSH

              • by nyet ( 19118 )

                Why in the world would you add a device's public host key to the authorized key file?

                • by msauve ( 701917 )

                  Why in the world would you add a device's public host key to the authorized key file?

                  Which authorized key file are you asking about?

                  One can picture an ISP, who has to securely support many installed devices, going to a manufacturer and saying: "Here, put this private key in the devices, so when we connect we know it's one of our devices. And put this public key in the authorized_key file, so we can can connect easily without every support agent needing to know a password which works on all those devices.

                  • by gmack ( 197796 )

                    Right, you would put Telefonica's pubic key into the authorized_keys on each device file but never the local device public key. The simple fact is that unless they are far more stupid than the article suggests this cannot be used to break into the routers.

                    • by msauve ( 701917 )
                      It shouldn't be a security issue. So what if they all have the same private key? It's very doubtful that those devices ever initiate connections, even less likely that private key is used for important authentication/authorization. It's probably only used so Telefonica can verify they're ssh'ing to one of their own devices before making changes.

                      On the other side, having a public key in authorized_keys increases security. As I pointed out, it eliminates a need for a whole bunch of support personnel to know
                  • by nyet ( 19118 )

                    Again, why would you use the host key for this purpose? Most likely the client would generate the key (no relation to the host key) they would want preloaded. The manufacturer has no reason to use the host key as both a host key AND a key in the authorized_key file. That is simply stupid.

                    • by msauve ( 701917 )
                      What are you babbling about? Define your terms, if you can. Which is the host? Which is the client? WTF are you talking about?
      • Honestly, after the Carna botnet, does anyone think the internet isn't a raging sea of completely compromised devices?

        It's the World Wide Web and the Wild Wild West all at the same time.

    • by Anonymous Coward

      I could be wrong, but Telefónica (Actually Movistar) uses a Internet portal to manage your router: Portal Alejandra [movistar.es].

      In fact, some routers had their configuration pages crippled so you have to configure them throug the portal.

    • The answer to both those questions (and more!) is the same: users are stupid, so make the router as easy as possible to configure even at the cost of security (assuming the programmer even notice that the security got fucked up).

      I'm surprised the damn things don't have public-facing telnet or UPnP [wikipedia.org] (and for all I know, they might).

    • The reason to use SSH on your router is to configure it, over a wired connection from your PC, innit?

      What is this 2014? The PC I bought this year doesn't have a wired connection.

      2. Why does a router come with SSH keys already installed? Don't you generate your own SSH keys?

      Users are never trusted with such things. Also I've never seen one where the SSH key was configurable. I believe something like this should automatically happen on first powerup without any visible indication to the user that it is or has happened.

  • by Anonymous Coward

    Matherly said in a phone interview on Wednesday it is possible the manufacturers copied the same operating system image to all of the routers.

    Well, yes: 99% certainty is a "possibility".

  • FTFY (Score:2, Informative)

    by Anonymous Coward

    John Matherly, founder of a specialized search engine company whose technology is used for querying Internet-connected devices

    Translation -

    John Matherly, founder of a company who randomly portscanned over 350,000 internet-connected devices whithout their user's consect, for the sole purpose of enriching his company's bottom line.

    • by sinij ( 911942 )
      Yes, clearly what John Matherly did was by far more harmful than idiotic design decisions that resulted in such unforgivable "barn doors open" security holes. Because if he didn't disclose this vulnerability, nobody else would have found it and everyone would still be perfectly safe.

      /sarcasm
  • by Anonymous Coward

    Do the majority of users ever log into their device via ssh? So if everyone has the key you can decrypt other people's traffic, but the leaked keys in question probably don't allow for login.

    • Of course they do... The whole point of having this set to the same thing on routers was that an ISP was providing their customers equipment (the router) and wanted to be able to manage the equipment for the customer so they arranged for access with the router manufacturer. The problem was the manufacturer then sold hardware with the same firmware image to general customers and thus exposed the key and security hole to a much larger audience....
      • by Anonymous Coward

        "But it is questionable whether SSH should be running on a home router anyway"

        Use SSH they said. There is no winning with this crowed.

  • Not a great idea for the keys to be the same, but not really a security risk if ssh is never used. Now, the fact that there is an ssh port open to the world without the end user setting it up, that could be a problem.
    • by sinij ( 911942 )
      I assume they have cert-only authentication enabled, in such case this would be not unlike having management interface with 'admin/admin' facing the world.
  • ...when the router comes out of the box it was shipped in, is power it up with the only network connection being a wired from port 1 to a pc, through which the router is locked to accept administrator connections from the currently conencted IP and machine ID ONLY (and the IP reserved for that machine), and ONLY via the wired LAN interface - from which point, you then change the wireless SSID and all the passwords FROM the defaults, and all that before you even physically connect it to the WAN cable. That w

    • by msauve ( 701917 )
      What's this "machine ID" you speak of? The MAC address? It's pretty easy to configure the same MAC on a different machine.

      Most people don't think of doing it that way because it's not a good way of doing it.
      • What's this "machine ID" you speak of? The MAC address? It's pretty easy to configure the same MAC on a different machine.

        Most people don't think of doing it that way because it's not a good way of doing it.

        That part was a little bizarre (if you are physically connected directly from PC to router it doesnt matter much what ID the PC might have) but as a whole it creates a pretty tight way of ensuring integrity of the router configuration. In particular, not allowing any inbound access from the WAN until a hard password is set, and not allowing any association to the WLAN until a hard encryption key/passphrase is set. However, these are two steps most users don't want to bother with (and more importantly, wil

      • by ihtoit ( 3393327 )

        If your WIRED Admin system is plugged in to your LOCKED DOWN router how is someone OUTSIDE the LAN going to see it?? All they're going to see is an IP which accepts TCP packets. That could be a computer or it could be a data centre. Or it could be an NSA honeypot. Or a backbone connection via a rotary dial telephone in a small room a hundred feet below Kings Cross Station.

        Can you tell if I'm directly connected to the Internet or through a router or through a tethered mobile phone through a proxy? On a wired

        • by msauve ( 701917 )
          What are you babbling on about? Most consumer NAT routers I've dealt with disable admin access from the "public" interface by default.

          Take the TP-LINK TL-WR841N, currently shown as Amazon's "#1 Best Seller in Computer Routers":

          Remote Management IP Address - This is the current address you will use when accessing your router from the Internet. This function is disabled when the IP address is set to the default value of 0.0.0.0...

          Similarly with the #2 Asus RT-N66, but they don't even tell you how to do it in

          • by ihtoit ( 3393327 )

            the Virgin Media Netgear routers don't. Neither did their old Terayon modems. They'll both allow admin connections from anywhere by default.

  • It does concern ssh-keys, disk-encryption keys, etc. If the people doing this do not understand how encryption works, or are botching initial entropy gathering, the same or pretty close keys can end up on a lot of deployed devices.

    In general, this has to do with developer inexperience and (for older ones) incompetence.

    • by sinij ( 911942 )
      Cryptography knowledge in software development is very shallow. Most only know to integrate OpenSSL (without FIPS module). Ask them about entropy, and they start talking about the heat death of the universe. Even Linux kernel guys, who otherwise tend to be knowledgeable, would tell you that /dev/urandom is a desirable and secure choice.

      /rant
      • by gweihir ( 88907 )

        You are right about software developer. They routinely do not understand crypto, but they also routinely do not understand non-trivial algorithms, data structures and any other CS concept as soon as it is a bit more advanced.

        I'm a security person, and generally there is nothing with /dev/urandom. You have to make sure it is properly seeded though, otherwise you are screwed. On the other hand, using /dev/random in an entropy-starved situation is also bad, because it may effectively cause a lock-up. (Yes, thi

  • by Guy From V ( 1453391 ) on Thursday February 19, 2015 @10:53AM (#49087739) Homepage

    Every geek should be a good netNeighbor or netRelative and suggest or guide anyone we care about or don't wish to be fucked over by .gov/corporations/prick wardriving kids and suggest something along the lines of DD WRT or TomatoUSB on their routers that may be ripe targets...maybe even offer to help them secure them, I'm getting pissed at all this crap that is going to get all of them and us reamed. I also like the idea of sticking it to all the evil and/or stupid bastards that let this stuff happen. I let an elderly neighbor of mine know a few months ago by naming my SSID something that might alert their kids or whomever is their "IT expert" (who happened to her daughter) to email a disposable account I set up so I could explain what was up and I spent 20 minutes getting it going for them. I told her to let me know if it needed any fixing with another one-time email anytime remotely. But really, Toastman's TomatoUSB is very stable and needs hardly any tweaking or fixing...probably less than stock firmware. Especially for the crappy Cisco FW that was on it - disaster waiting to happen. They are even on 5ghz N band now, the only other one than me (I'm on both 2.4 & 5). PS InSSIDer is a great wireless app.

    • SCRAGGLY NECKBEARD GEEK: "Hi neighbor, I'm a geek and I'd like to help you configure your router so you aren't at risk for man-in-the-middle attacks and other security risks."
      NEIGHBOR: "Wut? A guy called on the phone from Microsoft the other day and helped me through all of that."
      SCRAGGLY NECKBEARD GEEK: "No no no. That's one of the problems I need to help you with."
      NEIGHBOR: "But he already fixed it. Besides, you're weird looking and I don't want you messing with my computer."
      SCRAGGLY NECKBEARD GEEK:

      • Take a valium, If you read my post I let them email me if they needed help and we aren't strangers.

  • Fantastic! (Score:2, Insightful)

    by Anonymous Coward

    In the meantime, I can't even get my Canon wi-fi printer to connect to my router, but some script kiddy can see all my porn.

    What the hell is wrong with software these days?

    • by Lumpy ( 12016 )

      Blame the executives. They are 100% the fault of crap products, crap firmware, and crap software.

  • By the router's firewall? Why is SSH enabled to begin with?
  • OK, this is clearly a bad thing, but I don't think it means that your private LAN is immediately accessible to people all over the world does it? Multiple routers using the same keys means you could be tricked into logging in to someone else's router without knowing, but that would still require some way of directing your traffic to the imposter's device to begin with, such as DNS hijacking.

    Knowing someone's keys would also allow you to encrypt/decrypt traffic as that device, facilitating a man-in-the-middl

    • by nyet ( 19118 )

      No, in this case, knowing the host key would let you pose as the host.

      Then again, you don't even generally need the host key to post as the host because 9 times out of 10 nobody actually verifies that the presented host key matches the expected host key.

      If the host is unknown, generally they simply assume the key is correct.
      If the last stored key and doesn't match the one presented, they generally ignore the error that ssh spews telling you of a potential MITM attack.

      • They probably will but ssh will force you to manually remove the key from the known_hosts file if the key doesn't match, atleast openssh does that.
        • by msauve ( 701917 )
          Which is probably the exact reason Telefonica wanted the same private key on all their managed CPE - who wants to manage a 250000 entry known_hosts file?
          • They would need that anyway since each new ip would add another row so it's probably more that they wrote a single image to all devices instead of autogenerating a new ssh key upon first boot.
    • OK, this is clearly a bad thing, but I don't think it means that your private LAN is immediately accessible to people all over the world does it? Multiple routers using the same keys means you could be tricked into logging in to someone else's router without knowing, but that would still require some way of directing your traffic to the impostor's device to begin with, such as DNS hijacking.

      Finally, a breath of sanity... Thank you, nuckfuts! A shame this is the bottom thread in the post.. at least when I got here.

      There is a huge difference between a host key and a user key. These consumer devices all share the same host key, which is only used by the client to verify that the host you're connecting to is the host you think you're connecting to. This is the key in /etc/ssh/ssh_host_rsa_key for those with access to a Linux shell, and is never encrypted or password protected. How do I kno

  • I first ensure the wrt is openwrt compliant. Then the 1st thing I do after purchase is installing openwrt.
  • A cheap home router with SSH enabled...

    Where can I buy this?

Ocean: A body of water occupying about two-thirds of a world made for man -- who has no gills. -- Ambrose Bierce

Working...