KOSASIH / pipfs-hub

Audit required: External control of file name or path PTC-W6004
Security
Minor
4 months ago4 months old
External variable 'config_path' used in file path
11class SimulationEnvironment:
12    def __init__(self, config_path):
13        # Load configuration from file
14        with open(config_path) as f:15            config = json.load(f)
16        self.config = config
17
External variable 'config_path' used in file path
12class SecurityMonitor:
13    def __init__(self, config_path):
14        # Load configuration from file
15        with open(config_path) as f:16            config = json.load(f)
17        self.config = config
18
External variable 'config_path' used in file path
 14class AutonomyEngine:
 15    def __init__(self, config_path):
 16        # Load configuration from file
 17        with open(config_path) as f: 18            config = json.load(f)
 19        self.config = config
 20