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

cargo audit reports few issues #4396

Open
sydhds opened this issue Sep 7, 2023 · 5 comments · Fixed by #4436
Open

cargo audit reports few issues #4396

sydhds opened this issue Sep 7, 2023 · 5 comments · Fixed by #4436
Assignees
Labels
bug Something isn't working global Issue that concern the whole codebase

Comments

@sydhds
Copy link
Contributor

sydhds commented Sep 7, 2023

Running cargo-audit 0.18.1 on massa code testnet 26 reports a few issue that might be interested to fix...

setup

cargo install cargo-audit && cargo audit

@AurelienFT
Copy link
Member

AurelienFT commented Sep 20, 2023

Report for each issue :

Crate:     ansi_term
Version:   0.12.1
Warning:   unmaintained
Title:     ansi_term is Unmaintained
Date:      2021-08-18
ID:        RUSTSEC-2021-0139
URL:       https://rustsec.org/advisories/RUSTSEC-2021-0139
Dependency tree:
ansi_term 0.12.1
└── clap 2.34.0
    └── structopt 0.3.26
        ├── massa-node 0.26.1
        └── massa-client 0.26.1

By looking in the readme of structopt they say that everything is in clap now and so we should make the transition

Crate:     mach
Version:   0.3.2
Warning:   unmaintained
Title:     mach is unmaintained
Date:      2020-07-14
ID:        RUSTSEC-2020-0168
URL:       https://rustsec.org/advisories/RUSTSEC-2020-0168
Dependency tree:
mach 0.3.2
├── wasmer-vm 4.2.0
│   ├── wasmer-middlewares 4.2.0
│   │   └── massa-sc-runtime 0.10.0

Rust sec propose mach2 instead so I will open an issue in wasmer (EDIT: wasmerio/wasmer#4222)

Crate:     atty
Version:   0.2.14
Warning:   unsound
Title:     Potential unaligned read
Date:      2021-07-04
ID:        RUSTSEC-2021-0145
URL:       https://rustsec.org/advisories/RUSTSEC-2021-0145
Dependency tree:
atty 0.2.14
├── massa-client 0.26.1
└── clap 2.34.0
    └── structopt 0.3.26
        ├── massa-node 0.26.1
        └── massa-client 0.26.1

Should be fixed by using clap 4 otherwise rustsec propose other alternative crates

Crate:     borsh
Version:   0.10.3
Warning:   unsound
Title:     Parsing borsh messages with ZST which are not-copy/clone is unsound
Date:      2023-04-12
ID:        RUSTSEC-2023-0033
URL:       https://rustsec.org/advisories/RUSTSEC-2023-0033
Dependency tree:
borsh 0.10.3
└── rust_decimal 1.32.0

Blocked : paupino/rust-decimal#595 (comment)

@sydhds
Copy link
Contributor Author

sydhds commented Sep 20, 2023

Would be nice to include this in the CI as well :)

@AurelienFT
Copy link
Member

Would be nice to include this in the CI as well :)

I'm not a big fan of this as some warnings dependents on other project like wasmer and so it will block our CI for something that we don't control

@sydhds
Copy link
Contributor Author

sydhds commented Sep 20, 2023

Would be nice to include this in the CI as well :)

I'm not a big fan of this as some warnings dependents on other project like wasmer and so it will block our CI for something that we don't control

Would it be possible to add it as warnings?

@sydhds
Copy link
Contributor Author

sydhds commented Oct 10, 2023

Note: the only remaining warning with cargo audit is the one with mach (dependency of wasmer), issue is here: wasmerio/wasmer#4222

@AurelienFT AurelienFT added bug Something isn't working global Issue that concern the whole codebase labels Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working global Issue that concern the whole codebase
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants