Skip to content

Commit

Permalink
chore(rule): yank dangerous_insert_html (#745)
Browse files Browse the repository at this point in the history
* chore(rule): yank dangerous_insert_html

* fix: update snapshots
  • Loading branch information
cfabianski committed Mar 6, 2023
1 parent 97e8e40 commit 8308b5c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 33 deletions.
@@ -1,3 +1,4 @@
disabled: true
patterns:
- pattern: |
document.$<METHOD>($<...>$<DATA>$<...>)
Expand Down
@@ -1,13 +1,3 @@
high:
- rule:
cwe_ids:
- "79"
id: javascript_dangerous_insert_html
description: Dangerous dynamic HTML insert detected.
documentation_url: https://docs.bearer.com/reference/rules/javascript_dangerous_insert_html
line_number: 2
filename: unsecure-document_write.js
parent_line_number: 2
parent_content: document.write(`<li>${input}</li>`)
{}


@@ -1,13 +1,3 @@
high:
- rule:
cwe_ids:
- "79"
id: javascript_dangerous_insert_html
description: Dangerous dynamic HTML insert detected.
documentation_url: https://docs.bearer.com/reference/rules/javascript_dangerous_insert_html
line_number: 2
filename: unsecure-element_ref.js
parent_line_number: 2
parent_content: this.ref.replaceChildren(`<li>${input}</li>`)
{}


@@ -1,13 +1,3 @@
high:
- rule:
cwe_ids:
- "79"
id: javascript_dangerous_insert_html
description: Dangerous dynamic HTML insert detected.
documentation_url: https://docs.bearer.com/reference/rules/javascript_dangerous_insert_html
line_number: 2
filename: unsecure-property_assigment.js
parent_line_number: 2
parent_content: this.ref.innerHTML = `<li>${input}</li>`
{}


0 comments on commit 8308b5c

Please sign in to comment.