Skip to content
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

fix: apply slash normalizer before bin path join #41

Merged
merged 1 commit into from
May 2, 2023

Conversation

antongolub
Copy link
Contributor

What / Why

Prevent pkg from linking binaries outside of its own directory

Current behaviour

'../../../../etc/passwd''etc/passwd'
'..\\..\\..\\..\\etc\\passwd''../../../../etc/passwd'

Expected

'../../../../etc/passwd''etc/passwd'
'..\\..\\..\\..\\etc\\passwd''etc/passwd'

@antongolub antongolub requested a review from a team as a code owner May 2, 2023 15:21
@antongolub antongolub requested review from wraithgar and removed request for a team May 2, 2023 15:21
Copy link
Member

@wraithgar wraithgar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This makes total sense.

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.

2 participants