I have heard Xampp is not safe and has a lot of security loopholes. What steps need to be taken to close the loopholes? Is it better if I use a VM instead? I new to Security Testing and want to learn using DVWA. Kindly provide some feedback...

  • "Is it better if I use a VM instead?" Definitely. It is usually best practice to do assessment work/practice on a VM that you can easily restore. It's also good practice to not have this VM exposed to the internet.
    – Henry F
    Jun 5, 2018 at 8:01

1 Answer 1


Is it safe to install Xampp to learn Security and Penetration testing using DVWA?

You can make it safe(r) by:

Configure Apache and MySQL to listen only on

  • Apache

    Edit the file C:\xampp\apache\conf\httpd.conf and change Listen 80 to Listen

  • MySQL

    Edit the file C:\xampp\mysql\bin\my.ini and make sure that the bind-address is set to

Configure the firewall to block TCP port 80

Use the Windows firewall to block incoming requests to TCP port 80.

  • What if used another port for xampp instead of port 80??? Will that help useful??
    – Rishikesh
    Jun 5, 2018 at 8:53
  • @Rishikesh Well in that case common sense should be used, right?
    – Jeroen
    Jun 5, 2018 at 9:07
  • 2
    Binding only to localhost would still leave it vulnerable to cross-site requests (CSRF). An attacker can perform a request to the vulnerable applications running on localhost from his website.
    – Sjoerd
    Jun 5, 2018 at 9:13
  • 1
    @Sjoerd While this is very true, what do you consider the likelihood of this happening?
    – Jeroen
    Jun 5, 2018 at 9:24

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