Skip to content
Access control Write-up Advanced

Vulnerability Disclosure: Restricted Shell Breakout (CVE-2025-1950) and Privilege Escalation (CVE-2025-1951) in IBM Power Hardware Management Console (HMC)

The HMC's restricted shell (hmcbash) could be escaped using LD_PRELOAD, allowing access to additional binaries. A setuid binary, copysshkey, could then be used to elevate privileges to root.

insinuator.net

Published on insinuator.net

We discovered a private key for accessing an IBM Hardware Management Console (HMC) during a recent red team engagement. The IBM Hardware Management Console (HMC) is a dedicated management system used to control and manage IBM servers, especially those running on Power Systems (like IBM Power9/Power10) and mainframes…

The author, on insinuator.net

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

Impact

An attacker with a private key could gain root access to the HMC, potentially controlling managed IBM servers.

What the attacker needed

A private key for HMC access; SSH access to the HMC

How it was found

  1. Obtain a private key for accessing the HMC.
  2. Log in via SSH, which places the user in the hmcbash restricted shell.
  3. Use LD_PRELOAD to break out of the restricted bash.
  4. Access additional binaries installed on the system.
  5. Use the setuid binary copysshkey to elevate privileges to root.

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 restricted shell is a limited command-line environment meant to stop users from running certain programs. Here, an attacker could bypass that restriction by loading a custom library (LD_PRELOAD) and then use a special program that runs with high privileges (setuid) to become the root user, who can do anything on the system.

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.