# Unauthenticated local service input execution

Local BLE, template, or update services that execute or stream input without checking who sent it

_Area: Memory corruption and native code. Seen in 3 disclosed reports; 2 confirmed bounties: $20,000 and $29,500; latest 2025-10-24. Updated 2026-11-09._

## How it works
A local service exposes an input channel — a BLE GATT characteristic, an ASMX web endpoint, a file-open handler — and treats "reachable" as "trusted." The broken assumption is that only a legitimate, permissioned caller can deliver data. In practice any app holding the transport permission (Bluetooth), any client that can reach the port, or any user who opens a file can supply the bytes, and the service then deserializes, executes, or streams them without verifying caller identity or entitlement. Two distinct sub-cases: caller-identity (BLE, web endpoints) and trust-of-content (file formats that execute embedded script because the file was opened, not because anyone was authorized).

## Where it shows up
- Notifiable BLE GATT characteristics on paired accessories that stream data with no pairing/bond check [E1](https://bugbountylibrary.com/r/blog%3Arambo-codes-posts-2022-10-25-sirispy-ios-bug-allowed-apps-to-eavesdrop.md)
- Mach/XPC services whose handlers lack entitlement or TCC checks [E1](https://bugbountylibrary.com/r/blog%3Arambo-codes-posts-2022-10-25-sirispy-ios-bug-allowed-apps-to-eavesdrop.md)
- ASMX endpoints (SimpleAuth, Client, Reporting, ApiRemoting30) that deserialize cookies server-side [E2](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-exploitation-of-windows-server-update-services-remote-code-execution-vulnerability.md)
- File formats embedding `ScriptCode`/`ScriptCodeManager` tags executed on open [E3](https://bugbountylibrary.com/r/blog%3Atrenchant-io-two-lines-of-jscript-for-20000-pwn2own-miami-2022.md)
- Auth checks applied per file extension rather than in the shared parser [E3](https://bugbountylibrary.com/r/blog%3Atrenchant-io-two-lines-of-jscript-for-20000-pwn2own-miami-2022.md)

## How to review
For each input path, ask what authenticates the caller. Invariant: no data reaches a deserializer, script engine, or audio/data stream until identity and required entitlement are verified at that entry point — not at a sibling entry point. For BLE, confirm the characteristic requires bonding/encryption before notify. For XPC, confirm the handler performs the entitlement check itself. For file formats, confirm the check lives in the shared parser, not per-extension. For web services, confirm cookies are validated before deserialization.

## How finders spotted it
- Added GATT notification subscription to a bleutil tool for AirBuddy development, noticed AirPods exposed a notifiable service, and saw changing hex bytes when Siri was invoked — correlating a byte stream with a user action revealed live audio [E1](https://bugbountylibrary.com/r/blog%3Arambo-codes-posts-2022-10-25-sirispy-ios-bug-allowed-apps-to-eavesdrop.md)
- Checked other Apple platforms and identified Opus as the codec from system components, then found the macOS mach service lacked entitlement checks [E1](https://bugbountylibrary.com/r/blog%3Arambo-codes-posts-2022-10-25-sirispy-ios-bug-allowed-apps-to-eavesdrop.md)
- Saw alerts of cmd.exe/powershell.exe spawning under w3wp.exe and wsusservice.exe, then correlated deserialization stack traces in SoftwareDistribution.log with IIS POST logs to the endpoints [E2](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-exploitation-of-windows-server-update-services-remote-code-execution-vulnerability.md)
- Surveyed default-handled file types in the install directory, grepped for interesting strings, found script tags in an auth-gated format, then found the same tags in a sibling format that opened without auth [E3](https://bugbountylibrary.com/r/blog%3Atrenchant-io-two-lines-of-jscript-for-20000-pwn2own-miami-2022.md)

## Variants seen
- BLE GATT service streaming unencrypted audio to any subscriber [E1](https://bugbountylibrary.com/r/blog%3Arambo-codes-posts-2022-10-25-sirispy-ios-bug-allowed-apps-to-eavesdrop.md)
- macOS XPC mach service missing entitlement/TCC checks — a separate missing check, not the same transport [E1](https://bugbountylibrary.com/r/blog%3Arambo-codes-posts-2022-10-25-sirispy-ios-bug-allowed-apps-to-eavesdrop.md)
- Unauthenticated deserialization of an authorization cookie in an update service [E2](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-exploitation-of-windows-server-update-services-remote-code-execution-vulnerability.md)
- Template file format executing embedded JScript.NET on open [E3](https://bugbountylibrary.com/r/blog%3Atrenchant-io-two-lines-of-jscript-for-20000-pwn2own-miami-2022.md)

## Impact and severity
E1 gave a full TCC bypass: any app with Bluetooth permission could record Siri/dictation audio with no microphone permission, and chaining the BLE flaw with the mach service gap removed all permission requirements [E1](https://bugbountylibrary.com/r/blog%3Arambo-codes-posts-2022-10-25-sirispy-ios-bug-allowed-apps-to-eavesdrop.md). E2 allowed unauthenticated remote code execution and host data exfiltration on exposed WSUS servers [E2](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-exploitation-of-windows-server-update-services-remote-code-execution-vulnerability.md). E3 yielded arbitrary code execution via ActiveXObject/JScript.NET for $20,000 at Pwn2Own [E3](https://bugbountylibrary.com/r/blog%3Atrenchant-io-two-lines-of-jscript-for-20000-pwn2own-miami-2022.md). Impact rose where the unauthenticated path reached an execution or recording primitive and where a second missing check removed the last barrier [E1](https://bugbountylibrary.com/r/blog%3Arambo-codes-posts-2022-10-25-sirispy-ios-bug-allowed-apps-to-eavesdrop.md)[E2](https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-exploitation-of-windows-server-update-services-remote-code-execution-vulnerability.md).

## Seen in real software
Open-source packages and projects, and products, where this pattern was found. If the target runs one, compare the version it runs with the fix.
- **Microsoft Windows Server Update Services** (AuthorizationCookie deserialization in WSUS web services) (version not stated): Exploitation of Windows Server Update Services Remote Code (CVE-2025-59287). Report: https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-exploitation-of-windows-server-update-services-remote-code-execution-vulnerability.md
- **AirPods** (DoAP BLE GATT service) (version not stated): SiriSpy - iOS bug allowed apps to eavesdrop on your conversations with Siri (CVE-2022-32946). Report: https://bugbountylibrary.com/r/blog%3Arambo-codes-posts-2022-10-25-sirispy-ios-bug-allowed-apps-to-eavesdrop.md
- **ICONICS Genesis64** (.tdfx template file parser) fixed in 10.97.2: Two Lines Of JScript For $20,000 – Pwn2Own Miami 2022 (CVE-2022-33317). Report: https://bugbountylibrary.com/r/blog%3Atrenchant-io-two-lines-of-jscript-for-20000-pwn2own-miami-2022.md

## Evidence
- E1: https://bugbountylibrary.com/r/blog%3Arambo-codes-posts-2022-10-25-sirispy-ios-bug-allowed-apps-to-eavesdrop.md
- E2: https://bugbountylibrary.com/r/blog%3Ahuntress-com-blog-exploitation-of-windows-server-update-services-remote-code-execution-vulnerability.md
- E3: https://bugbountylibrary.com/r/blog%3Atrenchant-io-two-lines-of-jscript-for-20000-pwn2own-miami-2022.md
