-
Notifications
You must be signed in to change notification settings - Fork 189
Simple Python HOF does not get detected #500
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't workinghofissues related to higher-order functions and lambdasissues related to higher-order functions and lambdas
Description
There is no detection on this example:
─────┬───────────────────────────────────────────────────────
│ File: simple-hof.py
─────┼───────────────────────────────────────────────────────
1 │ def f(x):
2 │ z = source(x)
3 │ # ruleid: taint-call
4 │ (lambda k: sink(k))(z)
─────┴───────────────────────────────────────────────────────
─────┬───────────────────────────────────────────────────────
│ File: simple-hof.yaml
─────┼───────────────────────────────────────────────────────
1 │ rules:
2 │ - id: taint-call
3 │ message: Test HOF callback taint propagation
4 │ languages:
5 │ - python
6 │ severity: WARNING
7 │ mode: taint
8 │ options:
9 │ taint_intrafile: true
10 │ pattern-sources:
11 │ - pattern: source(...)
12 │ pattern-sinks:
13 │ - pattern: sink(...)
14 │
─────┴───────────────────────────────────────────────────────Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghofissues related to higher-order functions and lambdasissues related to higher-order functions and lambdas