we have been using fortify tool in our code to check for security vulnerabilities. We were able to fix most of the issues, but there are some issues which we are finding it hard to fix.One of it is related to access control database related issues.WE use hibernate criteria within our code to fetch records from DB and foritfy complains that the data which get from DB and place into program is from untrusted source.Below is the same code
Criteria criteria = hibernatessn.createCriteria("com.vish.Status")
critiera.list() ------>Here were get an error saying "data enters program from an untrusted source".
Is there a way we can indicate fortify that the data is indeed coming from a trusted source?
Thanks
Short answer - no.
Slightly longer answer - Fortify does not know if your data source is trusted or not. You would either have to create a custom filter to ignore that category, or custom rules that would be able to ignore just data from a specific data source.
Historically speaking, if you are scanning the same app over and over, I just remember that those findings are "Not an Issue" when you see them.