You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was able to fix this test by modifying it to compare two things. #1) That the current_url starts_with http://127.0.0.1, and #2) that the current path matches /dashboard/home, as seen below:
The Unvalidated Redirect test is too tight, as it accepts only
/dashboard/home
. The current code in Railsgoat sets a default path tohome_dashboard_index_path
(https://github.com/OWASP/railsgoat/blob/master/app/controllers/sessions_controller.rb#L12)After successfully mitigating the vulnerability, the test still fails with the following error:
I was able to fix this test by modifying it to compare two things. #1) That the
current_url
starts_with http://127.0.0.1, and #2) that the current path matches /dashboard/home, as seen below:The text was updated successfully, but these errors were encountered: