Microsoft vcpkg OpenSSL Uncontrolled Search Path Element Local Privilege Escalation Vulnerability
OpenSSL as packaged by Microsoft vcpkg loads configuration from an unsecured location, so a local attacker who can already run low-privileged code could place a malicious configuration file and have it loaded by a more privileged process. This could let the attacker escalate privileges and execute arbitrary code in the context of that target process.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to escalate privileges on applications built using the Microsoft vcpkg port of OpenSSL. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.
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 OpenSSL configuration file path used by the vcpkg build resolves to a location writable by low-privileged users, allowing them to influence what a privileged process loads.
Impact
A local attacker with low-privileged code execution could escalate privileges and run arbitrary code as the target process, though the text does not state which processes or configurations are affected.
What the attacker needed
Ability to run low-privileged code locally
The fix
Microsoft issued an update to correct the vulnerability.
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.
Some programs read settings from a file in a folder that ordinary users can write to. If a more powerful program later reads that file, an attacker who can already run limited code on the machine can put their own settings there and get the powerful program to run their code. This is called a local privilege escalation because the attacker starts with low privileges and gains higher ones.
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.