CVE-2023-22797
Description
An open redirect vulnerability is fixed in Rails 7.0.4.1 with the new protection against open redirects from calling redirect_to with untrusted user input. In prior versions the developer was fully responsible for only providing trusted input. However the check introduced could allow an attacker to bypass with a carefully crafted URL resulting in an open redirect vulnerability.
How to fix
- rubyonrails rails7.0.4.1 or later
- actionpack_project actionpack7.0.4.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubyonrails rails | 7.0.0 ≤ v < 7.0.4.1 | 7.0.4.1 |
| actionpack_project actionpack | 7.0.0 ≤ v < 7.0.4.1 | 7.0.4.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.