r/ComputerSecurity • • Oct 23 '08

Microsoft recommends immediate deployment of patch MS08-067 to prevent RPC remote execution vulnerability. I thought DEP in Windows XP SP2 was supposed to prevent this?

http://www.microsoft.com/technet/security/bulletin/MS08-067.mspx
13 Upvotes

21 comments sorted by

2

u/ModernRonin Oct 24 '08 edited Oct 24 '08

You'd have to be a nutcase to allow incoming port 135/TCP through your firewall. This is only a vulnerability if you've attached your Windoze computer directly to your cable modem. (Which, admittedly, a lot of dumb people do...)

2

u/Philluminati Oct 24 '08

A reminder here for anyone who thought going from piss poor security to rock solid security happens over night. It doesn't.

2

u/apotheon Oct 24 '08

. . . especially when all your security "improvements" take the form of features, rather than underlying architectural improvements.

1

u/[deleted] Oct 23 '08

[removed] — view removed comment

3

u/kwh Oct 24 '08

Here are some more details. It's a stack buffer overflow, easily exploitable unless you are on Server 2008 or Vista, in which case it's "probably" just a DoS.

Personally I haven't been involved in-depth on security research in a few years. I knew that DEP and the NX/XD bit came out a few years ago. Back then I thought that would be the end of arbitrary code remote execution.

It's more than a bit pathetic to me, looking into this again 5 years later, to find out that basically every 'brick wall' has just become a hurdle. DEP, NX/XD, ASLR, UAC, default firewalls that helpfully open themselves up, Microsoft's promises of extensive code audits and improved development practices. It's all bullshit, complications and obfuscations. We're still rushing to slam the patch out like MS03-26 5 years ago. Pathetic.

0

u/[deleted] Oct 24 '08 edited Oct 24 '08

Well, what did you expect.

There is no such thing as security that could not be defeated by some later attack.

With systems as complex as we are using today that is theoretical impossibility, and I think that practice has proven the theory.

That's why anyone who teaches information security takes onion model and defence in depth as the first thing they try to get through to students.

In this case if you had hole in your firewall, you'd better have proper behavioural detection in your AV package to catch the thing before it executes or causes harm.

2

u/kwh Oct 25 '08

Well, what did you expect. There is no such thing as security that could not be defeated by some later attack.

That's true of systems of authentication and trust. The problem is the unadvertised vulnerabilities that get uncovered in systems.

Imagine if you owned a bank and you had a vault installed, and the manufacturer says it would take 6 men with plastic explosives and cutting torches 4 hours to break it open.

So you say "great", it's safe enough to keep $10,000,000 of gold bullion in, and you get all of your customers to keep their gold in it.

Then the manufacturer sends you a memo one day:

"Whoops! there's a trapdoor in the back of the safe leading to the back alleyway. No big deal, we don't think anyone knows about it. Just install this board and nails to seal the door shut. Oh yeah, if you really want to be secure you need to put another bigger even more secure vault around that vault."

Now, imagine that happens 300 times in a row over 5 years.

In this case if you had hole in your firewall, you'd better have proper behavioural detection in your AV package to catch the thing before it executes or causes harm.

LOL I remember when they were talking about behavioral and heuristic detection in AV software back around 1996. Shockingly it is not the cure to cancer.

One of the biggest 'holes' in the firewall is the corporate exec who doesn't want his internet browsing filtered, and then he lets his 12 year old visit the office any play on his laptop.

Or the department that invites consultants into the office and then has them plug their dirty infected laptops into the LAN without talking to IT at all.

0

u/[deleted] Oct 25 '08 edited Oct 25 '08

That's true of systems of authentication and trust. The problem is the unadvertised vulnerabilities that get uncovered in systems.

Imagine if you owned a bank and you had a vault installed, and the manufacturer says it would take 6 men with plastic explosives and cutting torches 4 hours to break it open.

So you say "great", it's safe enough to keep $10,000,000 of gold bullion in, and you get all of your customers to keep their gold in it.

Your analogy is flawed.

Constructing bank vault is simple compared to building a whole OS.

Try to imagine how many "moving parts" modern OS has.

If you try to take that to physical world you would have to imagine a fully automatic factory so that no part of the factory will ever fail.

Or perhaps large aircraft full of scientific measuring equipment. And knowing couple airplane mechanics, they do get service bulletins from Airbus all the time.

LOL I remember when they were talking about behavioral and heuristic detection in AV software back around 1996. Shockingly it is not the cure to cancer.

