Question On General Site Exploiting
Ok, I have a friend who owns a website. Not very well done. Hes has it through a Very knowing web hosting Company (honestly a shity one to my standards) anyway we were talking and I start to show him the basic changing of the url stuff, if there a way to block it? for instance: http://www.example.com/index.html then to find out whats on the pages http://www.example.com/images/. yada. So back to the point is there a way to block that type of stuff? And is there a way to test or see if it is possible to drop a list of the root folder itself. Then a way to stop it from droping a list. (Cannot release the name of his site per his request)
you cannot drop root in the same fashion.
what happens is, if you point to a directory, and there is NO index.html page, then apache gives a directory listing.
so an index.html page actually protects it pretty well.
but once again, if the location of files is critical to your security, you should probably think about redesigning your site ;)
DigitalFire wrote: you cannot drop root in the same fashion.
what happens is, if you point to a directory, and there is NO index.html page, then apache gives a directory listing.
so an index.html page actually protects it pretty well.
hmm i can't believe i wasn't aware of that lol. guess i just never thought about it or noticed it. haha guess you learn something new everyday
ok, interesting. Then how come whenever i visit
www.system.meltdown.isahomo.com
it automatically sends me to a list of directory files?
DigitalFire wrote: you cannot drop root in the same fashion.
what happens is, if you point to a directory, and there is NO index.html page, then apache gives a directory listing.
so an index.html page actually protects it pretty well.
but once again, if the location of files is critical to your security, you should probably think about redesigning your site ;)
Actually you're wrong.
assuming you're using apache, though most httpd's are compliant;
It looks through the default extensions (on my server, .py, .php, .html) looking for default name (defaults to index).
Failing this, it then performs the default action, which DEFAULTS to a dirlisting.
You can point that to a 404 if you want, or just turn DirectoryListing False in httpd.conf