Category "veracode"

CWE 73 External Control of file name or Path

I am working to fix Veracode vulnerability CWE-73 (https://cwe.mitre.org/data/definitions/73.html) for my application in which the input filename is dynamically

Type used in a using statement should be implicitly convertible to IDisposable

I have the following logic: try { using (var contents = new StreamReader(file.InputStream).ReadToEnd()) { var rows = contents.Split(new[] { Enviro

How to resolve External Control of File Name or Path (CWE ID 73)

I am working on fixing Veracode issues in my application. Veracode has highlighted the flaw "External Control of File Name or Path (CWE ID 73) " in below code.