Apache guns down killer server bug

By Darren Pauli on Oct 10, 2011 7:59 AM
Filed under Security

Absent forward slash leaves a gaping hole.

The Apache Software Foundation has squashed a reverse proxy flaw affecting its servers in which little more than a missing forward slash had exposed untold numbers of network devices and information to hackers.

Reverse proxies route external HTTP and HTTPS web requests to an internal web server. It is used in load balancing and to make multiple web servers at different paths appear as a single web interface. 

Buggy Apache HTTP Servers in reverse proxy mode that omitted the forward slash could allow attackers to change HTTP requests. From there they could access sensitive resources including administration access for routers, web servers, firewalls and databases.

RewriteRule ^(.*) http://internalserver:80(add forward slash here)$1 [P]

Overnight the Apache Software Foundation patched the flaw discovered last month by UK based Context Information Security during a penetration test.

But Context Information Security research and development manager Michael Jordon said the flaw could affect other web servers.

“This latest vulnerability present is a potential back door to sensitive internal or DMZ systems but is totally avoidable if the reverse proxies are properly configured.

“[We have] not investigated other web servers and proxies but it is reasonable to assume that the problem is more widespread,” he said.

Credit: Context Information Security

"When using the RewriteRule or ProxyPassMatch directives to configure a reverse proxy using a pattern match, it is possible to inadvertently expose internal servers to remote users who send carefully crafted requests,” Apache’s Joe Orton said.

“The server did not validate that the input to the pattern match was a valid path string, so a pattern could expand to an unintended target URL.”

The fix forced Apache software to validate the request URL.

Context Information Security said the vulnerability could be mitigated by changing reverse proxy configurations to ensure that rewrite rules cannot be abused. It released a vulnerability tool to identify the bug.

Adding the forward slash ensures Apache does not interpret the domain and port parts of the request as a username and password, Jordan said.

 
Follow us on Facebook and Twitter
 

Copyright © SC Magazine, Australia

Apache guns down killer server bug
 
 
 
 
 
Top Stories
Major network outage at Anittel
Business customers disconnected most of yesterday.
 
Huawei knocks local revenue out of the park
Still bathing in poor light security-wise.
 
Sophos focus on channel education
Karen Delaney is the new channel director.
 
Sign up to receive CRN email bulletins
   FOLLOW US...
Latest Comments
Polls
Is your business doing as well now as it was at this time last year?


   |   View results
Yes
  33%
 
No
  52%
 
The same
  15%
TOTAL VOTES: 397

Vote now
CRN Magazine

Issue: 315 | May 2013

CRN Magazine looks in-depth at the emerging issues and developments for the channel, and provides insight, analysis and strategic information to help resellers better run their businesses.