Skip to content

Validate write_files[].path against shell metacharacters #2

Description

@chxmxii

The path in blueprint.write_files reaches a RUN chmod <mode> <path> line but is only checked for a leading /. A path like /tmp/x; touch /tmp/PWNED # injects a build-time command. Add a path regex (mirroring the existing shellRe), which also subsumes the leading-slash check, plus a rejection test. Found reviewing #1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions