# Proofpoint ITM | 4.4.3.148–5.0.1

Proofpoint ITM macOS agent's root FAM service interpolated OneDrive file paths into /bin/bash -c, so a crafted filename with $() ran commands as root.

- Payout: Research
- Severity: high
- Program: Proofpoint ITM
- Write-up by: Zachary Harding
- Disclosed: 2026-11-11
- Write-up quality: 8/10
- Original: https://bishopfox.com/blog/proofpoint-itm-4-4-3-148-5-0-1
- Library page: https://bugbountylibrary.com/r/blog%3Abishopfox-com-blog-proofpoint-itm-4-4-3-148-5-0-1
- Tags: area:os domain:desktop impact:privesc impact:rce kind:research platform:research sev:high technique:reverse-engineering technique:source-review vuln:command-injection vuln:privilege-escalation

**Target:** /etc/omonitor/service FAM LaunchDaemon (macOS agent)
**Root cause:** FSEListener.sendToLoggerWithUid:srcFile:trgfile: built a shell command with NSString stringWithFormat: placing user-controlled file paths inside double quotes, then passed it to /bin/bash -c via NSTask; bash expands $() and backticks inside double quotes.
**Steps:**
1. Create a file in a OneDrive KFM-managed directory (~/Documents or ~/Desktop) whose name contains `$(command)`.
2. FileProvider signals file creation to registered listeners.
3. Proofpoint FAM service receives notification and calls sendToLoggerWithUid:srcFile:trgfile:fileopr:browser:processid:StorageType: at 0x10000eef8.
4. Method formats `%s %d %s %@ %d "%@" "%@" %@ "%@" %d "%@"` with the unsanitized path and runs `[task setLaunchPath:@"/bin/bash"]; [task setArguments:@[@"-c", formattedCmd]]`.
5. Bash executes the $() expression as root; chain completes in ~1 second.
**How found:** Static analysis of the ARM64 Mach-O binary with radare2; enumerated NSTask setLaunchPath: call sites sharing the /bin/bash string constant at 0x100130470 and the NSString command-construction pattern, then used fs_usage kernel tracing to confirm the file-creation-to-root-execution trigger chain.
**Exploitation:** Any standard unprivileged local user creates a file with a $()-bearing name in a OneDrive KFM directory; the root FAM daemon processes the event and executes the embedded command as root, yielding administrator-level access on the managed device and potential credential theft from other users.
**Escalation:** Additional injection sinks found via NSTask setLaunchPath: call sites sharing the /bin/bash constant: OITMIPLabels.initWithFile: (0x100012d7c, runs /usr/bin/file <path>) and OITMIPLabels.getXMLFromDoc (0x100015ef4, runs /usr/bin/unzip -p <path>), triggered by MIP label processing on Office files.
**Insight:** On macOS, filenames may contain nearly any character except / and NUL, and bash expands $() inside double quotes — so any root daemon that shells out with quoted paths is injectable. Grep endpoint-agent binaries for /bin/bash string constants and setLaunchPath: call sites, and use fs_usage to trace which filesystem events reach them.

## Proof of concept (copied exactly from the original report)

**Vulnerable NSTask bash -c invocation**

```
[task setLaunchPath:@"/bin/bash"]; 
[task setArguments:@[@"-c", formattedCmd]];
```

**Format string with user-controlled paths**

```
%s %d %s %@ %d "%@" "%@" %@ "%@" %d "%@"
```

