PSA: RPC Vulnerabilities in Windows 2000, XP, NT4

What's up with Microsoft?

  • What inept goofs — how can they charge money for this stuff?

    Votes: 18 62.1%
  • Hey, they're doing the best they can with the resources they have!

    Votes: 3 10.3%
  • Um, other.

    Votes: 8 27.6%

  • Total voters
    29

Byron In Exile

Frederick Fucking Chopin
Joined
May 3, 2002
Posts
66,591
CERT Coordination Center Vulnerability Note VU#568148
A buffer overflow vulnerability exists in Microsoft's Remote Procedure Call (RPC) implementation. A remote attacker could exploit this vulnerability to execute arbitrary code or cause a denial of service. An exploit for this vulnerability is publicly available.
The above is explained more fully in Microsoft Security Bulletin MS03-026:
Microsoft Security Bulletin MS03-026

Buffer Overrun In RPC Interface Could Allow Code Execution (823980)


Originally posted: July 16, 2003

Revised: July 21, 2003

Summary

Who should read this bulletin: Users running Microsoft® Windows®

Impact of vulnerability: Run code of attacker’s choice

Maximum Severity Rating: Critical

Recommendation: Systems administrators should apply the patch immediately

End User Bulletin: An end user version of this bulletin is available at:

http://www.microsoft.com/security/security_bulletins/ms03-026.asp

Affected Software:

Microsoft Windows NT® 4.0
Microsoft Windows NT 4.0 Terminal Services Edition
Microsoft Windows 2000
Microsoft Windows XP
Microsoft Windows Server™ 2003

Not Affected Software:

Microsoft Windows Millennium Edition


Technical details

Technical description:

Microsoft originally released this bulletin and patch on July 16, 2003 to correct a security vulnerability in a Windows Distributed Component Object Model (DCOM) Remote Procedure Call (RPC) interface. The patch was and still is effective in eliminating the security vulnerability. However, the “mitigating factors” and “workarounds” discussions in the original security bulletin did not clearly identify all of the ports by which the vulnerability could potentially be exploited. We have updated this bulletin to more clearly enumerate the ports over which RPC services can be invoked, and to ensure that customers who have chosen to implement a workaround before installing the patch have the information that they need to protect their systems. Customers who have already installed the patch are protected from attempts to exploit this vulnerability, and need take no further action.

Remote Procedure Call (RPC) is a protocol used by the Windows operating system. RPC provides an inter-process communication mechanism that allows a program running on one computer to seamlessly execute code on a remote system. The protocol itself is derived from the Open Software Foundation (OSF) RPC protocol, but with the addition of some Microsoft specific extensions.

There is a vulnerability in the part of RPC that deals with message exchange over TCP/IP. The failure results because of incorrect handling of malformed messages. This particular vulnerability affects a Distributed Component Object Model (DCOM) interface with RPC, which listens on RPC enabled ports. This interface handles DCOM object activation requests that are sent by client machines to the server. An attacker who successfully exploited this vulnerability would be able to run code with Local System privileges on an affected system. The attacker would be able to take any action on the system, including installing programs, viewing changing or deleting data, or creating new accounts with full privileges.


What’s the scope of the vulnerability?

This is a buffer overrun vulnerability. An attacker who successfully exploited this vulnerability could gain complete control over a remote computer. This would give the attacker the ability to take any action on the server that they want. For example, and attacker could change Web pages, reformat the hard disk, or add new users to the local administrators group.

To carry out such an attack, an attacker would require the ability to send a malformed message to the RPC service and thereby cause the target machine to fail in such a way that arbitrary code could be executed.


What causes the vulnerability?

The vulnerability results because the Windows RPC service does not properly check message inputs under certain circumstances. This particular failure affects an underlying Distributed Component Object Model (DCOM) interface, which listens on RPC enabled ports. By sending a malformed RPC message, an attacker could cause the RPC service on a machine to fail in such a way that arbitrary code could be executed. interface with RPC on the remote machine to fail in such a way that arbitrary code could be executed.


What's wrong with Microsoft’s implementation of Remote Procedure Call (RPC)?

There is a flaw in a part of RPC that deals with message exchange over TCP/IP. A failure results because of incorrect handling of malformed messages. This particular failure affects an underlying DCOM interface, which listens on TCP/IP port 135, and can be reached via ports 139 and 445. By sending a malformed RPC message, an attacker could cause the RPC service on a machine to fail in such a way that arbitrary code could be executed.


What does the patch do?

The patch corrects the vulnerability by altering the DCOM interface to properly check the information passed to it.


Workarounds

Are there any workarounds that can be used to block exploitation of this vulnerability while I am testing or evaluating the patch?

