Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


July 23, 2002

The Perils of UPnP


RSS
Subscribe to Windows IT Pro | See More Security Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Last week, I did a routine check of a client site's firewall log and discovered, as usual, the log was clogged with records showing that the firewall had blocked Universal Plug and Play (UPnP) packets from three Windows XP systems on the network. Every time the UPnP specter raises its ugly head, the traffic pattern is always consistent: The firewall logs four UPnP packets every 25 seconds from each system, 24 hours a day. Aside from the fact that these packets consume bandwidth and are useless on a corporate network, UPnP events clog the firewall log. If you haven’t yet tackled the constant UPnP chatter on your network, read on to discover what UPnP traffic is, the security issues around UPnP, the XP services and components that generate UPnP traffic, and a few commands you can use to identify and kill the responsible process.

What is UPnP?
Unlike the Plug and Play (PnP) protocol the OS uses to detect the presence or absence of locally connected PnP-compatible hardware devices, UPnP is designed to locate UPnP-compatible network devices. UPnP is a group of protocols that enable home-based XP networks to be self configuring and reduce the technical acumen users need to implement peer-to-peer networking. In theory, when you plug a UPnP-compatible printer, digital camera, or scanner into the network, XP’s UPnP discovery process helps the OS locate, identify, and connect to such devices. I've never purchased or installed a UPnP-compatible network device, so I don't know whether such hardware is widely available or how well it works.

UPnP Security Risks
Every default install of XP Professional Edition and XP Home Edition includes the UPnP service and MSN Explorer. The UPnP service is a native service and MSN Explorer is an XP component. You introduce UPnP traffic on Windows 2000 and Windows 9x systems when you install MSN Messenger. Unless you perform a custom MSN Messenger install, each system will start transmitting UPnP packets as soon as it boots. Even worse, the packets indicate that the system is ready, willing, and able to accept incoming traffic on TCP port 5000 and UDP port 1900. If you have an XP system connected to the Internet and you don’t disable UPnP traffic, you’re inviting intrusive activity.

If you don’t disable UPnP or install the hotfix that Security Bulletin MS01-059 (Unchecked Buffer in Universal Plug and Play can Lead to System Compromise) describes, a malicious user can remotely gain control of the system and download and run code of the user’s choice. For more information, read the Microsoft article "Unchecked Buffer in Universal Plug and Play Can Lead to System Compromise for Windows XP" at http://support.microsoft.com/default.aspx?scid=kb;en-us;q315000. You can download the English version of the UPnP hotfix at http://www.microsoft.com/downloads/release.asp?releaseid=34951.

Some of the malicious code is responsible for well-documented Denial of Service (DoS) and Distributed Denial of Service (DDoS) attacks. Security experts anticipate that UPnP attacks will increase in frequency and severity as hackers ramp up to exploit existing and future vulnerabilities.

UPnP Unplugged
XP’s UPnP feature uses two native services: the UPnP Device Host service and the Simple Service Discovery Protocol (SSDP) service. The UPnP Device Host service depends on the SSDP service. A standard XP install enables the SSDP service and sets the startup type to automatic; a standard install also sets the UPnP Device Host service startup type to manual startup, but doesn't enable the service. XP components that implement UPnP functionality start the UPnP Device Host service as needed. These services generate UPnP traffic at hourly or longer intervals and announce to anyone listening that the system will accept incoming TCP and UDP connections. The announcements contain the TCP/IP address of the XP system, which means that an XP system connected to the Internet is a well-known and vulnerable entity. You can eliminate this source of vulnerability by disabling both services.

To disable activity from the native services, start the Microsoft Management Console (MMC) Control Panel Services applet. First, stop the dependent UPnP Device Host service if it's running and set the startup type to disabled. Then stop the SSDP service and set the startup type to disabled. Some automatic XP updates and hotfixes re-enable both services, so you’ll need to check your firewall log regularly to ensure that UPnP packets are not present on the network. If you’re building images for a corporate network, you can use a security template or Group Policy to permanently disable both services.

MSN Explorer is a suite of utilities that facilitate Internet communication, one of which is the Messenger service. The Messenger service, which you can install as a standalone feature using Windows Update, is the source of the every-25-seconds UPnP traffic that clogs the firewall log. MSN Explorer is an XP component so it doesn't appear in the Add/Remove Programs list. To remove MSN Explorer, go to Add/Remove Programs, click the Windows components button, and uncheck MSN Explorer when it appears in the component list. Best practices suggest that you remove MSN Explorer from all versions of XP builds you plan to distribute on your network.

End of Article



Reader Comments
Tuesday, July 23, 2002
To the Author:

Would greatly appreciate your investigation of the opposite premise of your article, that one purchases XP specifically for the Messenger communication services, which were widely advertised at the launch. Re-enforcing your comment about compatible network hardware, it is significant that none are listed in Microsoft's extensive catalog of "approved equipment”, nor have I been able to locate any from the major 5-6 manufacturers of such. I installed a high speed microwave connection and complete computer system for my 91 year old Dad to be able to communicate from a remote area of Arizona via voice & video, and use the Remote Desktop to keep him up to date; none of this works, and I would like Microsoft to be held publicly responsible for these flagrantly unfulfilled advertising claims. I believe you should take a more comprehensive view of such technicalities, not just how to eliminate a bother.

Thank you.

Douglas Hopkins July 23, 2002


What you don't say is whether MS Messenger is disabled by disabling these two services. Or what other side effects a (home) user can expect.

Ralph July 24, 2002


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Confirmed: Battery Life Issues Not Windows 7's Fault

Microsoft on Monday issued a lengthy statement about the recent Windows 7 battery controversy, echoing my assessment from earlier in the day, but backing it up with hard, cold evidence. ...

Microsoft Warns of Windows Version Expirations

Microsoft warned that this year will see three out-of-date Windows versions slip into retirement. ...

Battery Life Issues Almost Certainly Not Windows 7's Fault

While Microsoft is still investigating a notebook battery life issue that was supposedly caused by Windows 7, some interesting trends have emerged. ...


Security Whitepapers Reducing the Costs and Risks of Branch Office Data Protection

Solving Desktop Management Challenges in Healthcare

Solving Desktop Management Challenges in Education

Related Events The Increasing Threat of Financially Motivated Data Theft

Deep Dive into Windows Server 2008 R2 presented by John Savill

The Easiest Way to Save Time and Money on E-mail and SharePoint Management

Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2010 Penton Media, Inc. Terms of Use | Privacy Statement