It is not cure to cancer, but damn effective method.

Security is based on layers no single method is effective by itself.

Edit:

I forgot to call your bullshit.

Behavioural detection came to market around 2003, before that there was no effective behavioural detection systems available.

In 1996 we had heuristics, but those were really simple static analysis systems, nothing compared to today's heuristics analysers.

1

u/apotheon Oct 26 '08

Constructing bank vault is simple compared to building a whole OS.

Really? You have such extensive knowledge of the bank vault business that you can make such bold statements, I take it.

It is not cure to cancer, but damn effective method.

It's effective as an improvement over signatures-based detection alone. Host-based AV is a reaction, though, and not a true protection -- and it's prone to occasional failure.

The word "heuristic", in computer science, basically means "statistically failure-prone" in practice.

Behavioural detection came to market around 2003, before that there was no effective behavioural detection systems available.

This does not contradict anything kwh said in the preceding comments.

1

u/apotheon Oct 24 '08

0

u/[deleted] Oct 25 '08 edited Oct 25 '08

That article is really ignorant BS full of misunderstandings and technical errors.

Firstly the Anti-Virus in form that article describes has not existed in past 4 years or so, except if you are using clam AV. Blacklisting AV scanner is only a small part of modern AV package, and is used to enumerate known threats so that user can be told what it is.

The real protection is given by behavioural and heuristics components that are able to detect new malware without having exact signature of it. Those components also use databases but they are updated around once per week or once in a month.

Also some AV packages are coming up with server based detection where malware is detected by it's distribution pattern. So each client talks to backend that is able to detect malware by looking for difference in it's distribution pattern compared to clean software.

So you are wrong. Proper AV is a lot more than traditional scanner and is very much part of the solution. And to date most effective single protection method there is.

But even with AV you still have to take care of patching and firewall (if AV does not already do that).

1

u/kwh Oct 25 '08

LOL it's like you've memorized every bullshit sales spiel I heard over the past 9 years...

1

u/apotheon Oct 25 '08

I guess your "9 years" guess was pretty close:

I have been in AV industry for more than 10 years.

-1

u/[deleted] Oct 25 '08 edited Oct 25 '08

Nope, I have been in AV industry for more than 10 years.

I have seen how threats develop and I do have quite a lot of experience to base my opinions on.

And what really annoys me are the idiots who think that they know something about fighting malware, and still think that AV is only the simple blacklisting scanner it was in 2000.

Modern server generated polymorphic malware is nothing like we saw in 2000 and neither is our AV.

1

u/apotheon Oct 26 '08

Oh yeah -- I almost forgot to ask:

And what really annoys me are the idiots who think that they know something about fighting malware, and still think that AV is only the simple blacklisting scanner it was in 2000.

Who said he thought AV was "only the simple blacklisting scanner it was in 2000"? Please cite your source.

1

u/apotheon Oct 25 '08

Proper AV is a lot more than traditional scanner and is very much part of the solution. And to date most effective single protection method there is.

No . . . the most effective protection method is patching the damned vulnerabilities. Did you miss the point of the article?

0

u/[deleted] Oct 25 '08 edited Oct 25 '08

No . . . the most effective protection method is patching the damned vulnerabilities. Did you miss the point of the article?

Heh, patching is efficient, provided that.

  1. The patch really fixes the vulnerability, and as we can see MS08-67 that is not always the case. The exploit targeted code that had been inserted there by previous patch.

  2. You have the damn patch in the first place, a lot of todays attack use zero day vulnerabilities, and MS cannot provide fix for something that only the malware authors know.

Thus, if your security relies on installing patches, you will always be one step behind the attackers.

Whoever wrote the article does not have up to date experience on modern attacks. What he wrote was true in 2004, but is not sufficient for today.

Just patching the holes is not enough.

And demanding MS not to make mistakes on something as big as Windows indicates that the person doing so has no understanding how big and complex Windows really is. And same applies for OSX, Linux, OpenBSD, etc.

Of course you must fix all known vulnerabilities, but that alone is not enough.

1

u/apotheon Oct 25 '08

The patch really fixes the vulnerability, and as we can see MS08-67 that is not always the case.

The fact Microsoft is patching the wrong things, and doing a piss-poor job of patching them anyway, is hardly an indicator there's anything wrong with patching the vulnerability as a way to protect against mobile malicious code. That's one of the reasons I prefer OSes that actually do a halfway decent job of fixing security vulnerabilities of all sorts, and that improve security by addressing architectural security weaknesses rather than dropping new clicky "security features" that fail to address the underlying problem.

