Skip to content

Disallow parent dir components (..) in open_basedir() at runtime #10913

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

Closed
wants to merge 1 commit into from

Conversation

iluuu1994
Copy link
Member

Fix GH-10469

Verified

This commit was signed with the committer’s verified signature.
iluuu1994 Ilija Tovilo
@iluuu1994 iluuu1994 closed this in 61e98bf Mar 25, 2023
@bukka
Copy link
Member

bukka commented Mar 25, 2023

@iluuu1994 Did you just prohibit .. anywhere in the path? If so, it should be changed to not allow only jump out of cwd (you can count the dirs...)

@iluuu1994
Copy link
Member Author

@bukka Oh, that's a good idea. I missed this approach. I'll make the changes tomorrow. I suppose then backporting it would be fine too.

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

Successfully merging this pull request may close these issues.

None yet

2 participants