feat:添加正则条目
All checks were successful
Python application test / build (pull_request) Successful in 19s
All checks were successful
Python application test / build (pull_request) Successful in 19s
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -158,5 +158,5 @@ cython_debug/
|
|||||||
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
||||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
#.idea/
|
.idea/
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ def find_dangerous_functions(
|
|||||||
r"\bpopen\(": "medium",
|
r"\bpopen\(": "medium",
|
||||||
r"\beval\(": "high",
|
r"\beval\(": "high",
|
||||||
r"\bsubprocess\.run\(": "medium",
|
r"\bsubprocess\.run\(": "medium",
|
||||||
|
r"\b__getattribute__\(": "high",
|
||||||
|
r"\bgetattr\(": "medium",
|
||||||
|
r"\b__import__\(": "high",
|
||||||
},
|
},
|
||||||
".js": {
|
".js": {
|
||||||
r"\beval\(": "high",
|
r"\beval\(": "high",
|
||||||
|
|||||||
Reference in New Issue
Block a user