top | item 4719646

Popular sites with Apache server-status enabled (leaking internal details)

95 points| davedd | 13 years ago |blog.sucuri.net | reply

46 comments

order
[+] jd|13 years ago|reply
To those who think it isn't a big deal: when GET requests are made public you can snoop "password reset links" and similar to to get access to somebody else's account. Even when developers use best practices GET request paths can leak sensitive information.
[+] peterwwillis|13 years ago|reply
Attacking a system is not just guessing passwords. You need to gather as much information as you can about your target and devise an attack using what you know.

Maybe it's a DNS entry or network addresses that would have been secret if not for it appearing in server-status (there's a reason AXFR from random internet clients is a bad idea). Maybe it's a client IP that accesses an admin panel, and attacking that client machine will give you the keys to the kingdom. Maybe it's a PID that's guessable and gives an insight to what a new temporary file or directory will be called, exposing a race condition. Maybe it's the very precise time information to be used for making timing attacks easier. Maybe it's the number of workers configured that lets them tune an attack to fill up resources. Maybe it's the system utilization to help them figure out if they should attack CPU, memory or i/o. Perhaps it's the server version and OS telling them what software is running and thus what exploits they should pick first.

Or maybe it's the fact that the requests can be linked to client IPs to build a profile on specific users, violating their privacy.

Whatever the reason, it's stupid to keep this information public.

[+] perezbox|13 years ago|reply
Hi JD

You're right on the GET requests.. :) ..

Any attacker, pentesters, worth their salt would be able to garner some good info from this.

See reference to vulnerable soft in the post published.

Cheers.

[+] nthitz|13 years ago|reply
Site is down for me, but I thought we agreed last time this was on HN it wasn't really that big of a deal..

Previous discussion: http://news.ycombinator.com/item?id=4661625

[+] perezbox|13 years ago|reply
Thanks for the update withe link.

Yeah, not sure I'd agree with it not being a big deal. Especially with the type of recon you can do on this information as an attacker.

TP

[+] testing12341234|13 years ago|reply
I believe the consensus was that it was not a big deal for www.php.net to have the server status page up. The original link for that news item was http://php.net/server-status. However, not all sites are like php.net which is used mainly for documentation (it would appear). That said, a status page leaking IPs or sessions (PHPSESSIONID) for a private forum, government agency, etc, could be a different story.

Edited: Typo

[+] yen223|13 years ago|reply
Gotta ask, is there any benefit to having the server status open to public?
[+] perezbox|13 years ago|reply
When was it last on HN? Don't remember seeing it.
[+] marcuspovey|13 years ago|reply
You've got to watch this... Apache typically limits this to localhost, but if you use squid as a reverse proxy (quite common) then you can see this easily being exposed since all requests will appear to come from the local machine.
[+] ludwigvan|13 years ago|reply
Similarly, if you are using nginx in front of apache, watch out.
[+] chokma|13 years ago|reply
And Ubuntu server 12.04 seems to enable this by default without access limit -

    sudo a2dismod status
helps to disable it.
[+] pygorex|13 years ago|reply
Even a cursory scan of the http://urlfind.org/?server-status list reveals scads of porn sites exposing their visitor's IP addresses:

(Note these links go to Apache server-status pages at the time of linking. This may change if the server admins wise up - to be on the safe side consider them NSFW):

  http://black-tgirls.com/server-status
  http://badexgfs.com/server-status
  http://tubepornx.com/server-status
  http://lesbianvalley.net/server-status
  ..... and many more .....
Personally, I don't care what consenting adults do with their genitals. But I think it's safe to assume that the visitors to these sites expect a certain level of privacy that's not being met.
[+] wzm|13 years ago|reply
This can also lead to DOS issues, as I understand it, the Apache server-status pages are very computationally intensive to produce, and it requires stopping and polling every child.

Something like

<Location /server-status>

    SetHandler server-status

    Order Deny,Allow

    Deny from all

    Allow from 10.0.0.0/24
</Location>

(where 10.0.0.0 is your local network range) will prevent external requests. This is mentioned in the linked through Apache documentation.

[+] taejo|13 years ago|reply
According to other commenters, this is only enabled for localhost by default, but if one is using a reverse proxy on localhost, all requests will appear to come from there. So be careful with this approach.
[+] MasterScrat|13 years ago|reply
Aren't the exposed client IPs at http://php.net/server-status/ a pretty big deal??
[+] notatoad|13 years ago|reply
Why is that a big deal? Is exposing the public IPs of some random people really an issue?
[+] Zenst|13 years ago|reply
Back around 13 years ago I believe the default to have it enabled was changed. That said alot of sites carrier on leaking that way, ft.com was one - even after it was pointed out to them. Eventualy they changed things when I mentioned it to IBM rep who also dealt with FT's account, nice rep.

I can see how it can end up being enabled and left open, but it is also that level of administration that opens you up to other more concerning issues, this is a concerning issue for many reasons. If you had a firewall that blocked off by default not exprecitly allowed(with good wildcarding when needed on sub directory's) remote access to everything not the main public site then that would of caught it. If you had a access control , that again would of controled it.

Only way some companies will learn is to be hacked or being done under the laws for leaking private data. So if you go onto a sight like that, tell there admin they are in breach of the applicable data protection/privacy laws you have that can cover such things. Then if they don't fix it, cash in on there stupidity and sue them, you get paid for your time and they pay for there crime and learn the only way some do learn. Don't hack them, no need, just use the law. Or get a patent on bad administration and use that to claim back royalties. Crazy approach, but if you have the money to cater for such whims, let us all know how it pans out, profitable and educational for the patent system. Who would contest and claim prior art on stupidity of administrating computers, you would get your money worth in laughs if nothing else.

Short version, this is a old issue and you are also breaking data protection/privacy laws - be warned. If you see it, warn them and feel free to educate them via the legal cashmachine.

[+] JoblessWonder|13 years ago|reply
I found another way to search for a similar status page when trolling for network traffic.

Some sample Google queries for the curious:

     intitle:"apache status" inurl:server-status
     inurl:web-console/ "jboss Management Console"
Edited to add more:

     inurl:"/status?full=true"
[+] davedd|13 years ago|reply
Another issue we identified is that you can find those "hidden" admin panel or URLs that shouldn't be known to the outside, by just refreshing the page a few times and checking all requests.

It is not a best practice, but some companies do and it makes easier for those to be found.

thanks,

[+] lazyjones|13 years ago|reply
ouch, sh*t happens when you have it on for 10.0.0.0/24 or so and then set up Varnish in front of it...
[+] code_duck|13 years ago|reply
Sweet, I'm interested in checking out all their configs!
[+] perezbox|13 years ago|reply
This is a classic case of bad security posture by larger enterprises.
[+] brh_jr|13 years ago|reply
Someone from tweetdeek frequents this site, because it is fixed there. I am just interested in how busy this sites are. From my quick views Ford and Staples were the busiest.
[+] tankbot|13 years ago|reply
Looks like Disney fixed theirs.

Can't believe there are admins at this level that miss this.

[+] jemfinch|13 years ago|reply
Why do you think Disney has access to high quality admins? Do you know high quality sysadmins who want to work for Disney, or companies like it?

Just because a company is a big name doesn't mean it attracts big talent. Disney is still fishing from the same ocean where all the best engineers went to sexier places.

[+] alexfoobar|13 years ago|reply
latimes has 10.146.78.21 GET:ing /server-status?auto... their nagios IP maybe?