How to supress HP Fortify critical issues in java

2019-07-19 17:36发布

I want to supress the issues(which ever i want) fortify shows on the report in java files either by annotations or other means. like we supress PMD issues using @supressWarnings(PMD.XXX)

标签: java fortify
1条回答
Deceive 欺骗
2楼-- · 2019-07-19 18:19

There are Java annotations you can use within code to say for example that a function "cleanses" taint. Further information and the relevant jars are available in /Samples/advanced/javaAnnotations/ With regard to suppressing other issues, these is partly what auditing is about as you can audit issues as not an issue or use the suppress button to suppress the issue itself (the difference being the issue will disappear by default when using the latter). Alternatively if you are saying that there are a large subset of findings you don't want to see, such as those to do with command line arguments or issues found with the semantic analyzer, then you can use filters within the project template to hide these.

I would suggest auditing these however unless you are really positive that there won't be security vulnerabilities with them.

查看更多
登录 后发表回答