Yes. Although Microsoft urges all customers to apply the patch at the earliest possible opportunity, there are a number of workarounds that can be applied to help prevent the vector used to exploit this vulnerability in the interim.

It should be noted that these workarounds should be considered temporary measures as they just help block paths of attack rather than correcting the underlying vulnerability.

The following sections are intended to provide you with information to help protect your computer from attack. Each section describes the workarounds that you may want to use depending on your computer’s configuration.

Each section describes the workarounds available depending on your required level of functionality.


Block RPC interface ports at your firewall.

Port 135 is used to initiate an RPC connection with a remote computer. In addition, there are other RPC interface ports that could be used by an attacker to remotely exploit this vulnerability. Blocking the following ports at the firewall will help prevent systems behind that firewall from being attacked by attempts to exploit this vulnerability:

TCP/UDP Port 135
TCP/UDP Port 139
TCP/UDP Port 445

In addition, customers may have configured services or protocols that use RPC that might also be accessible from the Internet. Systems administrators are strongly encouraged to examine RPC ports that are exposed to the Internet and to either block these ports at their firewall, or apply the patch immediately.


Internet Connection Firewall.

If you are using the Internet Connection Firewall in Windows XP or Windows Server 2003 to protect your Internet connection, it will by default block inbound RPC traffic from the Internet.
And in other news:

CERT Coordination Center Vulnerability Note VU#326746
A vulnerability exists in Microsoft's Remote Procedure Call (RPC) implementation. A remote attacker could exploit this vulnerability to cause a denial of service. An exploit for this vulnerability is publicly available.

I. Description

Microsoft's Remote Procedure Call (RPC) implementation contains a vulnerability that can be remotely exploited. This vulnerability is not the same as the vulnerability described in CA-2003-16 (MS03-026), however, the impact is similar. An exploit for this vulnerability is publicly available. We have confirmed with Microsoft that this vulnerability only affects Windows 2000 systems.

II. Impact

A remote attacker could exploit this vulnerability to cause a denial of service. Although it has been reported that this vulnerability may be used to gain elevated privileges, according to Microsoft's testing, exploitation of this vulnerability can only cause a denial-of-service condition.

III. Solution

The CERT/CC is currently unaware of a practical solution to this problem.

Restrict Access

You may wish to block access to from outside your network perimeter, specifically by blocking access to TCP and UDP ports 135, 139, and 445. This will limit your exposure to attacks. However, blocking at the network perimeter would still allow attackers within the perimeter of your network to exploit the vulnerability. It is important to understand your network's configuration and service requirements before deciding what changes are appropriate.
 
This could very well be the most boring, and useless thread, let alone poll I have ever read.

Hi Byron....Nice to meet you.
 
Killswitch said:
This could very well be the most boring, and useless thread, let alone poll I have ever read.
Well, whether or not that's true, thanks for making it less interesting than it was.
Hi Byron....Nice to meet you.
Hey, how's it goin'?
 
Killswitch said:
This could very well be the most boring, and useless thread, let alone poll I have ever read.

Hi Byron....Nice to meet you.

well killswitch - dont know if I should be worried ,but that is two threads that I have agreed with you tonigt

shit
 
Gord said:
well killswitch - dont know if I should be worried ,but that is two threads that I have agreed with you tonigt

shit
Hey Gord.

Maybe you two can put your heads together and start a rilly interesting one someday.
 
On a machine that's being attacked via the first of the above vulnerabilities one might see the following:
Code:
[b]>Date: Fri, 25 Jul 2003 14:08:30 -0400
>To: security-fyi at mit.edu, Itpartners at mit.edu, 
>    winpartners at mit.edu, mitvirus at mit.edu
>Subject: exploit for MS03-026 RPC vulnerability

If a machine is a target of the currently available exploit 
program for the MS03-026 vulnerability, it will in some 
cases pop up a window titled "System Shutdown" with
the text:


   This system is shutting down. Please save all work in progress
   and log off. Any unsaved changes will be lost. This shutdown
   was initiated by NT AUTHORITY\SYSTEM

   Time before shutdown:   00:00:59

   Message:
   Windows must now restart because the Remote Procedure Call
   (RPC) service terminated unexpectedly


(The machine then reboots in 59 seconds.)

This indicates an unsuccessful exploit attempt on an unpatched
machine. If customers see this message, they should most likely
save their work and then disconnect from the network, or else
patch the machine immediately after it reboots.[/b]
 
I doubt if Microsoft is doing the best they can, but in a world full of people with something to prove, Microsoft makes a big target.

I doubt if many of us do flawless work all of the time, we just don't have so many trying to find our faults & exploit them.


This won't be the last time.



Byron, could this have anything to do with advertising on XP pop-up alerts, or is it totally unrelated?
 
patient1 said:
I doubt if Microsoft is doing the best they can, but in a world full of people with something to prove, Microsoft makes a big target.

