Port 5357 Hacktricks
Get-CimInstance -Namespace root\standardcimv2 -ClassName MSFT_WSDDeviceProxy Use code with caution. 5. Defense and Mitigation Firewall Hardening
If network discovery features are not explicitly required (common in secure enterprise environments), disable the underlying services.
When you map a network drive or add a network printer in Windows, the system frequently relies on this port to negotiate connections and query device capabilities. 2. Reconnaissance and Enumeration port 5357 hacktricks
Blue teams can detect and investigate WSD activity by monitoring for specific network patterns. Capturing traffic on UDP port 3702 for multicast discovery probes is key. Additionally, any unexpected TCP connections to port 5357, particularly from non-local subnets or during off-hours, should be a red flag.
5357/tcp open http Microsoft HTTPAPI httpd 2.0 |_http-title: Service Unavailable |_http-server-header: Microsoft-HTTPAPI/2.0 When you map a network drive or add
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
Once the open port is confirmed, pentesters can use tools like curl or a web browser to interact with the service and gather more information. The WSD service often discloses device metadata via its SOAP-based API. Using tools like to capture multicast traffic on UDP port 3702 can also reveal a wealth of information about available devices and services. Capturing traffic on UDP port 3702 for multicast
When Windows detects other computers or devices (like printers) on the network, it often interacts through this endpoint to fetch XML-based metadata about the host capability. 2. Enumeration and Information Gathering
A critical vulnerability ( MS09-063 ) previously allowed remote code execution through specially crafted WSD messages on ports 5357/5358. While patched in modern systems, it serves as a reminder of the risks of leaving this API exposed.
The actual functionality resides on specific sub-paths. The standard endpoint used for device queries is /WSD/?WSDL or a generated UUID path.