Is exploiting a null pointer deref for LPE just a pipe dream?
A null pointer dereference in Bitdefender's named pipe handling allowed crashing processes, and a crash handler wrote a permissive DACL to a predictable file in a user-writable directory, enabling local privilege escalation via symbolic link redirection. The crash handler also deleted crash dumps as SYSTEM, allowing arbitrary file deletion.
Published on zerodayinitiative.com
A lot of blog posts I have read go over interesting vulnerabilities and exploits but do not typically share the process behind discovery. I want to show how sometimes just manually poking around can quickly uncover vulnerabilities you might miss with other approaches to vulnerability discovery.
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 crash handler wrote a permissive DACL to a predictable file in a user-writable directory and later deleted files as SYSTEM without proper access checks.
Impact
A local attacker could crash antivirus processes (denial of service) and escalate privileges to SYSTEM, and could also delete arbitrary files as SYSTEM.
What the attacker needed
Local access to the system; Bitdefender antivirus installed; ability to create symbolic links
How it was found
- Set up a named pipe server as a standard user to receive connections from Bitdefender processes.
- Trigger a connection by opening the Bitdefender GUI or starting a vulnerability scan.
- Send the first 16 bytes of data back to the client to crash the process.
- Observe that BDReinit.exe writes a crash dump and a permissive DACL to a predictable file in a user-writable directory.
- Create a symbolic link to redirect the DACL write to a system DLL, modify the DLL, and trigger a print job to load it as SYSTEM.
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.
The antivirus software had a bug that let a normal user crash its processes. When it crashed, a helper program running with high privileges wrote a file with weak permissions in a folder the user could control. By creating a symbolic link, the user could redirect that write to a system DLL and then get the system to load it, gaining full control.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.