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(pipeline): do preliminary checks for checksum invalid chars #1659

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

89luca89
Copy link
Contributor

Fix https://github.com/chainguard-dev/internal-dev/issues/1571

We don't want to pass possible code execution to expected-sha{256,512}, the comparison is done in shell
this opens the possibility to inject values and/or commands.

SHA checksums only contains [0-9a-zA-Z] chars, so ensure we only have those. This will prevent any injection at that stage.

Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
@89luca89 89luca89 requested a review from xnox November 19, 2024 10:52
@imjasonh imjasonh merged commit 5decd5c into chainguard-dev:main Nov 19, 2024
36 checks passed
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.

3 participants