4.2medium
Basecamp's Google Sign-In for Rails allowed redirects to protocol-relative URI
- Severity
- 4.2medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-5jch-xhw4-r43v
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| basecamp google_sign_in | < 1.3.1 | CVE List |
| google_sign_in (RubyGems) | before 1.3.1 | GitHub Advisory Database |
All scores
| GitHub_M | 4.2medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
| GitHub | 4.2medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Google Sign-In de Basecamp añade el inicio de sesión de Google a las aplicaciones Rails. Antes de la versión 1.3.1, es posible redirigir a un usuario a otro origen si el valor “proceed_to” en el almacén de la sesión se establece como una URL relativa al protocolo. Normalmente, el valor de esta URL solo es escrito y leído por la biblioteca o la aplicación que realiza la llamada. Sin embargo, puede ser posible establecer este valor de la sesión desde un sitio malicioso mediante el envío de un formulario. Cualquier aplicación Rails que utilice la gema google_sign_in puede ser vulnerable, si este vector puede encadenarse con otro ataque que sea capaz de modificar los parámetros de la solicitud OAuth2. Este problema ha sido parcheado en la versión 1.3.1. No hay soluciones alternativas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-58067 changed 2025-09-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5jch-xhw4-r43v changed 2025-09-01 | CC-BY-4.0 |
| NVD | CVE-2025-58067 changed 2026-10-18 | Public domain |