Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
DVWA-ZAP-PENTEST — Web application security assessment of DVWA using OWASP ZAP — vulnerability scanning, RCE (CVE-2012-1823) analysis, and remediation report. | Kitploit
Tools/GitHubGitHub/mehedi-hasan-sami98/dvwa-zap-pentest
Vulnerability ScannersWeb Application ExploitationWeb SecurityPenetration TestingLearning & EducationLabs & Practice
GitHubmehedi-hasan-sami98/dvwa-zap-pentest

DVWA-ZAP-PENTEST

Web application security assessment of DVWA using OWASP ZAP — vulnerability scanning, RCE (CVE-2012-1823) analysis, and remediation report.

View Repository
32 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

DVWA Vulnerability Assessment using OWASP ZAP

A hands-on web application security assessment of DVWA (Damn Vulnerable Web App), performed using OWASP ZAP (Zed Attack Proxy) 2.17.0. This project documents the full workflow: reconnaissance (spidering), automated vulnerability scanning, and analysis of the alerts raised — including a Remote Code Execution (CVE-2012-1823) finding.

⚠️ Disclaimer: This assessment was performed in an isolated lab environment against DVWA, an application intentionally built to be vulnerable for training purposes. Never scan or attack systems you do not own or do not have explicit written permission to test.


Table of Contents

  • Objective
  • Tools Used
  • Target Environment
  • Methodology
  • Findings Summary
  • Key Finding: Remote Code Execution (CVE-2012-1823)
  • Screenshots
  • Remediation Recommendations
  • Repository Structure
  • How to Reproduce

Objective

To identify and document common web application vulnerabilities in DVWA using OWASP ZAP's spidering and active scanning capabilities, and to practice reading, interpreting, and reporting on automated security scan results.

Tools Used

ToolPurpose
OWASP ZAP 2.17.0Web application vulnerability scanner (spider + active scan)
DVWAIntentionally vulnerable PHP/MySQL web app used as the target
Kali LinuxAttacker/testing platform

Target Environment

  • Target URL: http://192.168.109.115/dvwa/index.php
  • Application: DVWA v1.0.7
  • Security Level (DVWA setting): High
  • Login: admin

Methodology

  1. Reconnaissance / Spidering — ZAP's traditional spider crawled the DVWA application to discover reachable pages, forms, and endpoints before any attacks were sent.
  2. Automated (Active) Scan — ZAP's Automated Scan feature was pointed at the DVWA base URL and launched, combining the traditional spider with an active scan that sends crafted requests to test for vulnerabilities.
  3. Alert Review — Once the scan reached 100%, all raised alerts were reviewed individually in the Alerts tab, sorted by risk (High/Medium/Low/Informational), and the highest-risk findings were investigated in detail.

Findings Summary

The active scan completed with 1,157 requests sent and 72 new alerts raised, which ZAP grouped into 17 distinct alert types:

#AlertInstancesRisk
1Remote Code Execution — CVE-2012-18232🔴 High
2Source Code Disclosure — CVE-2012-18232🔴 High
3Absence of Anti-CSRF Tokens2🟠 Medium
4Content Security Policy (CSP) Header Not Set4🟠 Medium
5Directory Browsing3🟠 Medium
6HTTP Only Site1🟠 Medium
7Hidden File Found1🟠 Medium
8Missing Anti-clickjacking Header2🟠 Medium
9Cookie No HttpOnly Flag2🟡 Low
10Cookie without SameSite Attribute2🟡 Low
...(7 more informational/low alerts — see full ZAP export)⚪ Info

Full per-alert detail is in docs/findings.md.

Key Finding: Remote Code Execution (CVE-2012-1823)

The most severe issue identified was a High-risk Remote Code Execution vulnerability, tracked under CVE-2012-1823 (a well-known PHP-CGI query-string parsing flaw).

  • URL: http://192.168.109.115/dvwa/login.php?-d+allow_url_include%3d1+-d+auto_prepend_file%3dphp://input
  • Risk: High  |  Confidence: Medium
  • CWE ID: 20 (Improper Input Validation)  |  WASC ID: 20
  • Root cause: Certain PHP-CGI configurations fail to correctly handle query strings that lack an unescaped = character. This lets an attacker pass raw command-line-style flags (-d allow_url_include=1 -d auto_prepend_file=php://input) to the PHP interpreter, enabling arbitrary PHP code execution and source code disclosure.
  • Impact: An attacker can execute arbitrary code on the server or dump PHP source files that should never be visible to end users.
  • Solution: Upgrade to a patched PHP version, or if using Apache, use mod_rewrite with RewriteCond/RewriteRule directives to block malformed query strings before they reach PHP-CGI.

Screenshots

ScreenshotDescription
DVWA HomeDVWA home page after login
ZAP WelcomeOWASP ZAP 2.17.0 welcome screen
Automated Scan - emptyAutomated Scan tab before target is entered
Automated Scan - target setTarget URL set to DVWA before launching the attack
Alerts summary17 alert types discovered (grouped, by risk)
RCE detail 1RCE (CVE-2012-1823) alert — URL, risk, attack payload, evidence
RCE detail 2RCE (CVE-2012-1823) — description, other info, and solution
Active Scan progressActive scan at 100% — 1,157 requests, 72 new alerts
Spider resultsSpider results — 9 URLs found, 7 nodes added

Remediation Recommendations

  1. Patch PHP / upgrade the stack to a version not affected by CVE-2012-1823.
  2. Implement CSRF tokens on all state-changing forms.
  3. Set a Content-Security-Policy header to reduce XSS/data-injection impact.
  4. Disable directory browsing on the web server.
  5. Add anti-clickjacking headers (X-Frame-Options / frame-ancestors).
  6. Set HttpOnly and SameSite attributes on all cookies to reduce session-hijacking and CSRF risk.
  7. Remove or restrict access to hidden/unused files discovered during the crawl.

Repository Structure

root@kitploit:~
dvwa-zap-pentest/
├── README.md                  # This file — project overview & summary
├── docs/
│   └── findings.md            # Full detailed write-up of each alert
├── screenshots/                # Numbered screenshots referenced above
└── LICENSE

How to Reproduce

  1. Set up DVWA in an isolated lab (e.g. via XAMPP or Docker) — never expose it to the internet.
  2. Set DVWA's security level and log in as admin.
  3. Install OWASP ZAP and open it.
  4. Go to Quick Start → Automated Scan, enter the DVWA URL, and click Attack.
  5. Once the scan reaches 100%, review the Alerts tab for findings, and check History for the full request/response log.

This project was created for educational purposes as part of a web application security learning exercise.

Download Tool