Skip to content

Patch potential security hole in spec_loader.py #22

@ialarmedalien

Description

@ialarmedalien

relation_engine_server/utils/spec_loader.py takes user input and uses it to fetch files from the spec directory. Relative paths (using ../../) are allowed by the spec loader, with no protection against paths that aren't in the spec directory. Ensure that the spec loader does not permit files outside the spec directory (or whatever is configured as the place where spec files are stored) to be fetched.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions