From b32b81b93cc3fe8e0f89af22fa89824d3c078061 Mon Sep 17 00:00:00 2001 From: phosphore Date: Thu, 23 May 2019 15:08:55 +0200 Subject: [PATCH] report CSP sample in CSPGlobalCheck issues --- src/finder/checks/GlobalChecks/CSPGlobalCheck.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/finder/checks/GlobalChecks/CSPGlobalCheck.js b/src/finder/checks/GlobalChecks/CSPGlobalCheck.js index 2c41433..8772707 100644 --- a/src/finder/checks/GlobalChecks/CSPGlobalCheck.js +++ b/src/finder/checks/GlobalChecks/CSPGlobalCheck.js @@ -33,9 +33,9 @@ export default class CSPGlobalCheck { } if (confidence === 2) - otherIssues.push({ file: cspIssues[0].file, location: cspIssues[0].location, id: this.id, description: this.description.WEAK_CSP, severity: attributes.severity.LOW, confidence: attributes.confidence.CERTAIN, manualReview: false }); + otherIssues.push({ file: cspIssues[0].file, location: cspIssues[0].location, id: this.id, description: this.description.WEAK_CSP, severity: attributes.severity.LOW, confidence: attributes.confidence.CERTAIN, sample: cspIssue.properties.CSPstring, manualReview: false }); if (confidence === 1) - otherIssues.push({ file: cspIssues[0].file, location: cspIssues[0].location, id: this.id, description: this.description.MAYBE_WEAK_CSP, severity: attributes.severity.LOW, confidence: attributes.confidence.FIRM, manualReview: true }); + otherIssues.push({ file: cspIssues[0].file, location: cspIssues[0].location, id: this.id, description: this.description.MAYBE_WEAK_CSP, severity: attributes.severity.LOW, confidence: attributes.confidence.FIRM, sample: cspIssue.properties.CSPstring, manualReview: true }); return otherIssues;