KOSASIH / HealthGuard-Refugee-Initiative

Audit required: External control of file name or path PTC-W6004
Security
Minor
5 months ago5 months old
External variable 'filename' used in file path
 80    Returns:
 81        (bytes) The data in the file.
 82    """
 83    with open(filename, "rb") as f: 84        data = f.read()
 85
 86    if encryption_key:
External variable 'data_path' used in file path
 35    """
 36    data = {}
 37
 38    with open(data_path, "r") as file: 39        for line in file:
 40            line = line.strip()
 41            if not line: