javascript - Fortify complaints "Hardcoded Encryption Key" mozila pdf.js - Stack Overflow

In my project we are using pdf.js from Mozilla, Now the fortify scan plaints about "Hardcoded Encr

In my project we are using pdf.js from Mozilla, Now the fortify scan plaints about "Hardcoded Encryption Key" .See the below image

Please provide some help on this.Using version 2 of pdf.js

In my project we are using pdf.js from Mozilla, Now the fortify scan plaints about "Hardcoded Encryption Key" .See the below image

Please provide some help on this.Using version 2 of pdf.js

Share Improve this question asked Jul 5, 2019 at 5:55 Anoop M NairAnoop M Nair 1,0872 gold badges14 silver badges36 bronze badges 2
  • 3 I have the feeling this is a false positive, and that it detects those lines by scanning for a field that starts with key – Ferrybig Commented Jul 5, 2019 at 6:15
  • 2 Fortify is notorious for needing tweaks to the rules to stop flagging safe code. So, yeah - it seems this is one of those cases. – VLAZ Commented Jul 5, 2019 at 6:17
Add a ment  | 

2 Answers 2

Reset to default 5

Fortify has used semantic analyzer which did a grep for the word "key". So this accounts that the value which in this case is key is a variable name. Fortify identified the word, 'key' as encryption key. So you can make this case to a false positive.

The semantic analyzer of fortify is very notorious for false positives. If you want a more automated solution, Fortify is not the right tool.

I have also faced this issue. Whenever fortify scans the application, it looks for some specific fields like "key" or "password" and its analyzer will start plaining with "Hardcoded Encryption Key" or "Password Management: Hardcoded Password".

Refer the below link for more information.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742298867a4417663.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信