Skip to content

Use "url_from" to validate destination_path to avoid potential open redirect attack - #271

Open
mish-tan wants to merge 4 commits into
mikker:masterfrom
mish-tan:destination-path-validation
Open

Use "url_from" to validate destination_path to avoid potential open redirect attack #271
mish-tan wants to merge 4 commits into
mikker:masterfrom
mish-tan:destination-path-validation

Conversation

@mish-tan

Copy link
Copy Markdown
Contributor

Fixes #270

I updated the read me and added tests to confirm new behaviour.

Users who are currently relying on both destination_path and allow_other_host will need to update their code.

@mish-tan

Copy link
Copy Markdown
Contributor Author

CI is failing but it looks unrelated to my change...

/home/runner/work/passwordless/passwordless/vendor/bundle/ruby/3.1.0/gems/i18n-1.15.0/lib/i18n.rb:58:in `config': undefined method `[]' for Fiber:Class (NoMethodError)

      current = Fiber[:i18n_config] || self.config = I18n::Config.new

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Security Issue, Redirect attack vulnerability

1 participant