praetorian-inc/gokart

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

ignishub opened this issue · 0 comments

configPath recieved from flag, Am i doing something wrong?

clean := filepath.Clean(configPath)

file, err := os.Open(clean)