Skip to content
Access control Write-up Advanced

IBM i LIBL Autopwn: Kill the Vulnerability Class

IBM i programs that resolve called objects through the user-controlled library list (LIBL) while running with adopted authority can be abused to run attacker-supplied code with the program owner's privileges. The author released a scanner and an exploitation script that find such programs and turn them into a command runner running as the owner.

pz Follow

Published on blog.silentsignal.eu

At the end of last year and the beginning of this one, I focused on IBM i library list (LIBL) based privilege escalation vulnerabilities — a subtle but critical class of issues that can quietly undermine the security of both the core operating system and 3rd party applications. While many administrators assume adopted…

pz, on blog.silentsignal.eu

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

Likely sensitive calls are resolved through the user-modifiable library list instead of being fully qualified, so a program running with adopted authority loads attacker-controlled objects.

Impact

An attacker with a low-privileged account could gain the privileges of a program's owner, though the technique does not work for GUI-driven programs and can be blocked when a program drops adopted authority or resets the library list at runtime.

What the attacker needed

Low-privileged IBM i user profile; a writable library for the attacker's objects; a vulnerable program with adopted authority

The fix

Sensitive calls should be fully qualified or statically bound, adoption minimised, and public execute authority removed or restricted through authorisation lists.

How it was found

  1. Run the scanner, optionally narrowing by library or user profile, to list candidate program objects.
  2. Take the owner attribute and the called sub-programs of a candidate program.
  3. Point the exploitation script at the vulnerable program and a writable work library.
  4. Let the script call the program with a modified library list and brute-force the parameter count.
  5. If it succeeds, use the created command runner to execute commands as the program owner.

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.

On IBM i, a program can be set to run with the permissions of its owner rather than the person running it, which is meant to let ordinary users do a limited privileged task. If that program looks up other programs by name through a search list the user can change, the user can put their own program earlier in the list and have it run with the owner's rights. The author built tools that find such programs and prove the escalation works.

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.

More by pz

View all

12 more disclosed reports, best first.

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.