Kerala's Business Portal  
Home Movies Matrimonial Classifieds Jokes Photo Gallery Free Hosting Free Mail
 ProfileProfile     SearchSearch     RegisterRegister 
 Photo Gallery   Log in to check your private messagesLog in to check your private messages   Log inLog in 

apche_server

 
Post new topic   Reply to topic    BizHat.com Forum Index -> Link Exchange & Directory
Author Message
k4b5
BizHat Newbie
BizHat Newbie


Joined: 06 Jan 2007
Posts: 5

PostPosted: Sat Jan 06, 2007 7:19 am    Post subject: apche_server Reply with quote

Tác giả : deamon
Group : Vietnamese Security Group
Website : http://www.security.com.vn/
BugTraq Security.com.vn : http://security.com.vn/bug/read.php?7,148
BugTraq Securityfocus.com : http://www.securityfocus.com/archive/1/352340/2004-01-31/2004-02-06/0


#################################
How to return files in a Apache Deny All directory.
The Directives controlling host access may be bypassed even
if they have not permission to be override.

11 Jan 2004

DESCRIPTION

Apache Web Server allows manage configurations via the main
httpd.conf file, and via the other configuration files placed
inside the children web trees, may owned by the user accounts,
named .htaccess by default. The server administrator further
controls what Directives may be placed in .htaccess files by
configuring the AllowOverride Directive in the main httpd.conf
files.

If the server admin sets the Deny Directive to All (for example),
and does not allow the user accounts to modify this Directive in
their .htaccess file by setting the AllowOverride values without
the Limit type, his/her users are still able to bypass the Deny
option by using the ErrorDocument Directive.

Tested in Apache 2.0.47/RH-Linux/WinXP.


EXAMPLE

##########################################################
# In the main httpd.conf file:
#
<Directory>
AllowOverride FileInfo
Deny From All
</Directory>
##########################################################

##########################################################
# In the user's .htaccess file placed in a child directory:

ErrorDocument 403 /child/dir/fetch.php

##########################################################

/********************************************************/
<php>
/********************************************************/


In this example, assuming the web server can execute PHP script
or some scripts/server-includes. By modifying some codes you can
return other mime file types such as image/gif etc.

Event if the server does not allow any file parsed (Deny From All),
the script file fetch.php will still be executed, and it includes
again and parses any other files in a same directory, which
indecated by the query variables, to the web client.

Looking in the source code, I think the missing auth checking is in
the function ap_process_request_internal() in the file request.c.
One of the major changes in Apache 2.0 is to the internal redirect
mechanism. To prevent the code from falling out of sync again in the
current directory, the configuration comparing between two config
directories may bypass the authentication checking again. That
explains why this vulnerability (if any?) can only done if the
redirect ErrorDocument file is placed in the same request directory.


FIX

Do not skip auth checker even if the per_dir_config member value
doesn't change in the ap_process_request_internal() function.

NOTE

I post this issue in the public mailing list, because I think this
vuln is not exploitable by a remote attacker. If something were
wrong, drop a line to me.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BizHat.com Forum Index -> Link Exchange & Directory All times are GMT
Page 1 of 1
Spam ? Report to Admin

 
Username


NO SPAM AND USELESS POSTS



BizHat.com   Astrology   Advt   Chat Room   Classifieds   Computer   Downloads   Directory   Dating   Domain Tools   Education   eCards   Finance   Forums   Freelance Work   Free Hosting   Free Mail   Gallery   Games   Guest Book   Greeting Cards   Ham Radio   Health   Home Business   Hosting Tutorials   Hosting Directory   India   Jobs   Jokes   Kerala   Matrimonial   Music   Movies   News   News Letter   Recipes   Real Estate   Search   SMS   Tourist Guide   Top 100 Sites   Vote Us   Yellow Pages   Site Map   Bookmark  

Google
¤ Terms of Service ¤ Advertise with Us ¤ Privacy Policy ¤ Contact Us 
Copyright © 2003-2005 BizHat.com, Hosted by HostOnNet.com