CVE-2015-3224

NUCLEI

rubyonrails/web_console < 2.1.2 and rubygems/web-console < 2.1.3 - Improper Access Control via X-Forwarded-For Header

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 7 public exploits for CVE-2015-3224. PoCs published by Metasploit, 0xEval, 0x00-0x00, including Metasploit module exploits/multi/http/rails_web_console_v2_code_exec. A Nuclei detection template is also available.

AI-analyzed exploit summary This Metasploit module exploits CVE-2015-3224, an IP whitelist bypass vulnerability in Ruby on Rails Web Console (v2), allowing remote code execution by injecting payloads via manipulated HTTP headers and session data.

Description

request.rb in 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.

Exploits (7)

exploitdb WORKING POC VERIFIED
by Metasploit · rubyremotemultiple
https://www.exploit-db.com/exploits/41689

This Metasploit module exploits CVE-2015-3224, an IP whitelist bypass vulnerability in Ruby on Rails Web Console (v2), allowing remote code execution by injecting payloads via manipulated HTTP headers and session data.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Ruby on Rails 4.0.x, 4.1.x, and 4.2.x (with whitelisted IP)
No auth needed
Prerequisites: Vulnerable Ruby on Rails application with exposed web console · Network access to the target
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 6 stars
by 0xEval · poc
https://github.com/0xEval/cve-2015-3224

This exploit leverages an IP whitelist bypass vulnerability in Ruby on Rails Web Console (v2) to execute arbitrary commands. It probes for the console path and spawns an interactive shell by sending commands via HTTP PUT requests with crafted headers.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Ruby on Rails 4.0.x and 4.1.x with Web Console v2
No auth needed
Prerequisites: Target must have Ruby on Rails Web Console v2 enabled · Target must be vulnerable to CVE-2015-3224
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 2 stars
by 0x00-0x00 · poc
https://github.com/0x00-0x00/CVE-2015-3224

This is a modified Metasploit module for CVE-2015-3224, which exploits an IP whitelist bypass vulnerability in Ruby on Rails Web Console v2 to achieve remote code execution. The modification allows arbitrary command execution instead of just reverse/bind shells.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Ruby on Rails 4.0.x, 4.1.x, and 4.2.x (with whitelisted IP)
No auth needed
Prerequisites: Vulnerable Ruby on Rails application with exposed Web Console · Network access to the target
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by SQU4NCH · poc
https://github.com/SQU4NCH/CVE-2015-3224

This is a functional Node.js exploit for CVE-2015-3224, targeting Ruby on Rails applications with vulnerable `web-console` gem versions. It bypasses IP whitelist protection via spoofed `X-Forwarded-For` headers to achieve unauthenticated RCE.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Ruby on Rails web-console gem < 2.1.3
No auth needed
Prerequisites: Node.js · Target with vulnerable web-console gem · Access to the Rails application
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by Sic4rio · poc
https://github.com/Sic4rio/CVE-2015-3224

This repository contains a Python script that exploits CVE-2015-3224, an IP whitelist bypass vulnerability in Ruby on Rails 4.0.x and 4.1.x, allowing remote code execution via the web console by spoofing the X-Forwarded-For header.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Ruby on Rails 4.0.x, 4.1.x
No auth needed
Prerequisites: Target must have the web console enabled · Target must be running a vulnerable version of Ruby on Rails
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by n000xy · poc
https://github.com/n000xy/CVE-2015-3224-

This PoC exploits CVE-2015-3224, a command injection vulnerability in the web console of the target software. It downloads and executes a reverse shell script (pty.py) via a malicious HTTP request, establishing a connection back to the attacker.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Unknown (likely a web application with a command injection vulnerability)
No auth needed
Prerequisites: Attacker-controlled web server hosting pty.py · Network connectivity to the target · Target vulnerable to CVE-2015-3224
devstral-2 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
rubypocruby
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_web_console_v2_code_exec.rb

This Metasploit module exploits CVE-2015-3224, an IP whitelist bypass in Ruby on Rails Web Console (v2), allowing remote code execution via crafted HTTP requests with manipulated headers.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Ruby on Rails 4.0.x, 4.1.x, and 4.2.x (with whitelisted IP)
No auth needed
Prerequisites: Access to a vulnerable Rails application endpoint · Network connectivity to the target
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Nuclei Templates (1)

Ruby on Rails Web Console - Remote Code Execution
MEDIUMby pdteam

References (5)

Core 5
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/75237
Mailing List mailing-list x_refsource_mlist
http://openwall.com/lists/oss-security/2015/06/16/18
Mailing List, Third Party Advisory vendor-advisory x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160881.html

Scores

EPSS 0.8526
EPSS Percentile 99.4%

Details

CWE
CWE-284
Status published
Products (2)
rubygems/web-console 0 - 2.1.3RubyGems
rubyonrails/web_console < 2.1.2
Published Jul 26, 2015
Tracked Since Feb 18, 2026