.. / CVE-2015-3224

Exploit for Ruby on Rails Web Console - Remote Code Execution (CVE-2015-3224)

Description:

Ruby on Rails Web Console before 2.1.3, as used with Ruby on Rails 3.x and 4.x, does not properly restrict the use of X-Forwarded-For headers in determining a client’s IP address, which allows remote attackers to bypass the whitelisted_ips protection mechanism via a crafted request to request.rb.

Nuclei Template

View the template here CVE-2015-3224.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2015/CVE-2015-3224.yaml
Copy

References:

https://nvd.nist.gov/vuln/detail/CVE-2015-3224
https://hackerone.com/reports/44513
https://www.metahackers.pro/rails-web-console-v2-whitelist-bypass-code-exec/
http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160881.html
https://www.jomar.fr/posts/2022/basic_recon_to_rce_ii/