Slashdot Mirror


Juniper's Backdoor Password Disclosed, Likely Added In Late 2013 (rapid7.com)

itwbennett writes: In a blog post on Rapid7's community portal Sunday, HD Moore posted some notes on the Juniper ScreenOS incident, notably that his team discovered the backdoor password that enables the Telnet and SSH bypass. Quoting: "Although most folks are more familiar with x86 than ARM, the ARM binaries are significantly easier to compare due to minimal changes in the compiler output. ... Once the binary is loaded, it helps to identify and tag common functions. Searching for the text "strcmp" finds a static string that is referenced in the sub_ED7D94 function. Looking at the strings output, we can see some interesting string references, including auth_admin_ssh_special and auth_admin_internal. ... The argument to the strcmp call is <<< %s(un='%s') = %u, which is the backdoor password, and was presumably chosen so that it would be mistaken for one of the many other debug format strings in the code. This password allows an attacker to bypass authentication through SSH and Telnet, as long as they know a valid username. If you want to test this issue by hand, telnet or ssh to a Netscreen device, specify a valid username, and the backdoor password. If the device is vulnerable, you should receive an interactive shell with the highest privileges."

31 of 107 comments (clear)

  1. Serves anyone right that uses Juniper by Anonymous Coward · · Score: 5, Funny

    Really should be using Cisco gear anyway.

    1. Re:Serves anyone right that uses Juniper by Anonymous Coward · · Score: 3, Informative

      Whoosh.

      He didn't knock on Cisco's stability. Cisco is known to have backdoors and cooperate with NSA.
      They probably work great but if you are worried about the government snooping then you should probably pick something else.

  2. Version control? by Ecuador · · Score: 4, Insightful

    They must be using some sort of version control, right? So it should be trivial to find out who inserted the code and find out what exactly is going on (and prosecute those responsible). I mean, they'd like to "clear their name", wouldn't they?

    --
    Violence is the last refuge of the incompetent. Polar Scope Align for iOS
    1. Re:Version control? by greenfruitsalad · · Score: 2

      i expect the answer will be something like 'David' where David will have no recollection of inserting anything like that.

      on a related note, is there a version control system that requires/allows users to cryptographically sign their commits? (i've only ever used svn and git)

    2. Re:Version control? by Dr_Barnowl · · Score: 2

      Not necessarily anything conclusive. Commercial software providers can be somewhat hidebound about version control systems.

      I wouldn't be surprised if they were using CVS, and if multiple people didn't have access to the repository storage. In which case it's pretty trivial to insert the code in a way where it's impossible to tell the origin.

      Git with signed commits would be resistant to hiding the identity of the commit author, but a lot of corporations are paranoid about using it because of a perceived lack of control over it because the repository isn't on a single centrally controlled computer. (Which is silly, because anyone with read-access to the repository can siphon all the history off and copy it elsewhere anyway).

    3. Re:Version control? by xaxa · · Score: 4, Informative

      https://git-scm.com/book/en/v2...

      Sign Git commits with GPG.

      It's not enforced, so you'd need a commit hook or whatever to check commits are signed.

    4. Re:Version control? by DarkOx · · Score: 5, Interesting

      Yes but you have to consider the sophistication here. This was code designed to appear to be a debug statement. It might not be the very most cleverly obfuscated code in history but it was done by someone with a lot of knowledge about internal style and practices, and software development skills in general. Its like state sponsored as well. So we have at least the potential for a fairly advanced threat actor here.

      I would say its highly unusual a skilled pentester doing an internal test does not enjoy at least some success. Even if they don't end up pwning all the key systems etc, they will as rule at least be able to get on some developers or administrators boxes. Somebody always slips up up somewhere. Assuming this person was willing to be patient and wait weeks or months and was on the inside, maybe a plant who got hired on, they could eventually compromise some developers box and get hold of their creds, signing keys, or whatever was needed to do a source commit. So attribution might be easy but correct attribution might be a hard problem. Just because someone clicks 'blame' and Bob Smith shows up, does not mean Bob had much to do with it other than he clicked the wrong link sometime, used a backdoored tool, etc..

      --
      Repeal the 17th Amendment TODAY! Also Please Read http://www.gnu.org/philosophy/right-to-read.html
    5. Re:Version control? by Teckla · · Score: 2

      They must be using some sort of version control, right? So it should be trivial to find out who inserted the code and find out what exactly is going on (and prosecute those responsible). I mean, they'd like to "clear their name", wouldn't they?

      Where I work, our source code repository has logins but no passwords (unless you set one, and most developers don't, for whatever reason). My old boss used to check in things under my name.

      After I set a password, he used to throw code "over the fence" and have me check it in verbatim.

      Having your name/login on checked in code is not a terribly reliable way to identify the guilty party.

      (btw, I'm not saying my old boss ever did anything nefarious -- I'm quite sure he didn't -- I'm just demonstrating that your approach is not terribly reliable.)

    6. Re:Version control? by arth1 · · Score: 3, Interesting

      How did it get signed with his key if he didn't do it?

      His system is compromised with a dozen backdoors, and CIA / Shin Bet signed it with his key?

    7. Re:Version control? by Jeremi · · Score: 3, Insightful

      What has this accomplished?

      It will make it easier for us to fire David, have him arrested, and call the problem fixed? ;)

      --


      I don't care if it's 90,000 hectares. That lake was not my doing.
  3. Re:At least they noticed something by cdrnet · · Score: 2

    I don't see many people criticizing Juniper. Most seem to make fun of the US government and its three-letter agencies working against each other.

  4. And folks were concerned about Hauwei by sizzzzlerz · · Score: 4, Interesting

    Maybe there are reasons to still have concerns about them but this goes beyond just concerns. How did this get into Juniper's code baseline? Is there a mole, working inside the company or did their servers get hacked. Why would their code servers be accessible from outside the company in any case? More importantly, how does this get fixed? Has Jupiter sent out patches yet or done a complete review of their code to verify that there aren't other security holes? Can this backdoor be disabled without patching? IT groups in a lot of companies must be having the cold sweats about now.

    1. Re:And folks were concerned about Hauwei by mstefanro · · Score: 2

      Their code servers don't have to be accessible from the outside. Juniper has many employees, and hacking a single one of them is probably sufficient to sneak in a backdoor.

    2. Re:And folks were concerned about Hauwei by Anonymous Coward · · Score: 2, Informative

      I am, because Huawei actually stole Cisco code and even hardware designs in a breach in the 90s for the 7200 series. They should not be allowed to sell products in the western world. Chinese will cheat their way to the top.

  5. sun su by iCEBaLM · · Score: 2

    Whoever put it in was an Art of War fan....

  6. Community Defense by bill_mcgonigle · · Score: 3, Insightful

    Assuming Juniper has secure code audit logs and can personally identify the person who checked this in ("find the spook" if you will), will his identity be swept under the rug for some BS "privacy concerns" or will the Internet security community learn his identity so that he may be properly ostracized and precluded from any such future work?

    Juniper has the money to settle any threats of lawsuits arising from such disclosure - doing the right thing here is probably the only way people will ever trust Juniper again - it may even be a 'cost of sales'.

    If Juniper can't positively ID the perp then nobody can trust them going forward, so let's hope they can and do.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    1. Re:Community Defense by xaxa · · Score: 3, Insightful

      Whoever put it there may well have hacked a developer's computer, whether they were working at Juniper or not.

    2. Re:Community Defense by Seranfall · · Score: 2

      I would very much hope that Juniper act publicly in this matter. Companies who are truly not in the feds pockets need to stand up for themselves. It's insane that it is even remotely legal for government agencies to do some of the things that are going on. However, you can bet if the person who did this did so because a government agency instructed him to do so that this will get covered up. When you have companies like Cisco altering shipping practices in the hopes of not having their gear intercepted and altered and Juniper will hard coded back doors how can you trust these companies products? These companies are their reputations brutalized and they can't do much about it because the main perpetrators are agencies like the NSA. I'd love to start seeing these companies sue the government for lost sales due to lost of trust in the security of their products.

  7. Juniper were listed in Snowden docs by Anonymous Coward · · Score: 5, Interesting

    Bullshit, Juniper were notified by Snowden leaks their firewalls were under NSA attack:
    http://www.spiegel.de/international/world/catalog-reveals-nsa-has-back-doors-for-numerous-devices-a-940994.html

    So I expect them to watch their backs, and keep tight control of their software. 2 years to spot a backdoor? Even when you know you're under attack from a group that previously back-doored your products?

    > "In the case of Juniper, the name of this particular digital lock pick is "FEEDTROUGH." This malware burrows into Juniper firewalls and makes it possible to smuggle other NSA programs into mainframe computers. Thanks to FEEDTROUGH, these implants can, by design, even survive "across reboots and software upgrades." In this way, US government spies can secure themselves a permanent presence in computer networks. The catalog states that FEEDTROUGH "has been deployed on many target platforms."

    The suspicion is that they get paid. UK has just revealed its been spying on everyone for 15+ years using Telecoms act section 94, against non Telecoms companies, like hardware suppliers, database owners etc. Juniper could have been told to backdoor their hardware under Article 94.

    Companies don't challenge it, because Article 7:
    > "(7)There shall be paid out of money provided by Parliament any sums required by the Secretary of State for making grants under this section."

    So the suspicion is that Juniper got paid to backdoor their kit, and now that all these revelations are coming out, (about how Parliaments have been deceived, how Ministers lied, Parallel Construction lies to Judiciary etc.) That Juniper is suddenly finding the backdoor and fixing it as if it just appeared.

    Either they're incompetent, or they're complicity, but either way, other companies involvement in this scandal does not mitigate Junipers.

    1. Re:Juniper were listed in Snowden docs by mstefanro · · Score: 2

      > 2 years to spot a backdoor?
      I assume they have a fairly large codebase. Without the tip from Snowden, maybe they would never have discovered it at all?
      It sounds pretty weird that they've discovered two completely separate and unrelated backdoors at the same time.

    2. Re:Juniper were listed in Snowden docs by NatasRevol · · Score: 3, Insightful

      Um, given TFS, I'd say they put it in so they probably knew about it from day 1.

      --
      There are two types of people in the world: Those who crave closure
  8. Re:Why do people even buy U.S hardware? by Anonymous Coward · · Score: 5, Insightful

    So where do we go? Russian hardware? Chinese hardware? If you think those countries are any safer, I have a bridge in a borough of New York city that's looking for a new owner...

  9. Re:At least they noticed something by Teckla · · Score: 5, Insightful

    I expect similar things are present in a lot of other security products, just that there they are still undiscovered. Criticizing Juniper for this is entirely the wrong reaction.

    I don't understand your logic at all here. It's like saying, "Lots of people murder other people. Criticizing one murderer is entirely the wrong reaction."

    You can -- and should -- criticize the murderer and look to solve the greater problem at the same time.

  10. The stupification of IT. by nimbius · · Score: 5, Interesting

    I blame windows for this, but mostly because im a neckbeard. This is every bit as much the IT Managers fault for investing in technology and not people. What we have in this foul year of our lord 2015 is infrastructure managed by support ticket and not seasoned admin and as an old unix hand Im frankly chuckling whenever I see revelations of backdoors. These vendors include this garbage because they understand the race to the bottom includes hiring a junior admin to handle the stack for half the cost of a greybeard. The consequence of this is paying the rest of that greybeard salary times three to Juniper, who in turn need a way to un-fsck the device once junior leaves, or completely cocks up the device.

    dont think of it as a backdoor. think of it as the technological equivalent of child safety locks or those little plastic outlet covers. The vendor doesnt trust you to handle the device on your own terms, because the majority of the vendors customers cant seem to make it much beyond the boot prompt before bricking the device. an argument could also be made that its not the fault of the admin here. Juniper took the logical, moneytrain route of locking away all their documentation to the licensed cloistered elite, so if youre out 3 admins of turnover and the support contract has been ignored for a month, that backdoor is likely getting used to bring you back into the loving embrace of the vendor.

    now for the soap box. Back in my day there were real repercussions for not knowing your kit. You couldnt just open a support ticket and wait for a fix on an HPUX handling thirty million transactions per second. You needed to have a good escalation path in your organization to make sure problems got solved quickly, and management has forgotten the value of the most expensive part of this equation, the greybeard. Maybe we never had good visibility, or our people skills were just mediocre, but i for one am ambivalent about this kind of dictatorial lording over appliance, SaS, and anything "cloud."

    --
    Good people go to bed earlier.
  11. Re: Any clues as to how it got in the code? by Anonymous Coward · · Score: 3, Insightful

    The register had article saying the devteam is in China.

  12. Are we sure Juniper didn't do it? by Anonymous Coward · · Score: 2, Interesting

    Juniper is saying they were hacked and that the code was likely produced by a state-sponsored entity, but has that been confirmed? It seems to me that given the FBI's recent statements about requiring encryption backdoors in various applications and network products is perhaps a cover for those manufacturers that have already started to comply with a secret policy put forth by the FBI/NSA. This situations kinda reminds me of what happened when it was found out that telecoms were giving access to the NSA for mass communications surveillance. It that case, Congress had to pass a law giving the telecoms and the NSA backwards immunity from prosecution and civil lawsuits.

  13. Seems irresponsible by Anonymous Coward · · Score: 2, Insightful

    Given reduced manpower and increased difficulty in obtaining change approvals at this time of the year, doesn't it strike anyone else a bit soon to be publicly listing the exact password to use? Also they're publishing unpacked Juniper software, which may ellicit a Cease and Desist.

    Yes I get that the bad guys could do this reverse engineering as well, but the reality is that there's a limited number of attackers with the engineering knowledge to proceed, compared to the much larger number of scipt kiddies that were just spoon fed another attack to run over the Christmas period.

    I work in the industry, and while there's not one major issue I can fault them on, it just feels wrong. Perhaps they need to consider that responsible disclosure doesn't just mean waiting until the vendor has released a fix, but to allow a reasonable time for users to be notified and organise installation of the patch. Perhaps they've lost touch with would a reasonable period of time to patch is. A security researcher may think, patch immediately, but in an organisation with a large deployment it's not as simple as this. I'd love to patch our devices as soon as the vendor patch is available, but with inperfect vendor updates, particularly with this vendor, an update is just as likely to break things as fix them, so testing has to be carried out first.

  14. Don't people strip symbols any more? by JimMcc · · Score: 3, Interesting

    One thing that surprised me is that symbols were still in the executable. I'll admit that I'm kind of long in the tooth and have been out of the industry for 15 years now. It used to be that a standard practice was that the final compile had the symbols stripped out. It was done for space consideration mostly, which probably isn't a concern anymore, but also for security. Is it now standard practice to leave symbols in shipped code? If so, why? Yes it is somewhat of a security by obscurity, but leaving symbols in is like leaving the combination to your lock taped to the back of it, or at least a note as to where you've hidden the combination.

    1. Re:Don't people strip symbols any more? by TheCarp · · Score: 3, Informative

      There is no actual security gain from stripping symbols. If the logic of the code allows for something to be performed which shouldn't be, then stripping symbols changes nothing at all.

      The most stripped symbols would do, is slow down a person reverse engineering the code, once done they still get their access and can reuse their knowledge, and even that assumes they don't have direct access to the source code...clearly a bad assumption here.

      Its similar to the old "no compilers in production". It doesn't actually protect you from anything but the most unsophisticated attackers. Which, admittedly, is a form of protection, but only from opportunists who don't care that much.

      --
      "I opened my eyes, and everything went dark again"
  15. Re:Why do people even buy U.S hardware? by Anonymous Coward · · Score: 2, Insightful

    Well, if I buy hardware from China, it maybe has a Chinese backdoor.

    If I buy hardware from the USA, it maybe has an USA backdoor and a Chinese backdoor.

    So I buy hardware from China, thank you very much.

  16. In a way chinese hardware might be more secure by aepervius · · Score: 2

    People including NSA with a reason to find something and an axe to grind will have a look at chinese hardware for backdoor. The contrary is true too, for US hardware, but you will hardly hear any reporting from chinese news media about it.

    --
    C. Sagan : A demon haunted world:
    http://www.amazon.com/gp/product/0345409469/
    visit randi.org