Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fortify complaints "Hardcoded Encryption Key" mozila pdf.js

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

fortify

enter image description here

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

like image 205
Anoop M Nair Avatar asked Sep 11 '25 13:09

Anoop M Nair


2 Answers

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.

like image 56
viveknaskar Avatar answered Sep 14 '25 03:09

viveknaskar


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 complaining with "Hardcoded Encryption Key" or "Password Management: Hardcoded Password".

Refer the below link for more information.

like image 20
Codewrapper Avatar answered Sep 14 '25 02:09

Codewrapper