IBM Corporation AIX errlog() Log Injection Vulnerability
The errlog() syscall in IBM AIX 7.2 allows an attacker to inject arbitrary commands via the resource_name field, which is later used by errdemon to construct a shell command. An attacker with local access could execute commands as root.
An OS command injection vulnerability exists in the errlog() syscall functionality of IBM Corporation AIX 7.2. A specially crafted syscall can lead to execute privileged operation.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the errdemon process fails to sanitise the resource_name field before using it to build a command string passed to execve().
Impact
An attacker with local access could execute arbitrary commands as root, potentially compromising the system.
What the attacker needed
Local access to the system; ability to call errlog() syscall
The fix
The vulnerability was fixed by the vendor in a patch released on 2023-04-13.
How it was found
- Create an error record with a valid error ID and a resource_name containing shell commands.
- Call errlog() with the crafted record.
- The event is written to /dev/error and processed by errdemon.
- errdemon constructs a shell command using the resource_name and executes it as 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 report has not been written yet. The Original tab links to the source.
A system call called errlog() lets programs write error records. One field in that record, the resource name, is later passed to a shell command without being cleaned. By putting shell commands in that field, an attacker can make the system run their commands with high privileges.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.