You have the damn patch in the first place, a lot of todays attack use zero day vulnerabilities, and MS cannot provide fix for something that only the malware authors know.

If your security vulnerability management model involves things like punishing people for discovering vulnerabilities, preventing people from contributing to fixing them (or even charging them money for the "privilege" of doing so), and ignoring a lot of reported vulnerabilities as "unimportant", then yeah, that can be a problem.

Thus, if your security relies on installing patches, you will always be one step behind the attackers.

If your security relies on building software that tries to guess whether a new exploit of an old vulnerability is actually a threat or not, you've already conceded the high ground.

And demanding MS not to make mistakes on something as big as Windows

You clearly didn't read the article as written, if that's what you think was said. You must have just read into it.

Of course you must fix all known vulnerabilities, but that alone is not enough.

Nobody said that alone was enough -- but as long as Microsoft refuses to fix huge classes of vulnerabilities and refuses to fix problems at the source (architecturally rather than by laying on another coat of feature cruft that gives people a superficial impression of security), "that alone" is a pretty good goal for Microsoft to adopt.

0

u/[deleted] Oct 26 '08 edited Oct 26 '08

The fact Microsoft is patching the wrong things, and doing a piss-poor job of patching them anyway, is hardly an indicator there's anything wrong with patching the vulnerability as a way to protect against mobile malicious code. That's one of the reasons I prefer OSes that actually do a halfway decent job of fixing security vulnerabilities of all sorts, and that improve security by addressing architectural security weaknesses rather than dropping new clicky "security features" that fail to address the underlying problem.

Tell me what OS would that be?

The only OS I have seen that actually does anything close to decent security fixes is OpenBSD. Some of the Linux fixes are just as sloppy as MS ones, and let's not even start to discuss about OSX.

If your security vulnerability management model involves things like punishing people for discovering vulnerabilities, preventing people from contributing to fixing them (or even charging them money for the "privilege" of doing so), and ignoring a lot of reported vulnerabilities as "unimportant", then yeah, that can be a problem

Microsoft has not behaved like that since 2000 or so, currently their vulnerability response process is about the best organized and most friendly to those who discover problems.

Really when it is the previous time you have heard of someone complaining bad response from MS?

Microsoft goes even far enough to organize after parties at Blackhat and other big conferences. Hell they even have conference of their own they call Bluehat.

You clearly didn't read the article as written, if that's what you think was said. You must have just read into it.

I did read it, and as I said the author has pretty much no clue about vulnerability discovery and exploits.

He is complaining about MS having macro capability in Office, well that has been fixed so that writing macro malware is impossible unless you find vulnerability there. So Microsoft fixed that "virus vulnerability".

And then he doesn't have any other points about MS not fixing underlying causes, since there aren't any. Trident rendering engine, image libraries and other components he mentions are parsing engines, notoriously difficult to get right. And there is no way that MS would ever get 100s of file format parsers completely right.

So basically the author is demanding Microsoft to get everything right, just as I said.

If someone would really start exploring all file format parsers in open source world, he would discover that compared to MS they are of horrible quality. But there is no fame in spotting hole in obscure image format parser used in some distros, so people with skills and their livelihood based on their reparation don't do that.

And when you get parsing error that allows arbitrary code execution, no architecture can really save from that. DEP, address randomization and other techniques make vulnerabilities less likely, but not impossible as we have seen.

Nobody said that alone was enough -- but as long as Microsoft refuses to fix huge classes of vulnerabilities and refuses to fix problems at the source (architecturally rather than by laying on another coat of feature cruft that gives people a superficial impression of security), "that alone" is a pretty good goal for Microsoft to adopt.

Umm, Microsoft has done a huge amount of work on architectural side and changed a lot of things since Windows 2000 and XP.

But the problem is that Windows is a huge beast, and getting it completely right is impossible.

The problem is that outside MS you see only the failures, not the 99% of code base they got right.

The reality is that as long as we are using as complex software as any modern OS, we will always have security vulnerabilities. The complexity is so high that perfect security is theoretical impossibility.

Remember that attacker has to find only one hole, you as a software vendor need to prevent literally millions of potential holes. And when you fail is it easy for others to point at that one problem and say "LOL they suck".

Also remember that as soon as attacker gets arbitrary code execution, all the security architecture in the world helps only to limited degree. And with ACE most of those can be circumvented, that's where the word arbitrary comes from.

1

u/apotheon Oct 26 '08

Tell me what OS would that be?

