Open swallenfriedman opened 5 years ago
Hi @swallenfriedman - thank you for reporting this! I suspect this is at least a little related to #1034 which I have not gone back to yet.
request.params
is easy - looks like request.parameters
and request.path_parameters
are covered, just not request.params
.
In any case - I will take a deeper look. Thanks!
Background
Brakeman version: 4.6.1 Rails version: 5.2.3 Ruby version: Using brakeman docker image
Issue
I noticed a few places where brakeman doesn't flag certain instances of unvalidated redirect vulnerabilities. Here's some example contrived controller code:
Two of these 4 examples get correctly flagged, but all are vulnerable to open redirects (unless manually adding
only_path: true
as an additional parameter).Thanks!