Canonical Ubuntu Virtualization Library Arbitrary File Write Privilege Escalation Vulnerability
The libvirt service had improper access control on the vol-upload command, allowing a local attacker with low-privileged code execution to write arbitrary files with attacker-controlled data. This could be used to escalate privileges and execute code as root.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to write arbitrary files on affected installations of Libvirt. 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 vol-upload command did not properly check permissions, allowing a low-privileged user to specify any file path for writing.
Impact
An attacker with low-privileged code execution could write arbitrary files and potentially escalate to root, though the text does not specify if any defences limited the exploit.
What the attacker needed
Low-privileged code execution on target
The fix
Canonical issued an update to correct this 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.
Libvirt is a tool that manages virtual machines. A flaw in one of its commands let someone who already had a small foothold on the computer write files anywhere, even in places only the administrator should be able to change. That could let them take full control of the machine.
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.