Skip to content
Access control Write-up Intermediate

CVE-2024-45844: Privilege escalation in F5 BIG-IP

A user with the manager role could create an LTM TCP monitor and then modify its destination to localhost, allowing them to send a crafted MCP message to the mcpd daemon and create a new administrator account. This privilege escalation was possible because the monitor's destination could be changed after creation to bypass the initial restriction.

offsec.almond.consulting

Published on offsec.almond.consulting

The previous articles Post-Exploiting an F5 BIG-IP: root, and now what? and Deep diving into F5 Secure Vault helped us to get a better understanding of the internal F5 mechanisms. It also led us to discover a privilege escalation that has now been assigned CVE-2024-45844.

The author, on offsec.almond.consulting

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

A user with the manager role could escalate to administrator, gaining full control of the BIG-IP system.

What the attacker needed

Access to a manager-role account; ability to log in via SSH or TMSH

The fix

The vulnerability was fixed in BIG-IP version 17.1.1.4 by preventing LTM TCP monitors from sending messages to localhost addresses.

How it was found

  1. An administrator creates a user with the manager role.
  2. The manager logs in via SSH.
  3. In the TMSH prompt, the manager enters the LTM monitor TCP menu and creates a monitor.
  4. The manager modifies the monitor to set a crafted MCP message as the send string.
  5. The manager runs the monitor with destination [redacted]:6666, sending the message to the MCP daemon.
  6. A new administrator user is created.

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.

F5 BIG-IP is a network appliance. It has a special internal service that accepts commands without checking who sent them. Normally only administrators can talk to it, but a user with a lower 'manager' role could abuse a monitoring feature to send a command to that service and create an administrator account.

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.