HP Fortify Validation Rules on Path Manipulation
问题 I am running code through Hp Fortify and have some path manipulation findings. I understand the context of it and trying to resolve. Instead of going through all the places where SOME path values are queried from a database to store output files (logs, export data, whatever), I tried to centralize it. So, instead of having File.WriteAllText() with some path + file name, content, I wanted to wrap into FortifyFileWriteAllText(). Then, in this function I do path validation check once up front,