UPnP SSDP Exposed to the Internet
A device answers UPnP SSDP discovery requests from the internet, disclosing device details and allowing its responses to be abused to amplify denial-of-service attacks.
| Severity | Medium |
| CVSS 3.1 | 5.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L Open in the calculator |
| CVSS 4.0 | 6.9 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:N/SA:L Open in the calculator |
| CWE | CWE-1327: Binding to an Unrestricted IP Address |
| MITRE ATT&CK | T1498.002 Reflection Amplification, T1592.002 Software |
| Category | Security Misconfiguration |
Description
The device answers Simple Service Discovery Protocol (SSDP) requests on UDP 1900 from the internet. SSDP is the discovery part of Universal Plug and Play (UPnP) and is intended for use within a local network, where devices announce themselves and answer multicast search requests. Routers, cameras, printers, media servers and other embedded devices often answer the same requests when they arrive on an internet-facing interface.
An attacker can send small SSDP requests with a forged source address so that the device sends much larger responses to a victim. CISA's guidance on UDP amplification lists SSDP among the protocols abused in this way, so an exposed device can be used in distributed denial-of-service attacks against third parties, consuming the organisation's own bandwidth at the same time. The replies also disclose the device type, software and versions, which helps an attacker target known vulnerabilities.
The device's own data is not directly exposed unless its UPnP control interface can also be reached. Where the device description and control URLs are reachable from the internet as well, the control interface itself is exposed, which on some routers allows port mappings to be added remotely, and the event subscription weakness known as CallStranger (CVE-2020-12695) may also apply.
The issue is identified by sending an SSDP M-SEARCH request to the address and receiving a reply, for example with the Nmap upnp-info script. Replies typically include a SERVER header naming the operating system and UPnP software and a LOCATION URL for the device description. Scanners report it as SSDP or UPnP exposed to the internet.
Remediation
Stop the device answering discovery requests from outside the local network:
- Disable UPnP on internet-facing interfaces of routers, firewalls and other edge devices, and disable it entirely on devices that do not need it.
- Block inbound UDP 1900 at the perimeter firewall, together with inbound access to the UPnP description and control ports the device uses.
- Update device firmware, and replace devices that cannot be configured to stop answering from the internet.
- Where UPnP port mapping is used on internal routers, check that mappings cannot be requested from the internet, and review existing mappings for entries that were not created deliberately.
Confirm the fix by sending an SSDP M-SEARCH request to the device's external address and checking that no reply is received.
References
Add This Finding to Your Library
In Pental this write-up is in Settings, Library. Add to my library copies it into your own, rated in your firm's CVSS version, ready to put in your own words.
Free trialYour trial starts when your portal goes live, not when you sign up, so the time you spend setting up does not count. · No card required
Only need the reporting? Our reporting tool is free and open source, with the same library.