I doubt if many of us do flawless work all of the time, we just don't have so many trying to find our faults & exploit them.

This won't be the last time.
You're right that nobody's perfect, and mistakes happen. But most servers run Unix, yet the greatest share of compromised servers run Microsoft.

I think it's interesting that the operating systems that cost nothing are more secure than the ones that you pay for.
Byron, could this have anything to do with advertising on XP pop-up alerts, or is it totally unrelated?
Nope, that's not related.

In simple terms, a proper firewall should guard against this problem if you don't want to hassle with updating Windows. It is serious, though, as it could result in a completely compromised system. And the exploit for this is publicly available, and it is being used.
 
While the articles might be long and wordy, the content is important. If this is the vunerability I'm thinking of, about 75% of Windows users are vunerable. I seriously doubt most people would want their computers to become the tools of hackers. Patch, patch, patch people! ;)
 
shadowphoenix said:
While the articles might be long and wordy, the content is important. If this is the vunerability I'm thinking of, about 75% of Windows users are vunerable. I seriously doubt most people would want their computers to become the tools of hackers. Patch, patch, patch people! ;)
There's an update for the first vulnerability, but so far not for the second one. That requires firewall protection. It's built into XP, but I don't know about Windows 2000, which the second vulnerability affects.
 
Desiqn said:
Thanks Byron.
No prob. — I'm sure it's all very tedious for everyone, but when their machines start rebooting 20 times a day, and they can't figure out why, perhaps then their interest will be stimulated.
 
Byron In Exile said:
There's an update for the first vulnerability, but so far not for the second one. That requires firewall protection. It's built into XP, but I don't know about Windows 2000, which the second vulnerability affects.

Win2000 doesn't. Just another reason to run a real router on the home network instead of the stuff they sell at Best Buy. Ya just send the TCP and UDP calls to the big bit bucket.
 
Speaking of Berkeley, meanwhile...

http://socrates.berkeley.edu:2002/RPC.block.announce.html
University of California, Berkeley
System and network security

August 1, 2003

ALERT: Critical security risk for Windows computers

A vulnerability in newer versions of the Microsoft Windows operating system was recently identified and a patch has been released by Microsoft. Unfortunately, many campus computers remain un-patched and vulnerable. There is reasonable concern that this could lead to very widespread compromises of Windows computers. Unpatched systems can easily be attacked by anyone on the internet giving them complete control over the computer and access to any information stored on it.

Because of this potential, the Campus System and Network Security Office (SNS) has authorized that several network "ports" used by Windows be temporarily blocked at the campus border as of 6:00am on Tuesday, August 5th. If the situation worsens, the block may occur sooner.

The block is intended to give system administrators time to patch the thousands of computers that may still be vulnerable before widespread attacks become unmanageable. Therefore, the blocks will be temporary and limited to no more than four days. If SNS can determine that the vulnerability to campus is minimal, the blocks will be removed sooner.

The impact of these blocks is that several Microsoft services including file sharing, access to exchange mail servers, and remote desktop access will not function across the border of the campus network.
 
patient1 said:
Byron, could this have anything to do with advertising on XP pop-up alerts, or is it totally unrelated?
On the pop-up problem, I found this, which might be of interest:

http://grc.com/stm/shootthemessenger.htm
The Latest Spam Technology

The Windows "Messenger Service" is being exploited to spray the Internet with unsolicited commercial eMail. The receipt of a single UDP packet can cause a "Messenger Service" dialog to pop-up on the user's screen. It is possible for the sender to "spoof" (falsify) the packet's "Source IP", making these packets impossible to trace back to their origin. If our experience with eMail Spam is any model, we can expect to see a lot more of this in the future.
There's a small utility at this site you can use to disable the service.
 
Killswitch said:
This could very well be the most boring, and useless thread, let alone poll I have ever read.
I was just offered a case of my choice of beer for posting this thread.

So there.
 
Last edited:
CERT Advisory CA-2003-20 W32/Blaster worm

Original issue date: August 11, 2003
Source: CERT/CC

Systems Affected
Microsoft Windows NT 4.0
Microsoft Windows 2000
Microsoft Windows XP
Microsoft Windows Server 2003


Overview
The CERT/CC is receiving reports of widespread activity related to a new piece of malicious code known as W32/Blaster. This worm appears to exploit known vulnerabilities in the Microsoft Remote Procedure Call (RPC) Interface.


I. Description
The W32/Blaster worm exploits a vulnerability in Microsoft's DCOM RPC interface as described in VU#568148 and CA-2003-16. Upon successful execution, the worm attempts to retrieve a copy of the file msblast.exe from the compromising host. Once this file is retrieved, the compromised system then runs it and begins scanning for other vulnerable systems to compromise in the same manner. In the course of propagation, a TCP session to port 135 is used to execute the attack. However, access to TCP ports 139 and 445 may also provide attack vectors and should be considered when applying mitigation strategies. Microsoft has published information about this vulnerability in Microsoft Security Bulletin MS03-026.

