JS: Do simple modeling of process.stdin as threat-model source

This commit is contained in:
Rasmus Wriedt Larsen
2024-10-31 14:24:27 +01:00
parent 34b86c39c1
commit eca8bf5a35
2 changed files with 6 additions and 4 deletions

View File

@@ -6,3 +6,5 @@ extensions:
extensible: sourceModel
data:
- ['fs', 'Member[promises].Member[readFile].ReturnValue.Member[then].Argument[0].Parameter[0]', 'file']
- ['global', 'Member[process].Member[stdin].Member[read].ReturnValue', 'stdin']
- ['global', 'Member[process].Member[stdin].Member[on,addListener].WithStringArgument[0=data].Argument[1].Parameter[0]', 'stdin']