Skip to content

Commit

Permalink
report CSP sample in CSPGlobalCheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phosphore committed May 23, 2019
1 parent 84316b1 commit b32b81b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/finder/checks/GlobalChecks/CSPGlobalCheck.js
Expand Up @@ -33,9 +33,9 @@ export default class CSPGlobalCheck {
} }


if (confidence === 2) 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) 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; return otherIssues;
Expand Down

0 comments on commit b32b81b

Please sign in to comment.