Описание
This Rails gem adds two methods to the ActiveRecord::Base class that allow you to update many records on a single database hit, using a case sql statement for it. Before version 0.1.3 update_by_case gem used custom sql strings, and it was not sanitized, making it vulnerable to sql injection. Upgrade to version >= 0.1.3 that uses Arel instead to construct the resulting sql statement, with sanitized sql.
Ссылки
- Release NotesThird Party Advisory
- Third Party Advisory
- Release NotesThird Party Advisory
- Third Party Advisory
Уязвимые конфигурации
Конфигурация 1Версия до 0.1.3 (исключая)
cpe:2.3:a:update_by_case_project:update_by_case:*:*:*:*:*:ruby:*:*
EPSS
Процентиль: 46%
0.0023
Низкий
5.8 Medium
CVSS3
9.8 Critical
CVSS3
Дефекты
CWE-89
Связанные уязвимости
CVSS3: 5.8
github
больше 3 лет назад
update_by_case before 0.1.3 can be vulnerable to sql injection
EPSS
Процентиль: 46%
0.0023
Низкий
5.8 Medium
CVSS3
9.8 Critical
CVSS3
Дефекты
CWE-89