GitHub advisory · PyPI
iSponsorBlockTV: SSRF via Malicious SSDP Response Spoofing in Local Device Discovery
Description
iSponsorBlockTV discovers local smart TV devices via SSDP (Simple Service Discovery Protocol). The LOCATION URL from SSDP responses is used to fetch device capabilities without URL validation. A local network attacker can craft a malicious SSDP response with a LOCATION pointing to any internal HTTP service, causing SSRF when the application fetches device information.
In src/iSponsorBlockTV/dial_client.py:92-96, upon receiving an SSDP M-SEARCH response, the code extracts the LOCATION header and makes an HTTP GET request to that URL to retrieve DIAL device description XML. The URL is not validated against expected device IP ranges, expected schemes, or private/internal IP blocklists. Any device on the LAN (or a rogue WiFi access point) can respond to SSDP M-SEARCH queries with a LOCATION pointing to internal services.
Blind SSRF against internal network services; access to home router admin interfaces, smart home controllers, NAS admin pages, and other local services; potential credential disclosure from fetched responses. It'd be able to either:
- __main__ - DEBUG - Discovered device at <attacker controlled URL>, processing... (which is normally disabled and won't be shown in the actual configurator since textual doesn't show logs unless running in dev mode and launching a second terminal to inspect log output), and make a single GET request to an "attacker controlled" url which does not leak any information back to iSponsorBlockTV itself and swallows any sort of error (parsing or an invalid response from not being a real DIAL server) (dial_client.py L131-L133)/YouTube appended (dial_client.py L139) , with predefined headers {"Origin": "https://www.youtube.com","Content-Type": "application/x-www-form-urlencoded",} (dial_client.py L158-L161) and a predefined payload `{"pairingCode":…Manual fix · PyPI
pip install --upgrade "iSponsorBlockTV>=2.11.0"Sources