CVE-2025-57821 Basecamp's Google Sign-In for Rails allowed redirects to a malformed URL
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
Basecamp's Google Sign-In adds Google sign-in to Rails applications. Prior to version 1.3.0, it is possible to craft a malformed URL that passes the "same origin" check, resulting in the user being redirected to another origin. Rails applications configured to store the flash information in a session cookie may be vulnerable, if this can be chained with an attack that allows injection of arbitrary data into the session cookie. This issue has been patched in version 1.3.0. If upgrading is not possible at this time, a way to mitigate the chained attack can be done by explicitly setting SameSite=Lax or SameSite=Strict on the application session cookie.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| rubygems google_sign_in(RubyGems) | < 1.3.0; = 0.1; = 0.1.1; = 0.1.2 +10 more | 1.3.0 | Fixed |
| basecamp google_sign_in | = < 1.3.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems google_sign_in(RubyGems) | < 1.3.0 | 1.3.0 |
| rubygems google_sign_in(RubyGems) | = 0.1 | No fix listed |
| rubygems google_sign_in(RubyGems) | = 0.1.1 | No fix listed |
| rubygems google_sign_in(RubyGems) | = 0.1.2 | No fix listed |
| rubygems google_sign_in(RubyGems) | = 0.1.3 | No fix listed |
| rubygems google_sign_in(RubyGems) | = 0.1.4 | No fix listed |
| rubygems google_sign_in(RubyGems) | = 1.0.0 | No fix listed |
| rubygems google_sign_in(RubyGems) | = 1.0.1 | No fix listed |
| rubygems google_sign_in(RubyGems) | = 1.0.2 | No fix listed |
| rubygems google_sign_in(RubyGems) | = 1.1.0 | No fix listed |
| rubygems google_sign_in(RubyGems) | = 1.1.1 | No fix listed |
| rubygems google_sign_in(RubyGems) | = 1.1.2 | No fix listed |
| rubygems google_sign_in(RubyGems) | = 1.2.0 | No fix listed |
| rubygems google_sign_in(RubyGems) | = 1.2.1 | No fix listed |
| basecamp google_sign_in | = < 1.3.0 | No fix listed |
References
- https://github.com/basecamp/google_sign_in/security/advisories/GHSA-7pwc-wh6m-44q3 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/basecamp/google_sign_in/pull/73 patch
- https://github.com/basecamp/google_sign_in/commit/85903651201257d4f14b97d4582e6d968ac32f15 patch
- github.com patch
- github.com product
- https://github.com/basecamp/google_sign_in/releases/tag/v1.3.0
- github.com exploit
- github.com