digininja/DVWA

Image not uploading

Souparno10 opened this issue · 6 comments

Image is not uploading in the Upload section.

  • Docker image of Metasploitable.
  • Kali Linux on Azure
  • No error.
  • Tried changing permissions to 755.

Access Log-
172.17.0.1 - - [29/Jun/2023:03:55:35 -0400] "GET /dav/ HTTP/1.1" 200 691 "http://172.17.0.2/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
172.17.0.1 - - [29/Jun/2023:03:55:35 -0400] "GET /icons/back.gif HTTP/1.1" 200 216 "http://172.17.0.2/dav/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0$
172.17.0.1 - - [29/Jun/2023:03:55:35 -0400] "GET /icons/blank.gif HTTP/1.1" 200 148 "http://172.17.0.2/dav/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.$
172.17.0.1 - - [29/Jun/2023:03:55:37 -0400] "GET /dvwa/ HTTP/1.1" 302 - "http://172.17.0.2/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
172.17.0.1 - - [29/Jun/2023:03:55:37 -0400] "GET /dvwa/login.php HTTP/1.1" 200 1289 "http://172.17.0.2/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Sa$
172.17.0.1 - - [29/Jun/2023:03:55:41 -0400] "POST /dvwa/login.php HTTP/1.1" 302 - "http://172.17.0.2/dvwa/login.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/$
172.17.0.1 - - [29/Jun/2023:03:55:41 -0400] "GET /dvwa/index.php HTTP/1.1" 200 4585 "http://172.17.0.2/dvwa/login.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom$
172.17.0.1 - - [29/Jun/2023:03:55:43 -0400] "GET /dvwa/vulnerabilities/upload/ HTTP/1.1" 200 4519 "http://172.17.0.2/dvwa/index.php" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, lik$
172.17.0.1 - - [29/Jun/2023:03:55:49 -0400] "POST /dvwa/vulnerabilities/upload/ HTTP/1.1" 200 4558 "http://172.17.0.2/dvwa/vulnerabilities/upload/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537$

Error Log-
[Sat Jan 27 21:33:24 2018] [notice] Apache/2.2.8 (Ubuntu) DAV/2 configured -- resuming normal operations
[Sat Jan 27 21:34:05 2018] [notice] caught SIGTERM, shutting down
[Sat Jan 27 21:55:06 2018] [notice] Apache/2.2.8 (Ubuntu) DAV/2 configured -- resuming normal operations
[Sat Jan 27 22:54:03 2018] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Jan 27 22:54:03 2018] [notice] Apache/2.2.8 (Ubuntu) DAV/2 configured -- resuming normal operations
[Sat Jan 27 22:59:08 2018] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sat Jan 27 22:59:08 2018] [notice] Apache/2.2.8 (Ubuntu) DAV/2 configured -- resuming normal operations
[Sun Jan 28 01:14:36 2018] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jan 28 01:14:36 2018] [notice] Apache/2.2.8 (Ubuntu) DAV/2 configured -- resuming normal operations
[Sun Jan 28 02:08:01 2018] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jan 28 02:08:01 2018] [notice] Apache/2.2.8 (Ubuntu) DAV/2 configured -- resuming normal operations
[Thu Jun 29 03:55:25 2023] [warn] pid file /var/run/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Jun 29 03:55:25 2023] [notice] Apache/2.2.8 (Ubuntu) DAV/2 configured -- resuming normal operations
[Thu Jun 29 03:55:33 2023] [error] [client 172.17.0.1] File does not exist: /var/www/favicon.ico, referer: http://172.17.0.2/

Error is coming after trying to upload the image
image

Show the permissions of the uploads directory and get a screenshot of the setup page.

I'm not much pro in computers. Here are all the screenshots using ls -l
image
image
image

I don't know what version you are running, but it isn't the latest so it isn't supported on here. Please follow the readme to install the latest version and try again on that.