It allows us to navigate the folder and access files that may contain sensitive information or vulnerable code.
I've found a public IP address related to vitbhopal.online domain which does not restrict access to resources such as source code, student data, hostel data, etc.
db.sql contains personal data related to students, faculties and hostel staffs.
intranet.tar.gz contains entire source code for vitbhopal.online portal.
And other files may contain more information regarding the university itself. Also, It is highly likely that there are more web-servers related to domain names under VIT-B out in the open with this issue.
To Reproduce
You can use censys.io or any other preferred tool to search for hosts under domain names.
Expected behavior
You should not be able to see the directory listing.
Screenshots
Solution
It is best practice to disable directory indexing on web servers so a potential attacker cannot gain direct access to any files or folders other than those necessary for the website to function properly.
CWE-548: Exposure of Information Through Directory Listing
https://cwe.mitre.org/data/definitions/548.html
Directory Indexing
It allows us to navigate the folder and access files that may contain sensitive information or vulnerable code.
I've found a public IP address related to vitbhopal.online domain which does not restrict access to resources such as source code, student data, hostel data, etc.
db.sql
contains personal data related to students, faculties and hostel staffs.intranet.tar.gz
contains entire source code forvitbhopal.online
portal.And other files may contain more information regarding the university itself. Also, It is highly likely that there are more
web-servers
related to domain names under VIT-B out in the open with this issue.To Reproduce
You can use censys.io or any other preferred tool to search for
hosts
under domain names.Expected behavior
You should not be able to see the directory listing.
Screenshots
Solution
It is best practice to disable directory indexing on web servers so a potential attacker cannot gain direct access to any files or folders other than those necessary for the website to function properly.