Skip to content
Access control Write-up Intermediate

From an Exposed iLO to Persistent Root via CVE-2017–12542

An unpatched HP iLO 4 management interface was vulnerable to an authentication bypass, allowing an attacker to create a new administrator account without credentials. The attacker then used the remote console to reboot the server, edit the GRUB boot entry to gain a pre-OS root shell, and establish persistent access via a backdoor user and an SSH key.

medium.com

Published on medium.com

In this blog, I’ll walk through how a single unpatched out-of-band management interface let me take full control of a physical server — from one unauthenticated HTTP request, to a remote console, to a pre-OS root shell, to a permanent SSH backdoor — without ever knowing a single operating-system credential.

Aman Singh Gill, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The iLO web server failed to properly parse the HTTP Connection header, skipping authentication when it contained 29 or more 'A' characters.

Impact

An attacker could gain full administrative control of the server's management plane, then obtain a root shell and establish persistent access that survives reboots and patching of the iLO vulnerability.

What the attacker needed

Network access to iLO interface; iLO 4 firmware before 2.53; iLO Advanced license for remote console

The fix

The vulnerability was fixed in iLO 4 firmware version 2.53; additionally, segment the management network, lock down iLO features, protect GRUB with a password, use full-disk encryption, and audit for persistence.

How it was found

  1. Discover an unpatched iLO 4 interface on the internal network.
  2. Exploit CVE-2017-12542 to create an unauthenticated iLO administrator account.
  3. Log into the iLO web interface with that account.
  4. Download the JNLP remote-console launcher and open the Integrated Remote Console.
  5. Get a live view of the server's physical console — no OS login needed.
  6. Power → Reset to reboot the server.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A server's management chip (iLO) lets you control the machine as if you were sitting in front of it, even before the operating system starts. A bug in its web server let anyone skip the login and create an admin account. With that access, the attacker could reboot the server and use a built-in recovery feature to get a root shell without knowing any passwords.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.