Lucene search

K
hackeroneWonda_tea_coffeeH1:1865991
HistoryFeb 07, 2023 - 11:03 p.m.

Internet Bug Bounty: Open Redirect Vulnerability in Action Pack

2023-02-0723:03:04
wonda_tea_coffee
hackerone.com
$2400
23
internet bug bounty
open redirect
vulnerability
action pack
incomplete url input validation
patch
rails 7.0

0.001 Low

EPSS

Percentile

21.4%

We were able to bypass the mechanism that prevents open redirects due to incomplete URL input validation.
I have reported it below and written a patch to fix it.
https://hackerone.com/reports/1789458

Impact

Vulnerable code will look like this:

redirect_to(params[:some_param])

Rails 7.0 introduced 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 be bypassed by a carefully crafted URL.