HUB
Sign inSign up
dvwa logo

polyverse/dvwa

By polyverse

•Updated over 8 years ago

Damn Vulnerable Web App

Image
0

769

polyverse/dvwa repository overview

⁠Polyscripted DVWA

Polyscripted DVWA is a damn vulnerable web application that has been polyscripted. Though the site behaves in the same way, the php beneath it is unique and has been scrambled.

To set up the site:

  • docker run -p 80:80 polyverse/dvwa
  • The username is admin and the password is password
  • Click the "create database" button
  • Login again with the above credentials to access the main site
  • Go to the tab DVWA Security tab and set the security level to low

To demostrate an attack vector that php stops:

  • Navigate to the file upload tab on the side bar
  • Upload any php document
  • Navigate to the path of the uploaded php, i.e. /hackable/uploads/payload.php
  • There is a simple php script hellopayload.php which will run a simple php hello world.
  • There is another sample attack that has the potential to open a shell script ont the running server: php-reverse-shell.php
  • Further details on the reverse shell script: https://pentestlab.blog/tag/dvwa-file-upload/⁠

NOTE: due to how we set up the server within the polyscripted version, some modules have not been added. Some errors may come up, but will not affect the demo, and will be updated in the future.

Without polyscripting this php document would have been executed.

This could lead to multiple attack vectors, and an opportunity for a malicious actor to add a backdoor into the server. However, on the polyscripted site, this php file will result in a syntax error.

Below you will find the description for the original OWASPs Damn Vulnerable Web Application where you can try out the dvwa without polyscripting.

To run non-polyscripted dvwa:

  • docker run -p 8080:80 citizenstig/dvwa
  • follow same process as above or read below description

⁠Damn Vulnerable Web Application Docker container

Docker Pulls License

Damn Vulnerable Web Application (DVWA) is a PHP/MySQL web application that is damn vulnerable. Its main goal is to be an aid for security professionals to test their skills and tools in a legal environment, help web developers better understand the processes of securing web applications and to aid both students & teachers to learn about web application security in a controlled class room environment.

The aim of DVWA is to practice some of the most common web vulnerability, with various difficultly levels, with a simple straightforward interface. Please note, there are both documented and undocumented vulnerability with this software. This is intentional. You are encouraged to try and discover as many issues as possible.

WARNING This image is vulnerable to several kinds of attacks, please don't deploy it to any public servers.

⁠Run this image

To run this image you need docker⁠ installed. Just run the command:

docker run --rm -it -p 80:80 vulnerables/web-dvwa

And wait until it download the image and start it, after that you can see the image running in your local machine:

setup

Just click on the Create / Reset database button and it will generate any aditional configuration needed.

⁠Login with default credentials

To login you can use the following credentials:

  • Username: admin
  • Password: password

⁠Set the dificulty level

The default dificulty level is the impossible level, you can change it in DVWA Security item in the left menu.

dificulty

⁠Hack and have fun !

If you are playing it in low dificulty, just to have a taste of how exploit a flaw in this app, go to SQL Injection in the left menu. In the id field, add this query:

%' and 1=0 union select null, concat(user,':',password) from users #

sqli

There are several other ways and other vulnerabilities do exploit, go ahead, have fun !

⁠About DVWA

You can visit DVWA official website⁠ and official github repository⁠ if you want more information.

⁠Disclaimer

This or previous program is for Educational purpose ONLY. Do not use it without permission. The usual disclaimer applies, especially the fact that me (opsxcq) is not liable for any damages caused by direct or indirect use of the information or functionality provided by these programs. The author or any Internet provider bears NO responsibility for content or misuse of these programs or any derivatives thereof. By using these programs you accept the fact that any damage (dataloss, system crash, system compromise, etc.) caused by the use of these programs is not opsxcq's responsibility.

Tag summary

Content type

Image

Digest

Size

900.5 MB

Last updated

over 8 years ago

docker pull polyverse/dvwa