Lucene search
K

Ruby on Rails gem version 1.2.0 rails_admin XSS Vulnerability

🗓️ 15 Jan 2018 00:00:00Reported by Zachary SanchezType 
zdt
 zdt
🔗 0day.today👁 44 Views

Rails Admin gem v1.2.0 XSS Vulnerability in Add Filter Functionalit

Related
Code
ReporterTitlePublishedViews
Family
CNVD
RubyGems 'rails_admin' Cross-Site Scripting Vulnerability
12 Jan 201800:00
cnvd
CVE
CVE-2017-12098
19 Jan 201819:00
cve
Cvelist
CVE-2017-12098
19 Jan 201819:00
cvelist
Debian CVE
CVE-2017-12098
19 Jan 201819:00
debiancve
EUVD
EUVD-2018-0183
7 Oct 202500:30
euvd
Github Security Blog
rails_admin ruby gem XSS
5 Mar 201819:37
github
NVD
CVE-2017-12098
19 Jan 201819:29
nvd
OSV
GHSA-PXR8-W3JQ-RCWJ rails_admin ruby gem XSS
5 Mar 201819:37
osv
OSV
UBUNTU-CVE-2017-12098
19 Jan 201819:29
osv
Prion
Cross site scripting
19 Jan 201819:29
prion
Rows per page
Summary

An exploitable 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.
Tested Versions

rails_admin 1.2.0
Product URLs

https://github.com/sferik/rails_admin https://rubygems.org/gems/rails_admin/versions/1.2.0
CVSSv3 Score

6.1 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CWE

CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Details

The rails_admin gem has functionality which 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 in the form of

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=

This URL can them be used to phish an authenticated user and execute arbitrary javascript on their behalf.

This vulnerability was shown to occur using Chrome, Safari, and Firefox.
Timeline

    2017-09-20 - Vendor Disclosure
    2017-09-28 - 2nd Vendor contact attempt
    2017-10-11 - 3rd Vendor contact attempt
    2017-12-05 - Final Vendor contact
    2018-01-10 - Public Release


#  0day.today [2018-04-02]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation