Port is used by the Web Services for Devices API (WSDAPI) , a Microsoft implementation of the WS-Discovery protocol . It allows Windows systems to automatically discover and communicate with network devices like printers, scanners, and cameras over HTTP. Service Summary Service Name: wsdapi Common Banner: Microsoft-HTTPAPI/2.0 Protocol: HTTP over TCP (Port 5357) or HTTPS (Port 5358).
: If you are auditing an older, unpatched Windows Server or workstation, the HTTP protocol stack may be vulnerable to a remote code execution or Denial of Service (DoS) flaw via a maliciously crafted Range header.You can test for this vulnerability using curl :
To minimize the risks associated with port 5357, follow these best practices:
During a penetration test or internal audit, port 5357 presents itself as an active HTTP endpoint. 1. Nmap Identification
5357/tcp open http Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP) |_http-title: Service Unavailable Use code with caution.
The service responds to HTTP POST requests containing specific XML SOAP payloads. 2. Enumeration and Reconnaissance
Attackers use this port to identify internal devices to pivot from a workstation to network devices. PentestPad 3. Vulnerabilities and Exploits CVE-2009-2512 (MS09-063):
The Microsoft-HTTPAPI/2.0 banner confirms a Windows-based web service is running, which helps attackers identify the target OS.