Does anyone know how to hack dvwa(http://www.dvwa.co.uk) via submitting a form input like ../../../../../etc/passwd to expose the /etc/passwd of a given server?

Is there a endpoint to hit for this?


  • 1
    – yeah_well
    Apr 6, 2019 at 10:58
  • Yes I saw this for in the url but not via a form field... do you know where to find that
    – JShee
    Apr 6, 2019 at 12:07
  • You wont find it in DVWA.But you can code it yourself.Simple take the filename via post request instead of GET and in the backend include that file without any validation.
    – yeah_well
    Apr 6, 2019 at 12:14
  • @VipulNair can you please provide a sample?
    – Jshee
    Apr 9, 2019 at 12:40
  • sample of what?
    – yeah_well
    Apr 9, 2019 at 12:42

1 Answer 1


    <form method="post" action="index.php">
    <p>filename<input type="text" name="filename"><p>

This is usually the vulnerable back end code for Local file inclusion.If you intercept the request and change the filename parameter you can read data from the victim server.This code can also result in remote file inclusion if allow_url_include is turned on.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .