SQL Injection Affecting administrate package, versions <0.13.0
Snyk CVSS
Threat Intelligence
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 ID SNYK-RUBY-ADMINISTRATE-560317
- published 15 Mar 2020
- disclosed 13 Mar 2020
- credit Unknown
Introduced: 13 Mar 2020
CVE-2020-5257 Open this link in a new tabHow to fix?
Upgrade administrate
to version 0.13.0 or higher.
Overview
administrate is a gem that is inspired by projects like Rails Admin and ActiveAdmin, but aims to provide a better user experience for site admins, and to be easier for developers to customize.
Affected versions of this package are vulnerable to SQL Injection. When sorting by attributes on a dashboard, the direction parameter was not validated before being interpolated into the SQL query.
This could present a SQL injection if the attacker were able to modify the direction
parameter and bypass ActiveRecord SQL protections.
Whilst this does have a high-impact, to exploit this you need access to the Administrate dashboards, which we would expect to be behind authentication.