Port 5357 Hacktricks -
Port 5357 is typically associated with the , a Microsoft implementation of the WS-Discovery protocol. It allows devices like printers and scanners to be automatically discovered on a local network.
Port 5357 runs the over HTTP. It enables device-centric communication using WS-Discovery, allowing client machines to discover network-attached peripherals and resources. Protocol : TCP Service : Web Services for Devices (WSD) / Network Discovery
A significant memory corruption vulnerability exists where a crafted WS-Discovery message with an overly long MIME-Version string can lead to stack corruption and arbitrary code execution. WSDAPI RCE (CVE-2020-0796/Related):
Domain Controllers rarely need WSD active. If port 5357 is open, the host is likely a workstation, a print server, or a file storage server.
The first step is to confirm the service and its version. port 5357 hacktricks
Enables automatic discovery of network-connected devices (printers, scanners, cameras) over HTTP, allowing them to communicate on local networks without needing central servers or manual configuration.
Securing Port 5357 involves disabling unnecessary discovery protocols and restricting network access. 1. Disabling Network Discovery
Port 5357 can leak metadata useful for fingerprinting the target.
To help tailor this guide further, let me know if you would like me to expand on like Metasploit modules, provide precise curl commands for XML parsing, or outline mitigation steps for Active Directory environments . Share public link Port 5357 is typically associated with the ,
You can utilize native Windows PowerShell commands to query WSD infrastructure directly without uploading external binaries: powershell
But the HackTricks page had warned about a darker possibility. Sometimes, this port was tied to the "Network Discovery" feature, which utilized the and NBNS protocols. While this was technically a different vector, they often overlapped in misconfigurations.
: While less common than port 80 or 443, if the service is misconfigured, it might be leveraged in NTLM relay attacks or for internal network scanning. Common Nmap Command nmap -sV -p 5357 Use code with caution. Copied to clipboard
On , this port is categorized under 5357 - Pentesting WS-Discovery. Key Takeaways for Port 5357 Service : Microsoft HTTPAPI httpd 2.0 (SSDP/WS-Discovery). If port 5357 is open, the host is
is commonly used by:
Port 5357 is a classic example of a convenience feature that can introduce significant risk. While the Web Services for Devices API makes networking peripherals easier to use, it also opens a web-accessible attack surface on the host that is often forgotten. As seen with the exploitation of the HTTPAPI service, this port can be a direct path to a reverse shell.
to Port 5357 so it is only reachable on trusted local subnets. Disabling Network Discovery for public profiles via Advanced Sharing Settings. Unchecking WSD ports in printer properties if they are not strictly required.