8000 find: `-execdir` should ensure secure `PATH` variable · Issue #518 · uutils/findutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

find: -execdir should ensure secure PATH variable #518

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
milkory opened this issue Apr 1, 2025 · 0 comments
Open

find: -execdir should ensure secure PATH variable #518

milkory opened this issue Apr 1, 2025 · 0 comments

Comments

@milkory
Copy link
Contributor
milkory commented Apr 1, 2025

-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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0