safety wrote:That way if an index page is left off, the directory can't be viewed. For example, if an artist has a site and leaves the index page off of his gallery directory, all photos and other directories, if they don't have index pages, are visible. Some sample photos will undoubtably be visible on the site, but the artist may have other photos for paying customers.
mm_freak, don't you think this could possibly be a security risk?
No, this is a failure in configuration. If you really need to hide directory listings for your server to be secure, then you should probably reconsider your security system. The administrator should setup proper authentication schemes rather than hiding files by just not listing them. If an attacker can't access content he shouldn't be able to access, even though it's viewed in the directory listing, then you can call it a secure server.
Disabling directory listings is not a solution, but rather a workaround. Hiding the contents of a letter by denying its existence is no gain in security. Hiding the contents of a letter by authentication is the better. It has the advantage of you knowing that nobody could access it, even if he tried to.
It's like hiding a letter by putting it under your rug. The police is going to look for what is under your rug second (after checking your trashcan). The safe is a better solution.



