Exploiting CVE-2016-0752
---
This app serves as a vulnerable Proof of Concept for exploiting CVE-2016-0752. For more information refer to this [blog post](https://nvisium.com/blog/2016/01/26/rails-dynamic-render-to-rce-cve-2016-0752/), which explains the vulnerability, the steps required to exploit, the fix, and a link to a metasploit module.
Getting Started
---
echo "" > log/development.log # Clear out the log file
rvm use 2.2.3
bundle
rails s
Vulnerable URL: http://localhost/users/dashboard
[4.0K] /data/pocs/cd627987ef18476195e58f83c252f17aacde417e
├── [4.0K] app
│ ├── [4.0K] assets
│ │ ├── [4.0K] images
│ │ ├── [4.0K] javascripts
│ │ │ ├── [ 664] application.js
│ │ │ └── [ 211] welcome.js.coffee
│ │ └── [4.0K] stylesheets
│ │ ├── [ 546] application.css
│ │ └── [ 178] welcome.css.scss
│ ├── [4.0K] controllers
│ │ ├── [ 204] application_controller.rb
│ │ ├── [4.0K] concerns
│ │ ├── [ 84] user_controller.rb
│ │ └── [ 70] welcome_controller.rb
│ ├── [4.0K] helpers
│ │ ├── [ 29] application_helper.rb
│ │ └── [ 25] welcome_helper.rb
│ ├── [4.0K] mailers
│ ├── [4.0K] models
│ │ └── [4.0K] concerns
│ └── [4.0K] views
│ ├── [4.0K] admin
│ │ ├── [ 5] _admin.html.erb
│ │ └── [ 23] dashboard.html.erb
│ ├── [4.0K] layouts
│ │ └── [ 298] application.html.erb
│ ├── [4.0K] user
│ │ ├── [ 18] dashboard.html.erb
│ │ ├── [ 12] public.html.erb
│ │ └── [ 16] show.html.erb
│ └── [4.0K] welcome
│ └── [ 244] index.html.erb
├── [4.0K] bin
│ ├── [ 129] bundle
│ ├── [ 146] rails
│ └── [ 90] rake
├── [4.0K] config
│ ├── [ 979] application.rb
│ ├── [ 170] boot.rb
│ ├── [ 576] database.yml
│ ├── [ 154] environment.rb
│ ├── [4.0K] environments
│ │ ├── [1.1K] development.rb
│ │ ├── [3.2K] production.rb
│ │ └── [1.5K] test.rb
│ ├── [4.0K] initializers
│ │ ├── [ 404] backtrace_silencers.rb
│ │ ├── [ 194] filter_parameter_logging.rb
│ │ ├── [ 647] inflections.rb
│ │ ├── [ 205] mime_types.rb
│ │ ├── [ 662] secret_token.rb
│ │ ├── [ 145] session_store.rb
│ │ └── [ 517] wrap_parameters.rb
│ ├── [4.0K] locales
│ │ └── [ 634] en.yml
│ └── [ 121] routes.rb
├── [ 154] config.ru
├── [4.0K] db
│ └── [ 343] seeds.rb
├── [1.1K] Gemfile
├── [2.7K] Gemfile.lock
├── [4.0K] lib
│ ├── [4.0K] assets
│ └── [4.0K] tasks
├── [4.0K] log
├── [4.0K] public
│ ├── [1.3K] 404.html
│ ├── [1.3K] 422.html
│ ├── [1.2K] 500.html
│ ├── [ 0] favicon.ico
│ └── [ 202] robots.txt
├── [ 253] Rakefile
├── [ 518] README.md
├── [4.0K] test
│ ├── [4.0K] controllers
│ │ └── [ 164] welcome_controller_test.rb
│ ├── [4.0K] fixtures
│ ├── [4.0K] helpers
│ │ └── [ 74] welcome_helper_test.rb
│ ├── [4.0K] integration
│ ├── [4.0K] mailers
│ ├── [4.0K] models
│ └── [ 492] test_helper.rb
└── [4.0K] vendor
└── [4.0K] assets
├── [4.0K] javascripts
└── [4.0K] stylesheets
38 directories, 49 files