Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
You absolutely do not check the data that came from the user. You probably do not have an arbitrary list of possible pages, you can do scandir and check if the requested page exists.
Relative paths are not checked at all, that is, technically, you can request the file "pages/../../../../upload/word.php', and you can put the file in the upload folder in many ways (and not all of them from admins).
The vulnerability is that the page you include may contain malicious code.
Through this, you can still delve into the files, at least find out which ones exist in the same directory.
And you can connect something interesting.
The most normal option is to check the allowed values on the white list, and not connect anything.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question