Apache Flaw Allows Internal Network Access
angry tapir writes "A yet-to-be-patched flaw discovered in the Apache HTTP server allows attackers to access protected resources on the internal network if some rewrite rules are not defined properly. The vulnerability affects Apache installations that operate in reverse proxy mode, a type of configuration used for load balancing, caching and other operations that involve the distribution of resources over multiple servers."
it allowed me to get frist post
Improper regex usage causes intended consequences, news at 11.
Why would anyone use Apache as a reverse proxy anyway?
I mean, there's nginx, and it runs circles around Apache as far as I know.
Apache is garbage! Upgrade to IIS!
Pretty stupid thing to say. Garbage in should never mean "protected resources out".
If you set the root password to 'password' and allow root login via ssh, attackers could compromise your system.
SQL programmer goes to a bar. Walks up to two tables and says 'Excuse me, may I join you?'.
This is a fairly minor vulnerability at best, in order for it to matter to you at all:
1, you have to be using reverse proxy mode
2, you have to have misconfigured your rewrite rules
3, you have to actually have some internal resources that are private
The webservers I run, aside from not using Apache in reverse proxy mode...
Some of them are in isolated dmz networks, so the only data you could get at is part of the public website anyway...
The others are standalone webservers connected direct to the internet, a reverse proxy wouldn't get you anything you couldn't get to directly.
What percentage of apache users will actually fulfil all the criteria for this issue to even matter to them at all?
http://spamdecoy.net - free throwaway anonymous email - avoid spam!
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-3368
Let me get this straight... IF you run Apache as a reverse proxy AND you misconfigure your mod_rewrite rules, then people can unintentionally access internal resources? I'm SHOCKED! SHOCKED, I tell you!
That being said, I did RTFM and it's kind of a cute attack. It probably should be patched to protect people from shooting themselves in the foot, but I'm not sure I'd actually call it a vulnerability...
Garbage out. What else is new?
GI/GO is bullshit, you should never output garbage no matter how fucked up the input is. If you can't process it normally, you kick out an error condition of some sort you don't just throw up your hands and say "Oh well, the user entered the wrong password so we'll just have to give him access to everything".
How can an automated system recognize whether an input is "not what the user meant to type"? As long as an input is syntactically correct, it's not up to the system ... granted, the double colon might not fall under the "syntactically correct" inputs, though it would have to be checked whether it may indeed be allowed or not ...
Pretty stupid thing to say. If the person who inputs the garbage is the admin (which is the case here, since only an admin can create rewrite rules) then it's not surprising that security might be compromised. There's no way you can make software safe from incompetent people with admin privileges.
I do not agree.
Software should prevent people, including even the most experienced admins, from making such mistakes. The fact that it's possible to make such a mistake is a flaw in the software.
assbackwards is a variable.
Having to work for a living is the root of all evil.
Did Apache Flaw finally get promoted out of incubation?
Sierra Tango Foxtrot Uniform
I do not agree.
Software should prevent people, including even the most experienced admins, from making such mistakes. The fact that it's possible to make such a mistake is a flaw in the software.
Beware, you're one step away from advocating iOS here. At least on iOS, it's harder for users to break things by typing nonsense in the configuration section.
Write boring code, not shiny code!
GI/GO is bullshit, you should never output garbage no matter how fucked up the input is
*whoooosh*
No, the computer has no way of reading your mind to know that the garbage isn't the perfectly processed output expected from the given input. The computer doesn't understand intent or context, and thankfully it just does what it's told instead of deciding to give you some stupid error, "The output wouldn't have looked pretty to computers. Error."
Before tossing out grampa's words of wisdom, at least try to understand them. And if you can't, the get off my lawn!!!
What if the admin wants to do this intentionally to make internal resources available? Do you propose to limit the abilities of the regex in question to only make certain things possible? That doesn't seem like an improvement.
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
Software should prevent people, including even the most experienced admins, from making such mistakes. The fact that it's possible to make such a mistake is a flaw in the software.
Thin ice here... The unix world seems to think, and usually it is the case, that by preventing the user from doing stupid things, you also prevent him from doing clever things. Yes there are exceptions, but it is important on which side you default.
FCKGW 09F9 42
Like korgitser mentions in this comment, exceptions can be made, but by default it shouldn't be possible. I'm not saying it should be absolutely impossible to do this, but add another layer of protection which prevents admins from accidentally doing something like this. If an admin intentionally wants to do this and sets a specific configuration flag which allows him to do so, then that's a different story.
Linux - Good Apache HTTP - Not so good MySQL - Currently doing no evil PHP - For the love of god, why?