Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 517 Bytes

GitlabSecurity-RedirectToParamsUpdate.md

File metadata and controls

21 lines (13 loc) · 517 Bytes

Pattern: Use of redirect_to(params.update())

Issue: -

Description

Check for use of redirect_to(params.update()). Passing user params to the redirect_to method provides an open redirect.

Examples

# bad
redirect_to(params.update(action:'main'))

# good
redirect_to(whitelist(params))

Further Reading