Skip to content

Commit

Permalink
add support for nodeintegrationinsubframes in HTML, close #52
Browse files Browse the repository at this point in the history
  • Loading branch information
phosphore committed Oct 28, 2019
1 parent 3bc9453 commit 02d9ea1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/finder/checks/AtomicChecks/NodeIntegrationHTMLCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export default class NodeIntegrationHTMLCheck {
const self = this;
webviews.each(function (i, elem) {
const nodeintegration = cheerioObj(this).attr('nodeintegration');
if (nodeintegration !== undefined) {
const nodeintegrationInSubframes = cheerioObj(this).attr('nodeintegrationinsubframes');

if (nodeintegration !== undefined || nodeintegrationInSubframes !== undefined) {
loc.push({ line: content.substr(0, elem.startIndex).split('\n').length, column: 0, id: self.id, description: self.description, severity: severity.HIGH, confidence: confidence.FIRM, manualReview: false });
}
});
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<webview src="https://doyensec.com/" nodeintegrationinsubframes></webview>

0 comments on commit 02d9ea1

Please sign in to comment.