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

fix: http trasversal vulnerability #18

Merged
merged 4 commits into from
Mar 12, 2024
Merged

Conversation

dubyte
Copy link
Owner

@dubyte dubyte commented Mar 12, 2024

To fix this, I use the dir parameter, for example: './book,' then go to the absolute + canonical path of it. This value will become the trusted root patch, so later, I can use it to compare if it is the root of any request. If it is not, then it is violating.

@dubyte dubyte self-assigned this Mar 12, 2024
@dubyte
Copy link
Owner Author

dubyte commented Mar 12, 2024

This fix: #17

@dubyte dubyte merged commit fd30c64 into master Mar 12, 2024
1 check passed
@dubyte dubyte deleted the fix_http_trasversal_vulnerability branch June 15, 2024 06:18
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.

1 participant