This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate cache-buster

Dependencies

(8 total, 1 outdated)

CrateRequiredLatestStatus
 mime_guess^2.02.0.4up to date
 mime^0.3.160.3.17up to date
 sha2^0.100.10.8up to date
 derive_builder^0.110.20.0out of date
 data-encoding^2.3.22.6.0up to date
 walkdir^22.5.0up to date
 serde_json^11.0.117up to date
 serde^11.0.202up to date

Crate actix-web

Dependencies

(7 total, 2 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 actix-web^4.0.0-beta.84.5.1up to date
 rust-embed ⚠️^6.2.08.4.0out of date
 lazy_static^1.41.4.0up to date
 mime^0.3.160.3.17up to date
 pretty_env_logger^0.40.5.0out of date
 log^0.40.4.21up to date
 mime_guess^2.0.32.0.4up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 actix-rt^22.9.0up to date

Build dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 mime^0.3.160.3.17up to date

Security Vulnerabilities

rust-embed: RustEmbed generated `get` method allows for directory traversal when reading files from disk

RUSTSEC-2021-0126

When running in debug mode and the debug-embed (off by default) feature is not enabled, the generated get method does not check that the input path is a child of the folder given.

This allows attackers to read arbitrary files in the file system if they have control over the filename given. The following code will print the contents of your /etc/passwd if adjusted with a correct number of ../s depending on where it is run from.

#[derive(rust_embed::RustEmbed)]
#[folder = "src/"]
pub struct Asset;

fn main() {
    let d = Asset::get("../../../etc/passwd").unwrap().data;
    println!("{}", String::from_utf8_lossy(&d));
}

The flaw was corrected by canonicalizing the input filename and ensuring that it starts with the canonicalized folder path.