Cross-site Scripting (XSS) Affecting rails_admin package, versions <1.3.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (43rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-RAILSADMIN-22006
  • published23 Jan 2018
  • disclosed10 Jan 2018
  • creditZachary Sanchez

Introduced: 10 Jan 2018

CVE-2017-12098  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade rails_admin to version 1.3.0 or higher.

Overview

rails_admin is a Rails engine that provides an easy-to-use interface for managing your data.

Affected versions of this project are vulnerable to Cross-site Scripting (XSS) attacks via the add filter functionality. This functionality allows a user to create custom filters to find values within the admin interface. When a new filter is created using the UI, it redirects to a new url containing that filtering information:

localhost:3000/admin/model?model_name=model&utf8=%E2%9C%93&f%5B password%5D%5B91178%5D%5Bv%5D=+%22%3E%3Cimg+src%3D%22%22+onerror%3D%22 alert(1)%22%3E&query=

An attacker can then phish an authenticated user to trigger this vulnerability.

Details

<>

CVSS Scores

version 3.1