Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

File Inclusion

I was using sqlmap on a bunch of different sites and one i found said it had a File Inclusion vulnerability.Can someone help me on What can I do from here?
First you need to understand what File Inclusion is. In short term: You should be able to include local files from the webapp (or url bar) and the content would be displayed. From here, you can do further enumeration of the system.

In shorter term: Google "Local file inclusion" -> Check OWASP top 10 and they usually have PoCs for you to try (Basic ones)
(Feb 21, 2019 07:38 AM)valetta Wrote:  First you need to understand what File Inclusion is. In short term: You should be able to include local files from the webapp (or url bar) and the content would be displayed. From here, you can do further enumeration of the system.

In shorter term: Google "Local file inclusion" -> Check OWASP top 10 and they usually have PoCs for you to try (Basic ones)

Thanks
Read database connection files and dump whole website
(Feb 21, 2019 07:48 AM)Daxer Wrote:  Read database connection files and dump whole website

I don't how do that, can you tell how?
(Feb 21, 2019 07:58 AM)Pizza_Rollz Wrote:  I don't how do that, can you tell how?

Read a file that you know connects to the database. there will usually be database username and password or file that includes the config. Then read the config through the vulnerability
Practice with OWASP's vulnerable web app project; it has some great examples on how these vulnerabilities work and how to utilize them. Just be aware that the less you know, the more dangerous it is to be messing with production systems.
You can try and see if it's vulnerable to directory traversal.

So with that, you're able to read sensitive files and directories that might be of use to you. /etc/passwd and/or where to upload a file etc. System version, what the website is running on, on and on.

Once you're authenticated you'll probably be able to then include a shell if you can find a place to upload it so it'll parse your shell allowing you to gain an initial foothold into the environment.
You seem to have pretty low knowledge to be playing around on live targets like that. You should set up an virtual test environment to attack instead, it's better for you in the long run since you might get arrested if you don't know what you're doing. Just a kind advice.
It's good that you're practicing but it's better to be safe than sorry :)


Possibly Related Threads...
Thread / Author Replies Views Last Post
by CrustymonkeyJan 21, 2019 09:38 AM 7 1,860 Jan 21, 2019 09:38 AM
Last Post: Nomad.Null
by KiraLMay 15, 2017 10:39 AM 5 370 May 15, 2017 10:39 AM
Last Post: Rel1k