Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lib/rack/file.rb #522

Closed
wants to merge 6 commits into from
Closed

Update lib/rack/file.rb #522

wants to merge 6 commits into from

Conversation

snyff
Copy link
Contributor

@snyff snyff commented Feb 20, 2013

Fix XSS in path_info

Fix XSS in path_info
prevent symlink usage to access files outside of the "mounted" directory
Can lead to XSS
secure_compare for digest authentication
@@ -96,7 +96,7 @@ def valid_nonce?(auth)

def valid_digest?(auth)
pw = @authenticator.call(auth.username)
pw && digest(auth, pw) == auth.response
pw && Rack::Utils.secure_compare(digest(auth, pw), auth.response)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you do this in a separate PR? I'd like to merge that.

@raggi raggi closed this in ba98d5f Apr 21, 2013
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.

2 participants