Lab testing has confirmed that the worm includes the ability to launch a TCP SYN flood denial-of-service attack against windowsupdate.com. We are investigating the conditions under which this attack might manifest itself. Unusual or unexpected traffic to windowsupdate.com may indicate an infection on your network, so you may wish to monitor network traffic.

Sites that do not use windowsupdate.com to manage patches may wish to block outbound traffic to windowsupdate.com. In practice, this may be difficult to achieve, since windowsupdate.com may not resolve to the same address every time. Correctly blocking traffic to windowsupdate.com will require detailed understanding of your network routing architecture, system management needs, and name resolution environment. You should not block traffic to windowsupdate.com without a thorough understanding of your operational needs.

We have been in contact with Microsoft regarding this possibility of this denial-of-service attack.


II. Impact
A remote attacker could exploit these vulnerabilities to execute arbitrary code with Local System privileges or to cause a denial-of-service condition.


III. Solutions

Apply patches

All users are encouraged to apply the patches referred to in Microsoft Security Bulletin MS03-026 as soon as possible in order to mitigate the vulnerability described in VU#568148. These patches are also available via Microsoft's Windows Update service.

Systems running Windows 2000 may still be vulnerable to at least a denial-of-service attack via VU#326746 if their DCOM RPC service is available via the network. Therefore, sites are encouraged to use the packet filtering tips below in addition to applying the patches supplied in MS03-026.

It has been reported that some affected machines are not able to stay connected to the network long enough to download patches from Microsoft. For hosts in this situation, the CERT/CC recommends the following:

1. Physically disconnecting the system from the network
2. Check the system for signs of compromise.
  In most cases, an infection will be indicated by the presence of the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\windows auto update" with a value of msblast.exe. If this key is present, remove it using a registry editor.
3. If you're infected, terminate the running copy of msblast.exe using the Task Manager.
4. Take one of the following steps to protect against the compromise prior to installing the Microsoft patch:
  Disable DCOM as described below
  Enabling Microsoft's Internet Connection Filter (ICF), or another host-level packet filtering program to block incoming connections for 135/tcp
5. Reconnect the system to the network and apply the patches in the recommended manner

Trend Micro, Inc. has published a set of steps to accomplish these goals. Symantec has also published a set of steps to accomplish these goals.

Disable DCOM

Depending on site requirements, you may wish to disable DCOM as described in MS03-026. Disabling DCOM will help protect against this vulnerability but may also cause undesirable side effects. Additional details on disabling DCOM and possible side effects are available in Microsoft Knowledge Base Article 825750.

Filter network traffic

Sites are encouraged to block network access to the following relevant ports at network borders. This can minimize the potential of denial-of-service attacks originating from outside the perimeter. The specific services that should be blocked include

69/UDP
135/TCP
135/UDP
139/TCP
139/UDP
445/TCP
445/UDP
4444/TCP

Sites should consider blocking both inbound and outbound traffic to these ports, depending on network requirements, at the host and network level. Microsoft's Internet Connection Firewall can be used to accomplish these goals.

If access cannot be blocked for all external hosts, the CERT/CC recommends limiting access to only those hosts that require it for normal operation. As a general rule, the CERT/CC recommends filtering all types of network traffic that are not required for normal operation.

Because current exploits for VU#568148 create a backdoor, which is in some cases 4444/TCP, blocking inbound TCP sessions to ports on which no legitimate services are provided may limit intruder access to compromised hosts.
 
This worm is running rampant through IRC...know of at least 20 people who've had to do reformats and reinstalls of Windows due to this worm.
 
Bob_Bytchin said:
This worm is running rampant through IRC...know of at least 20 people who've had to do reformats and reinstalls of Windows due to this worm.
Well, I sure hope Killswitch and Gord are okay. They both scoffed at this thread when I started it six days ago, so I'm sure they didn't do anything to protect their systems. I don't know if I'll be able to sleep tonight worrying about them.
 
killallhippies said:
make that 21.
Ouch.

Win2k or XP?

It seems from the CERT description that terminating the running copy and removing the registry key ought to get rid of it, without having to reformat/reinstall.
 
Byron In Exile said:
Ouch.

Win2k or XP?

It seems from the CERT description that terminating the running copy and removing the registry key ought to get rid of it, without having to reformat/reinstall.

xp. i wouldn't know. i actually didn't intend on reformatting and reinstalling. it's been a long day for this computer illiterate bastard.




msn has shitty tech support.
 
Back
Top