I hacked a card printer software (CVE-2024-34329)
The card printer software runs as SYSTEM and tries to load DLLs that do not exist from a folder where regular users have write access. An attacker could place a malicious DLL with the expected name in that folder, and the software would execute it with SYSTEM privileges, leading to privilege escalation.
CVE-2024-34329
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
The software loads DLLs from a user-writable directory without validating their origin, allowing DLL hijacking.
Impact
An attacker could escalate privileges to SYSTEM on the local computer, allowing execution of arbitrary code with the highest privileges.
What the attacker needed
Local user access to the machine; card printer software installed; ability to write to the Service folder
The fix
The vulnerability was fixed by the vendor, as indicated in the security bulletin.
How it was found
- Monitor the card printer software with ProcMon to see which DLLs it tries to load.
- Notice that the software attempts to load DEVOBJ.dll or CFGMGR32.dll from a specific folder.
- Check folder permissions with icacls and find that regular users can write to it.
- Create a malicious DLL named DEVOBJ.dll and place it in that folder.
- Start the software installation, causing SYSTEM to load and execute the malicious DLL.
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.
This is about a program that runs with the highest permissions on a Windows computer. The program looks for a helper file in a folder that normal users can change. A normal user can put a harmful helper file there, and the program will run it with high permissions, letting the user take full control.
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.