← Back to list

File Inclusion Vulnerability Assessment

Introduction

Kevin · 2026-05-28 15:59 · 0 claps · 1.2 min read
#path-traversal #file-inclusion #cybersecurity #dvwa
Open on Medium ↗
Wiki topics: 🔒 · Cybersecurity ✊ · Equality & Identity

File Inclusion Vulnerability Assessment

Introduction

File Inclusion vulnerabilities occur when applications improperly include files based on user-controlled input. Attackers can exploit this flaw to access sensitive files or execute malicious code.

Objective

The purpose of this assessment was to identify whether DVWA allowed unauthorized file access through directory traversal techniques.

Target Information

  • Target Application: DVWA
  • Vulnerability Module: File Inclusion
  • Security Level: Low

Tools Used

  • Browser
  • Parrot OS

Payload Used

../../../../etc/passwd

Methodology

  1. Opened the File Inclusion module.
  2. Modified the page parameter using directory traversal sequences.
  3. Attempted to access sensitive system files.
  4. Reviewed the server response.

Observation

The contents of the /etc/passwd file were displayed in the browser.

Screenshot

Evidence

  • System account details became visible.
  • Directory traversal succeeded successfully.

Explanation

The application allowed unsanitized file paths to be processed directly by the server.

Impact

  • Sensitive information disclosure
  • Server reconnaissance
  • Potential remote code execution
  • System compromise

Recommendations

  • Validate file paths
  • Restrict directory access
  • Use allow-lists for permitted files
  • Disable direct inclusion of user-controlled input

Conclusion

The assessment confirmed that DVWA was vulnerable to File Inclusion attacks due to insufficient validation of file path input.


메타데이터
post_id
0d3f7c8ea08b
slug
file-inclusion-vulnerability-assessment-0d3f7c8ea08b
url
https://medium.com/@knyutho2/file-inclusion-vulnerability-assessment-0d3f7c8ea08b
canonical_url
https://medium.com/@knyutho2/file-inclusion-vulnerability-assessment-0d3f7c8ea08b
author_url
https://medium.com/@knyutho2
status
ok
fetched_at
2026-06-15 22:55:51