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

Panic on decoding xz file with sha256 checksum #32

Closed
Shnatsel opened this issue Apr 15, 2020 · 0 comments · Fixed by #40
Closed

Panic on decoding xz file with sha256 checksum #32

Shnatsel opened this issue Apr 15, 2020 · 0 comments · Fixed by #40
Labels

Comments

@Shnatsel
Copy link
Contributor

CheckMethod::SHA256 => unimplemented!(),

This panic is trivial to trigger and may be used to mount a denial-of-service attack on a remote service that decodes XZ files.

Returning an error instead of panicking would be an improvement. https://crates.io/crates/sha2 can be used to implement the check.

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

Successfully merging a pull request may close this issue.

2 participants