Slashdot Mirror


Critical Bug Last Year Allowed Bypassing Authentication On HPE ILO4 Servers With 29 'A' Characters (bleepingcomputer.com)

Public exploit code has been published for a severe vulnerability which last year affected Hewlett Packard Integrated Lights-Out 4 (HP iLO 4), a tool for remotely managing the company's servers.

HPE "silently released" patches last August, an anonymous reader reports, adding "details only emerged this spring after researchers started presenting their work at security conferences." The vulnerability is an authentication bypass that allows attackers access to HP iLO consoles. Researchers say this access can later be used to extract cleartext passwords, execute malicious code, and even replace iLO firmware. But besides being a remotely exploitable flaw, this vulnerability is also as easy as it gets when it comes to exploitation, requiring a cURL request and 29 letter "A" characters, as below:

curl -H "Connection: AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

Because of its simplicity and remote exploitation factor, the vulnerability — tracked as CVE-2017-12542 — received a severity score of 9.8 out of 10.

26 of 59 comments (clear)

  1. Cleartext passwords by 110010001000 · · Score: 1

    How can you extract cleartext passwords? Unless...finish this sentence...

    1. Re:Cleartext passwords by sjames · · Score: 4, Informative

      They used a shellcode exploit to return the contents of a file on the ILO processor that has the passwords in cleartext! They didn't publish that as far as I can see, but there is a published python program to add a new user with admin privileges and a password of your choice.

      Bad HP! Go stand in the corner.

      Is it just me or have HP servers been a bit flaky for the last 5 years or so?

    2. Re: Cleartext passwords by Joe_Dragon · · Score: 1

      must be nice to have that meany IPV4 address.

    3. Re:Cleartext passwords by Junta · · Score: 4, Informative

      The password is used directly as a shared secret for HMAC in IPMI. Therefore to support the ipmi protocol, the server must be able to know the plaintext of the password to a) prove to the client that they know the secret and b) to validate the HMAC sent by the client.

      Another potentially tricky one is SNMP. It's a shared secret, but at least you can localize the key. Of course it is localized to an snmp engine id, so while you may not directly have the cleartext password, you can spoof a matching snmp engine id to use the localized key as if you knew the password, at least to impersonate an snmp agent.

      Even on the TLS side of things, in practice things are not rosy because the vast majority of this class of devices have a self-signed cert, with all automation disabling cert validation and all users blindly clicked 'continue' at the warnings (there's no harsher message for "we have a conflicting stored cert" than "this is a self signed cert we haven't seen before")

      --
      XML is like violence. If it doesn't solve the problem, use more.
    4. Re: Cleartext passwords by Junta · · Score: 1

      No matter your vendor, this is a dumb idea. Any 'firmware' or "appliance" should not be easily/directly on the internet.

      First you have the problem that even 'reputable' companies lag far far behind the likes of Microsoft, RedHat, and such in changes. Even if they have the will and the resources, the security researchers go to other companies first and put them under embargo.

      Second, no one keeps their firmware up to date, even if there exists firmware that does have all the fixes. The really fun part, companies that *do* routinely upgrade firmware get bitten when the vendor breaks them, and does so without a good rollback facility (after all, "downgrades" are a security risk, so a key change with a firmware update that *also* happens to be bad for your configuration, well sucks to be you).

      --
      XML is like violence. If it doesn't solve the problem, use more.
    5. Re:Cleartext passwords by Junta · · Score: 1

      Interestingly enough, IPMI's current auth design was done in 2004. Somehow despite being at least two years after SNMP proved someone was thinking about how to derive a shared secret without using it directly.

      Somehow despite SRP being a well known thing that would neatly slot into IPMI, no one has bothered to amend the IPMI spec to remove the need for the server to know the password, and also to amend the poor decision for the server to send HMAC first.

      --
      XML is like violence. If it doesn't solve the problem, use more.
    6. Re:Cleartext passwords by sjames · · Score: 2

      Agreed, that's a very bad idea, but not a prerequisite for the flaw to be a problem. It might also be a non-routed address but another machine in the same LAN segment gets compromised and used as a jumping off point, for example.

    7. Re: Cleartext passwords by hjf · · Score: 2

      the other day I bought a IBM M1015 SAS RAID card. I flashed it to be a LSI9211 (no RAID, just SAS). It wouldn't work unless I flashed a specific firmware version with a specific option rom BIOS version.
      "Brand name" BIOS and firmware are horribly buggy compared to "just works" regular PC BIOS.

    8. Re: Cleartext passwords by scottragen · · Score: 1

      Second, no one keeps their firmware up to date, even if there exists firmware that does have all the fixes. The really fun part, companies that *do* routinely upgrade firmware get bitten when the vendor breaks them, and does so without a good rollback facility (after all, "downgrades" are a security risk, so a key change with a firmware update that *also* happens to be bad for your configuration, well sucks to be you).

      Good example, I worked for a company that upgraded their HP branded Xenserver servers ILO firmware. When the servers rebooted it'd cause a kernel panic, nothing worked due to a bug in ILO or kernel module. Once we disabled the kernel module it booted again.

  2. This is what happens by dgatwood · · Score: 4, Funny

    ... when your network infrastructure was certified secure by the Fonz.

    Aaaaaaaaaaaaaaaaaaaay.

    --

    Check out my sci-fi/humor trilogy at PatriotsBooks.

    1. Re:This is what happens by Julz · · Score: 1

      Of course this has been fixed in [[Redfish]https://sourceforge.net/p/redfish-lab/wiki/Getting-started-with-the-iLO5-Redfish-API/] right?

      "redfish-lab
      Get started with the Redfish RESTful API from the DMTF
      Brought to you by: fdonze"

      Remove the "d" and you get "fonze". How's that for coincidence ;)

      --
      When shit hits the fan get some of these https://youtu.be/pY-GncsZ-UE
  3. Programmers think about making things work right by raymorris · · Score: 4, Insightful

    You may have hears the phrase "garbage in, garbage out".
    That's how programmers used to think. The design and test code try to make it work right, when the user uses it right, of course. If the user mashes keys at random, random things might happen. That used to be an okay way of thinking.

    The internet has changed that. Now the user (connecting over the internet) WILL mash keys at random. Well, their script will send random bytes. It's no longer okay for software to respond in random ways when it receives random input. Any software accessible via the network MUST be designed thinking about how things can go wrong, not just about how it should work correctly.

    Many programmers, especially those who learned writing desktop applications, still think in terms of the program doing the right thing when it receives sane input. Insane input isn't handled securely. The programmers who wrote the ilo software made this mistake.

    Specifically, the input is up to 16 characters long, so they failed to handle the case of very long input. Network. Software should be tested with these inputs, at least:

    Empty input
    Zero
    The null character (ASCII 0)
    Very long input

  4. What would be a 10? by Drakster · · Score: 1

    received a severity score of 9.8 out of 10

    What would be a ten? No authentication at all?

    1. Re:What would be a 10? by hcs_$reboot · · Score: 1

      Sony infrastructure?

      --
      Slashdot, fix the reply notifications... You won't get away with it...
    2. Re:What would be a 10? by king+neckbeard · · Score: 1

      Less than 15 'A' characters.

      --
      This is my signature. There are many like it, but this one is mine.
    3. Re:What would be a 10? by Spamalope · · Score: 1

      You have to pay for a support contract to get the fix for the security manufacturing defect? Wait, this should be a 10 shouldn't it?

  5. The Next Step by dohzer · · Score: 1

    This is great research! Have they tried "AAAAAAAAAAAAAAAAAAAAAAAAAAAAB" yet?

  6. understandable by cascadingstylesheet · · Score: 2

    "Nobody would ever think to type 'A' 29 times!!

    1. Re:understandable by CustomSolvers2 · · Score: 1

      Perhaps this is just one of the possible scenarios and it might even be not as straightforward as it seems (addition of the ASCII codes associated with the characters within certain range + over a given length + ...?), but the probability of anyone typing "A" 29 times in this or any other context is actually tremendously low.

      Purely speaking, the probability of typing this or any other string of that length is identical. By assuming that the target length is unknown, I could even say that the chances of typing that string or other one of almost any length are quite similar. On the other hand, people are more likely to prefer something like "aaaa" before "a1eb}" and, for that reason, a more variable set of characters might have been a bit tougher. In any case, it seems very curious that someone was able to find that "bug" with no previous knowledge (?).

      --
      Custom Solvers 2.0 = Alvaro Carballo Garcia = varocarbas.
    2. Re: understandable by CustomSolvers2 · · Score: 1

      OK. But the number of potential combinations is still tremendously big and further information seems required. Just knowing that the given piece of software is probably buggy (= very valuable information) doesn't even seem enough. An automated approach trying every possible combination of characters up to 28 As would take really long.

      --
      Custom Solvers 2.0 = Alvaro Carballo Garcia = varocarbas.
    3. Re: understandable by CustomSolvers2 · · Score: 1

      Sorry for my previous comment, I wrote it without properly reading yours. So, you are saying that the whole point here is the length of the input string? This bug was provoked because of not having properly sanitised the inputs even at their most basic level, by checking their lengths? That makes a bit more sense than checking all the possible combinations of characters, but it is still a quite relevant work without further information (i.e., doing it with every existing piece of software).

      --
      Custom Solvers 2.0 = Alvaro Carballo Garcia = varocarbas.
  7. Putting the A by AHuxley · · Score: 1

    in NSA Got to collect on it all.
    The A ind DEA
    The A in other Agency.
    So safe even the buddy system contractors can use it.

    --
    Domestic spying is now "Benign Information Gathering"
  8. Also affects iLO 5 prior to v1.30 by tokengeekgrrl · · Score: 1

    Once I saw that the latest version is iLO 5, I figured it had to be vulnerable to the same exploit as iLO 4 and sure enough:

    https://support.hpe.com/hpsc/d...

    "A security vulnerability in HPE Integrated Lights-Out 4, 5 (iLO 4 prior to v2.60, and iLO 5 prior to v1.30) could be remotely or locally exploited by an Administrative user to allow remote or local code execution."

  9. Dumb implementation if this is a problem by Guyle · · Score: 1

    If you're stupid enough to make your iLO connection directly publicly accessible and not secured behind a VPN or bastion server then you deserve to get pwned by whatever exploit comes your way. I will never understand why anyone would put an interface that is historically the weakest link out there where anyone can basically have console access to your hardware.

  10. Re:Trump is a traitor though, so this is peanuts. by Highdude702 · · Score: 1

    They sure picked the name right. They do a whole hell of a lot of huffing and puffing.

  11. Wiki entry by kriston · · Score: 1
    --

    Kriston