Re: Cgisecurity.com Advisory #6: thttpd and mini_http Permission bypass vuln

From: Klaxon (klaxonat_private)
Date: Tue Nov 13 2001 - 18:36:23 PST

  • Next message: zeno: "Re: Cgisecurity.com Advisory #6: thttpd and mini_http Permission bypass vuln"

    On 13.11.2001 16:25 zeno wrote:
    
    >  Scripts Effected: Thttpd Secure Webserver, and Mini_httpd Webserver
    
    >  If htaccess is used to password protect a directory, it is possible an
    >  attacker can access data behind the password protected area by knowing
    >  the name of the file he wants to view without a valid login. This also
    >  works on htpasswd files in general, which are protected by the webserver
    >  itself so that it cannot be readable by the web. A request like the one
    >  below will gladly feed the contents of a .htpasswd file.
    
      Couldn't reproduce the described behavior running thttpd 2.20b on freebsd
    and linux (with and without chroot)
    
      Requesting any file before authenticating:
    
    "Authorization required for the URL '/bar/foo.txt/'."
    "Authorization required for the URL '/bar/.htpasswd/'."
    "The requested URL '/bar/duh/' was not found on this server."
         Requesting .htpasswd after basic authentication:
    
    "The requested URL '/bar/.htpasswd/' is an authorization file, retrieving it is
    
      Requesting unreadable file (mode 600) before authentication:
    
    "The requested URL '/bar/foo.txt/' resolves to a file that is not world-readabl
    
    --
    EOF
    



    This archive was generated by hypermail 2b30 : Wed Nov 14 2001 - 14:30:24 PST