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

exploitDog

github логотип

GHSA-5jch-xhw4-r43v

Опубликовано: 29 авг. 2025
Источник: github
Github: Прошло ревью
CVSS3: 4.2

Описание

Google Sign-In for Rails allowed redirect to protocol-relative URI

Summary

It is possible to redirect a user to another origin if the "proceed_to" value in the session store is set to a protocol-relative URL.

Details

The google_sign_in gem persists an optional URL for redirection after authentication. If this URL is set to a protocol-relative URL, it improperly passes the "same origin" check, and it's possible for the user to be redirected to another origin after authentication, possibly resulting in exposure of authentication information if this attack is chained with other attacks.

Normally the value of this URL is only written and read by the library or the calling application. However, it may be possible to set this session value from a malicious site with a form submission.

Impact

Any Rails applications using the google_sign_in gem may be vulnerable, if this vector can be chained with another attack that is able to modify the OAuth2 request parameters.

Workarounds

No known workarounds.

Credits

This issue was responsibly reported by Hackerone user muntrive.

Пакеты

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

google_sign_in

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

< 1.3.1

1.3.1

EPSS

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

4.2 Medium

CVSS3

Дефекты

CWE-601

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

CVSS3: 4.2
nvd
5 месяцев назад

Basecamp's Google Sign-In adds Google sign-in to Rails applications. Prior to version 1.3.1, it is possible to redirect a user to another origin if the "proceed_to" value in the session store is set to a protocol-relative URL. Normally the value of this URL is only written and read by the library or the calling application. However, it may be possible to set this session value from a malicious site with a form submission. Any Rails applications using the google_sign_in gem may be vulnerable, if this vector can be chained with another attack that is able to modify the OAuth2 request parameters. This issue has been patched in version 1.3.1. There are no workarounds.

EPSS

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

4.2 Medium

CVSS3

Дефекты

CWE-601