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

Implement Allowed Directory List #22

Open
mfocuz opened this issue Dec 22, 2023 · 0 comments
Open

Implement Allowed Directory List #22

mfocuz opened this issue Dec 22, 2023 · 0 comments

Comments

@mfocuz
Copy link

mfocuz commented Dec 22, 2023

This library can be built into application(e.g. admin portal of some webapp, that is the case I encountered).

While reading log files is a feature of app for troubleshooting purposes, it should not allow to read files from arbitrary directories.
Request log file path should be normalized and checked if it is still inside of allow directory(or list of directories).

Otherwise it can lead to security issue CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

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

No branches or pull requests

1 participant