KOSASIH / ExoGenesis

Audit required: External control of file name or path PTC-W6004
Security
Minor
3 months ago3 months old
External variable 'package_json_path' used in file path
10    """
11
12    # Load the package.json file
13    with open(package_json_path, "r") as file:14        package_json = json.load(file)
15
16    # Get the list of dependencies
External variable 'file_path' used in file path
 5    config = configparser.ConfigParser()
 6
 7    # Read the configuration file
 8    with open(file_path, "r") as file: 9        config.read_file(file)
10
11    # Extract project settings and parameters
External variable 'guidelines_path' used in file path
10    """
11
12    # Read the current content of the guidelines document
13    with open(guidelines_path, "r") as file:14        current_guidelines_content = file.read()
15
16    # Replace the old content with the new content