LFD (Local File Disclosure) Exploiting 12-19-2013, 04:27 AM
#1
This thecnique is very simple but, a lot of web sites are still opened with this.
It is a vuln than let us to see DB credentials in the source code.
Follow me:
1 - Use a dork like this: "inurl:yoursite+download.asp+pdf+id" to scan your site by the vuln.
2 - Take the result and changes the result with in path file: "id=file.pdf" by this "id=../index.asp", remember, the changes will depends of the technology(ASP.net, ASP, PHP...) envolved on server.
3 - In some seconds you got the index of the ASP site, look in the code and search some like: "Includes/Connect.asp" or similars, down them all
4 - Look at the code and see the server path, database, user and password of them! Simple that!
Ps.: Sorry for my bad english
It is a vuln than let us to see DB credentials in the source code.
Follow me:
1 - Use a dork like this: "inurl:yoursite+download.asp+pdf+id" to scan your site by the vuln.
2 - Take the result and changes the result with in path file: "id=file.pdf" by this "id=../index.asp", remember, the changes will depends of the technology(ASP.net, ASP, PHP...) envolved on server.
3 - In some seconds you got the index of the ASP site, look in the code and search some like: "Includes/Connect.asp" or similars, down them all
4 - Look at the code and see the server path, database, user and password of them! Simple that!
Ps.: Sorry for my bad english