Breaking Down Barriers: Exploiting Authenticated IPC Clients
A low-privilege application used D-Bus to send IPC messages to a root-privileged binary, which verified the sender's RSA signature. A shared object injection (LD_PRELOAD) in the low-privilege app allowed bypassing the signature check and performing privileged actions without credentials, and also leaked sensitive data sent over IPC.
A real assessment walkthrough: bypassing D-Bus client authentication to make privileged IPC calls without credentials, using shared object injection.
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 the low-privilege application loaded shared libraries without integrity checks, allowing LD_PRELOAD injection that bypassed the IPC signature verification.
Impact
Attackers could bypass authentication to perform privileged actions and intercept sensitive data sent between privilege levels.
What the attacker needed
Local access to the low-privilege application; ability to set LD_PRELOAD environment variable
How it was found
- Reverse engineer the application to identify the IPC mechanism (D-Bus via GLib).
- Attempt to send IPC messages directly to the root binary, but observe rejection due to signature verification.
- Identify a shared object injection vulnerability (LD_PRELOAD) in the low-privilege application.
- Use the injection to intercept library calls and bypass the IPC signature checks.
- Perform privileged actions without credentials and intercept sensitive data sent over IPC.
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.
Two programs on a computer talk to each other: a normal user program asks a powerful (root) program to do sensitive tasks. The powerful program checks that the request really comes from the trusted normal program by checking a digital signature. The researchers found a way to sneak their own code into the normal program (by loading a malicious library), so the powerful program accepted their requests as genuine. This let them do admin-level actions without logging in.
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.