javascript - Key Management: Hardcoded Encryption Key for chart.js - Stack Overflow

I facing issue related to "Key Management: Hardcoded Encryption Key" for chart.js api.We ar

I facing issue related to "Key Management: Hardcoded Encryption Key" for chart.js api. We are using Fortify Scanning for security purpose. How to avoid the 'Hardcoded Encryption Key'.

After scanning we found the line of code that is hardcoded in chart.js. Is there any way to resolve this issue.

var axisType = helpers.getValueOrDefault(valueObj.type, key === 'xAxes' ? 'category' : 'linear');

I facing issue related to "Key Management: Hardcoded Encryption Key" for chart.js api. We are using Fortify Scanning for security purpose. How to avoid the 'Hardcoded Encryption Key'.

After scanning we found the line of code that is hardcoded in chart.js. Is there any way to resolve this issue.

var axisType = helpers.getValueOrDefault(valueObj.type, key === 'xAxes' ? 'category' : 'linear');
Share Improve this question asked Oct 9, 2019 at 11:15 SitansuSitansu 3,3278 gold badges37 silver badges61 bronze badges 1
  • 1 Besides the fact that Chart.js has no encryption related code at all in it (as far as I'm aware), that line of code is clearly not a hard-coded encryption key. So it's a false positive that you should report to the vendor. – timclutton Commented Oct 9, 2019 at 12:49
Add a ment  | 

1 Answer 1

Reset to default 5

After analysed the chart.js code file, we have found there is no hardcode encryption key . Key is variable name.

Hp fortify identified the word, 'key' as encryption key. These are not encryption key it is a variable name. Hence it is a false positive.

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

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

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

关注微信