Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-xq5j-gw7f-jgj8

Опубликовано: 07 июл. 2020
Источник: github
Github: Прошло ревью
CVSS3: 6.5

Описание

CSRF Vulnerability in rails-ujs

There is a vulnerability in rails-ujs that allows attackers to send CSRF tokens to wrong domains.

Versions Affected: rails <= 6.0.3 Not affected: Applications which don't use rails-ujs. Fixed Versions: rails >= 5.2.4.3, rails >= 6.0.3.1

Impact

This is a regression of CVE-2015-1840.

In the scenario where an attacker might be able to control the href attribute of an anchor tag or the action attribute of a form tag that will trigger a POST action, the attacker can set the href or action to a cross-origin URL, and the CSRF token will be sent.

Workarounds

To work around this problem, change code that allows users to control the href attribute of an anchor tag or the action attribute of a form tag to filter the user parameters.

For example, code like this:

link_to params

to code like this:

link_to filtered_params def filtered_params # Filter just the parameters that you trust end

Пакеты

Наименование

actionview

rubygems
Затронутые версииВерсия исправления

>= 5.0.0, <= 5.2.4.2

5.2.4.3

Наименование

actionview

rubygems
Затронутые версииВерсия исправления

>= 6.0.0, <= 6.0.3

6.0.3.1

EPSS

Процентиль: 57%
0.00347
Низкий

6.5 Medium

CVSS3

Дефекты

CWE-352

Связанные уязвимости

CVSS3: 6.5
ubuntu
около 5 лет назад

A CSRF vulnerability exists in rails <= 6.0.3 rails-ujs module that could allow attackers to send CSRF tokens to wrong domains.

CVSS3: 7.5
redhat
около 5 лет назад

A CSRF vulnerability exists in rails <= 6.0.3 rails-ujs module that could allow attackers to send CSRF tokens to wrong domains.

CVSS3: 6.5
nvd
около 5 лет назад

A CSRF vulnerability exists in rails <= 6.0.3 rails-ujs module that could allow attackers to send CSRF tokens to wrong domains.

CVSS3: 6.5
debian
около 5 лет назад

A CSRF vulnerability exists in rails <= 6.0.3 rails-ujs module that co ...

CVSS3: 6.5
redos
около 1 месяца назад

Уязвимость rubygem-actionview

EPSS

Процентиль: 57%
0.00347
Низкий

6.5 Medium

CVSS3

Дефекты

CWE-352