PT-2023-6443 · Rails · Rails

Ooooooo_Q

·

Publicado

2023-01-18

·

Atualizado

2025-05-17

·

CVE-2023-22797

CVSS v2.0

6.4

Média

VetorAV:N/AC:L/Au:N/C:P/I:P/A:N
Name of the Vulnerable Software and Affected Versions Rails versions prior to 7.0.4.1
Description The issue is related to an open redirect vulnerability in Rails, where an attacker could bypass the protection against open redirects by using a carefully crafted URL, resulting in an open redirect vulnerability. This occurs when the redirect to helper is used with untrusted user input. The vulnerability can be exploited by a remote attacker to redirect users to an arbitrary URL.
Recommendations For versions prior to 7.0.4.1, upgrade to version 7.0.4.1 or apply the provided patch for the 7.0 series, 7-0-Fix-sec-issue-with- url host allowed.patch. As a temporary workaround, consider validating and sanitizing user input for the redirect to helper to minimize the risk of exploitation. Avoid using the params[:some param] in the redirect to helper until the issue is resolved.

Exploit

Correção

Open Redirect

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

ALT-PU-2025-1938
BDU:2023-07160
CVE-2023-22797
GHSA-9445-4CR6-336R
OPENSUSE-SU-2024:12765-1
OPENSUSE-SU-2024:14067-1
OPENSUSE-SU-2025:15110-1

Produtos afetados

Rails