Xamarin.iOS Elevation Of Privilege Vulnerability (CVE-2017-8665)
The Xamarin.iOS update component mishandled directories and binaries, allowing a local attacker to place a folder at a specific location that a privileged process would then use. This let the attacker run arbitrary code as root on macOS.
Yorick Koster Securify B.V Follow
Originally disclosed on Microsoft
Description
An elevation of privilege vulnerability exists when the Xamarin.iOS update component improperly handles directories and binaries. An attacker who successfully exploited this vulnerability could run arbitrary code as root. An attacker could then install programs; view, change, or delete data; or create new accounts with full user rights. Only systems running macOS are affected by this vulnerability. To exploit this vulnerability, an attacker would have to log on to an affected system and create a folder at a particular location. which could be used by another process running with elevated privileges. The security update addresses the vulnerability by correcting how the Xamarin.iOS update component handles directories and binaries.
Visual Studio
Visual Studio
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 Xamarin.iOS update component trusted a directory or binary path that a low-privileged user could create or control, leading to execution with elevated privileges.
Impact
An attacker could run arbitrary code as root, then install programs, view, change or delete data, or create accounts with full user rights; only macOS systems are affected.
What the attacker needed
Local access to a macOS system; ability to log on as a user
The fix
The security update addresses the vulnerability by correcting how the Xamarin.iOS update component handles directories and binaries.
How it was found
- Log on to an affected macOS system.
- Create a folder at a particular location used by the update component.
- Wait for a privileged process to use the folder, resulting in code execution as root.
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.
This is a local privilege escalation bug on macOS. A normal user could create a folder in a particular place, and a background updater running with high privileges would trust and use it, letting the user's code run as the all-powerful root account.
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.