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

file helper function that ckecks if a path (with filename) exists in a list of given folders #212

Closed
Mzack9999 opened this issue Jul 14, 2023 · 0 comments · Fixed by #216
Assignees
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Enhancement Most issues will probably ask for additions or changes.

Comments

@Mzack9999
Copy link
Member

This is a follow up ticket of projectdiscovery/nuclei#3927 (comment)

As described in the comment it's necessary to implement a function that given a file path (relative or absolute) and an optional list of allowed paths/filenames, verify the following:

  • Extract the absolute folder from allowed files and add them to the list of allowed paths
  • Simplify the list of allowed paths by pruning subdirectories of upper level folders
  • Check if the given file exists in any of the final list of allowed paths
  • TBD?
@Mzack9999 Mzack9999 added the Type: Enhancement Most issues will probably ask for additions or changes. label Jul 14, 2023
@dogancanbakir dogancanbakir self-assigned this Jul 19, 2023
@Mzack9999 Mzack9999 added the Status: Completed Nothing further to be done with this issue. Awaiting to be closed. label Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants