Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

I dont know how to get rid of CWE-22: Path Traversal #65

Open
ignishub opened this issue Dec 9, 2021 · 0 comments
Open

I dont know how to get rid of CWE-22: Path Traversal #65

ignishub opened this issue Dec 9, 2021 · 0 comments

Comments

@ignishub
Copy link

ignishub commented Dec 9, 2021

configPath recieved from flag, Am i doing something wrong?

clean := filepath.Clean(configPath)

file, err := os.Open(clean)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant