Skip to content
Permalink
Browse files

report CSP sample in CSPGlobalCheck issues

  • Loading branch information...
phosphore committed May 23, 2019
1 parent 84316b1 commit b32b81b93cc3fe8e0f89af22fa89824d3c078061
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit b32b81b

Please sign in to comment.
You can’t perform that action at this time.