diff --git a/CHANGELOG.md b/CHANGELOG.md index 121090d..280fb6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.9.5] - 2022-09-25 +### Security +- Ensure `sudo` binary used for permission checks isn't one supplied by the user in the `PATH` variable. + ## [0.9.4] - 2022-09-25 ### Fixed - Ensure cache directories exist before they're used. diff --git a/Cargo.lock b/Cargo.lock index edc7f21..8a24ba7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -863,7 +863,7 @@ dependencies = [ [[package]] name = "mist" -version = "0.9.4" +version = "0.9.5" dependencies = [ "bat", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 2ddba98..a223fa8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mist" -version = "0.9.4" +version = "0.9.5" authors = ["Hunter Wittenborn >(program: P) -> super::ProcCommand { - let mut cmd = super::ProcCommand::new("sudo"); + let mut cmd = super::ProcCommand::new("/usr/bin/sudo"); cmd.args(["-E", "-n"]); cmd.arg(format!("-u#{}", *self::NORMAL_UID)); cmd.arg("--");