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 survey

Dependencies

(30 total, 10 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 actix-web^4.0.14.5.1up to date
 actix-identity^0.4.00.7.1out of date
 actix-session^0.6.10.9.0out of date
 actix-http^3.0.43.6.0up to date
 actix-rt^22.9.0up to date
 actix-cors^0.6.10.7.0out of date
 actix-files^0.6.00.6.5up to date
 actix-service^2.0.02.0.2up to date
 futures^0.3.150.3.30up to date
 sqlx^0.6.20.7.4out of date
 derive_builder^0.110.20.0out of date
 validator^0.140.18.1out of date
 derive_more^0.990.99.17up to date
 config^0.110.14.0out of date
 serde^11.0.201up to date
 serde_json^11.0.117up to date
 pretty_env_logger^0.40.5.0out of date
 log^0.40.4.21up to date
 lazy_static^1.41.4.0up to date
 url^2.22.5.0up to date
 urlencoding^2.1.02.1.3up to date
 rand^0.80.8.5up to date
 uuid^0.8.21.8.0out of date
 mime_guess^2.0.32.0.4up to date
 rust-embed ⚠️^6.0.08.4.0out of date
 mime^0.3.160.3.17up to date
 tracing^0.1.370.1.40up to date
 tera^1.17.11.19.1up to date
 tokio^1.25.01.37.0up to date
 csv-async^1.2.51.3.0up to date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 mktemp^0.5.00.5.1up to date

Build dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 sqlx^0.6.20.7.4out of date
 serde_json^11.0.117up to date
 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.