Skip to content

find: -execdir should ensure secure PATH variable #518

@milkory

Description

@milkory

-execdir should check the PATH variable at parsing, and fails if it contains non-absolute directory names.

For example, this should fail:

export PATH=$PATH:.
find . -execdir echo hi ';'

refer: https://www.gnu.org/software/findutils/manual/html_node/find_html/Single-File.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions