Insecure Defaults Affecting ransack package, versions <4.0.0


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept

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 Insecure Defaults vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-RANSACK-5776488
  • published14 Jul 2023
  • disclosed14 Jul 2023
  • creditLukas Euler, Positive Security

Introduced: 14 Jul 2023

CVE NOT AVAILABLE CWE-453  (opens in a new tab)

How to fix?

Upgrade ransack to version 4.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Insecure Defaults. The library poses a major security risk that can likely be exploited to extract sensitive information or fully compromise the application. An attacker is be able to perform character by character brute-force of arbitrary attributes on associated database objects.

Note:

An application is potentially vulnerable if it exposes a search/filtering function which processes an unrestricted query object, usually represented by a Ruby hash constructed via the q GET parameter.

Workaround

Users who are unable to upgrade to the fixed version can restrict which associations and attributes are respected via a whitelist.

CVSS Scores

version 3.1