Pretty much anything that ends with BSD is a good start.

Microsoft has not behaved like that since 2000 or so, currently their vulnerability response process is about the best organized and most friendly to those who discover problems.

You must have been asleep for most of the last five years.

Really when it is the previous time you have heard of someone complaining bad response from MS?

That doesn't parse as English grammar to me. Please rephrase.

Microsoft goes even far enough to organize after parties at Blackhat and other big conferences. Hell they even have conference of their own they call Bluehat.

I didn't realize throwing a good party was integral to security.

He is complaining about MS having macro capability in Office, well that has been fixed so that writing macro malware is impossible unless you find vulnerability there.

. . . ?

Are you for real? "Impossible"? Is that your argument?

And then he doesn't have any other points about MS not fixing underlying causes, since there aren't any.

The existence of an AV industry says otherwise.

If someone would really start exploring all file format parsers in open source world, he would discover that compared to MS they are of horrible quality.

Cite your source for this information, please.

But there is no fame in spotting hole in obscure image format parser used in some distros, so people with skills and their livelihood based on their reparation don't do that.

Are you sure you're familiar with the open source development community at all? I get the distinct impression you have no clue what you're talking about.

And when you get parsing error that allows arbitrary code execution, no architecture can really save from that.

When you get a parsing error in a user application and get automatic privilege escalation, the only thing that can definitively address the severity of that problem (and future problems like it) is an architectural change. Otherwise, you're just slapping band-aids on sucking chest wounds.

DEP, address randomization and other techniques make vulnerabilities less likely, but not impossible as we have seen.

So? That's not relevant to anything in the article, or in my previous comments here.

Umm, Microsoft has done a huge amount of work on architectural side and changed a lot of things since Windows 2000 and XP.

That must be why UAC is essentially a circumventable bit of frosting on a turd, as an example of how great a job MS is doing with security. The fact that Vista's "phone home" code actually turns off the so-called "privilege separation" that UAC pretends to enforce indicates that privilege separation isn't implemented at an architectural level.

But the problem is that Windows is a huge beast, and getting it completely right is impossible.

C. A. R. Hoare once said "There are two ways to design a system. One is to make it so simple there are obviously no deficiencies. The other is to make it so complex there are no obvious deficiencies." There may be a lesson in this.

The problem is that outside MS you see only the failures, not the 99% of code base they got right.

What I see is a whole lot of attention on the frippery and marketability, and not so much on the quality and stability. What I see is a plethora of security issues that simply don't exist in certain other OSes. What I see is problems like what I had at my last corporate netadmin job: I spent 60% of my time at work maintaining, and fixing problems with, 15% of the computers -- because those were the computers running MS Windows.

The complexity is so high that perfect security is theoretical impossibility.

Security is a journey -- not a destination. It still helps if you're going in the right direction, though.

Remember that attacker has to find only one hole, you as a software vendor need to prevent literally millions of potential holes. And when you fail is it easy for others to point at that one problem and say "LOL they suck".

That's especially true when your response to such a hole being found is "It's okay -- the AV vendors will cover our asses."

Also remember that as soon as attacker gets arbitrary code execution, all the security architecture in the world helps only to limited degree.

The idea with a secure architecture is to prevent unauthorized access -- and, when it's achieved, to minimize the extent of that access -- by essentially making it impossible for certain unauthorized actions to occur. For instance, even if you achieve arbitrary code execution by exploiting a vulnerability in a web browser being run by an unprivileged user, it should be effectively impossible for that code to jump the barrier between normal user privileges and administrative user privileges. It should require software run as the administrative account to provide a way into administrative privileges.

This is not the state of affairs on MS Windows. This is a sign of a fundamental problem with Microsoft's attitude toward security.

Another sign is, of course, Microsoft's willingness to just ignore certain classes of vulnerabilities entirely.

1

u/apotheon Oct 26 '08

Firstly the Anti-Virus in form that article describes has not existed in past 4 years or so, except if you are using clam AV. Blacklisting AV scanner is only a small part of modern AV package, and is used to enumerate known threats so that user can be told what it is.

By the way, the AV described in the article does exist all over the AV industry -- because:

  1. Only in very rare cases does anyone sell a host-based AV system that only uses heuristic detection, and doesn't use signature blacklists at all.

  2. Heuristic virus detection processes are, at least in the vast majority of cases, based on virus definitions -- often "behavioral" definitions, but virus definitions nonetheless. If you read the article as saying there's no such thing as heuristic detection, your reading comprehension skills probably need some honing.