Filter by signal
4 rails_admin CVEs, newest first
RailsAdmin Cross-site Scripting vulnerability in the list view ### Impact RailsAdmin list view has the XSS vulnerability, caused by improperly-escaped HTML title attribute. The issue was originally reported in https://github.com/railsadminteam/rails_admin/issues/3686. ### Patches Upgrade to [3.1.4](https://rubygems.org/gems/rails_admin/versions/3.1.4). The vulnerability itself was patched in 3.1.3 but it has a functionality issue. Initially the vulnerability was thought to exist in versions before 3.0, but it didn't. 2.x users can stay on 2.2.1. ### Workarounds 1. Copy the index view (located under the path `app/views/rails_admin/main/index.html.erb`) from the RailsAdmin version you use, and place it into your application by using the same path. 2. Open the view file by an editor, and change the way to populate the td tag: ```diff <% properties.map{ |property| property.bind(:object, object) }.each do |property| %> <% value = property.pretty_value %> - <td class="<%= [property.sticky? && 'sticky', property.css_class, property.type_css_class].select(&:present?).join(' ') %>" title="<%= value %>"> + <%= content_tag(:td, class: [property.sticky? && 'sticky', property.css_class, property.type_css_class].select(&:present?), title: strip_tags(value.to_s)) do %> <%= value %> - </td> + <% end %> <% end %> ``` **Note:** The view file created by this needs to be removed after upgrading RailsAdmin afterwards, unless this old view continue to be used. Only do this if you can't upgrade RailsAdmin now for a reason. ### References https://owasp.org/www-community/attacks/xss/ https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-strip_tags
Affected: ≥ 3.0.0.beta, < 3.1.3
- CVE-2020-361906.1 1 exploit EPSS 1.3 % RemoteRails_Admin_Project Rails Admin, Rails_Admin Rails AdminJan 14, 2021
rails_admin ruby gem XSS vulnerability RailsAdmin (aka rails_admin) before 1.4.3 and 2.x before 2.0.2 allows XSS via nested forms.
Affected: ≥ 2.0.0, < 2.0.2 · from the first version, < 1.4.3
- CVE-2016-105228.8 2 exploits RemoteRails_Admin_Project Rails Admin, Rails_Admin Rails AdminAug 8, 2018
Cross-site request forgery in rails_admin rails_admin ruby gem <v1.1.1 is vulnerable to cross-site request forgery (CSRF) attacks. Non-GET methods were not validating CSRF tokens and, as a result, an attacker could hypothetically gain access to the application administrative endpoints exposed by the gem.
Affected: ≥ 1.0.0, < 1.1.1
- CVE-2017-120986.1 1 exploit EPSS 1.3 % RemoteRails_Admin_Project Rails Admin, Rails_Admin Rails AdminMar 5, 2018
rails_admin ruby gem XSS An exploitable cross site scripting (XSS) vulnerability exists in the add filter functionality of the rails_admin rails gem version 1.2.0. A specially crafted URL can cause an XSS flaw resulting in an attacker being able to execute arbitrary javascript on the victim's browser. An attacker can phish an authenticated user to trigger this vulnerability.
Affected: from the first version, < 1.3.0
