Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
⚠️ This package seems to have moderate severity install script vulnerabilities

Affected script: "install-scripts:install"

The code downloads a file from the internet and extracts its content without proper validation of the source or the content. The fetch function downloads a package from a given URL, which appears to be a GitHub releases link for forc-binaries. Then, it uses execSync to extract the package into the binDir directory. Additionally, the same execSync method is used to check the version of an existing binary, which could potentially include malicious code execution if the version output is altered.

This can be exploited if an attacker gains control of the URL from which the package is fetched or the repository it is hosted in, or if they manage to inject a malicious package into the download process. The use of execSync can also lead to remote code execution if unsanitized input is passed to it.

Since the script executes without verifying the integrity of the downloaded file (e.g., by checking a cryptographic signature), it opens up a possibility for a supply chain attack where the binary could be replaced by a malicious one, which would then be executed with the same privileges as the current user.

Generated on May 17, 2024 via pnpm

@fuel-ts/forc 0.0.0-pr-1408-20231110124511

NPM bin wrapper around Fuel `forc`
Package summary
Share
2
issues
1
high severity
meta
1
1
moderate severity
meta
1
3
licenses
3
MIT
1
Apache-2.0
1
BSD-2-Clause
Package created
29 Jun 2023
Version published
10 Nov 2023
Maintainers
1
Total deps
5
Direct deps
1
License
Apache-2.0

Issues

2

1 high severity issue

high
via: @fuel-ts/forc@0.0.0-pr-1408-20231110124511
Collapse
Expand

1 moderate severity issue

moderate
via: @fuel-ts/forc@0.0.0-pr-1408-20231110124511
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
node-fetch@2.7.0
tr46@0.0.3
whatwg-url@5.0.0

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
@fuel-ts/forc@0.0.0-pr-1408-20231110124511

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
webidl-conversions@3.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of @fuel-ts/forc 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
node-fetch2.7.043.6 kBMIT
prod

Visualizations