From f9d85849107b61752e61b3d314cfa2e5afe47b77 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Thu, 8 Apr 2021 17:29:00 +0300 Subject: [PATCH] Shellshock UI bugfix --- .../cc/ui/src/components/report-components/SecurityReport.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/SecurityReport.js b/monkey/monkey_island/cc/ui/src/components/report-components/SecurityReport.js index 364e77b77..8486dd547 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/SecurityReport.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/SecurityReport.js @@ -598,7 +598,7 @@ class ReportPageComponent extends AuthComponent { let issueDescriptor = this.IssueDescriptorEnum[issue.type]; let reportFnc = (issue) => {}; - if (issue.hasOwnProperty('credential_type')) { + if (issue.hasOwnProperty('credential_type') && issue.credential_type !== null) { reportFnc = issueDescriptor[this.issueContentTypes.REPORT][issue.credential_type]; } else { reportFnc = issueDescriptor[this.issueContentTypes.REPORT];