GHSA-2x3h-q46j-64j2
Malicious code in use-sync-external-store-shim (npm)
Auswirkung
## Source: amazon-inspector (f580338454159b608f80b985909f20a4e4fafa8b3f4eba644c5ea82e4e5c1d29) Package name impersonates the legitimate `use-sync-external-store` React shim while its `package.json` description ('A utility for managing SVG buckets') is unrelated to that purpose. `package.json` declares a `postinstall` hook running `node index.js`, which reads `os.hostname()` and `process.cwd()` and POSTs them as JSON to a hardcoded webhook at `https://webhook.site/0a4d6535-e2dd-46b7-aff7-8af65c145c50`. The exfiltration fires automatically during `npm install` without any user interaction and sends installer host identifiers to an attacker-controlled collector. The shape — misleading name, mismatched description, install-time beacon to an anonymous webhook endpoint — is the recon/confirmation stage of a typosquat supply-chain attack. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/15aa6bdb5089e6abbd3f2b5903b814669fa50738/osv/malicious/npm/use-sync-external-store-shim/MAL-2024-3805.json))
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| npm | use-sync-external-store-shim | = 1.0.1 | nicht erfasst |
Schwachstellenklasse
Referenzen
- GitHub-Advisory
- https://github.com/advisories/GHSA-2x3h-q46j-64j2
- https://github.com/ossf/malicious-packages/blob/15aa6bdb5089e6abbd3f2b5903b814669fa50738/osv/malicious/npm/use-sync-external-store-shim/MAL-2024-3805.json
- https://security.snyk.io/vuln/SNYK-JS-USESYNCEXTERNALSTORESHIM-3336025
- https://www.npmjs.com/package/use-sync-external-store-shim/v/2.0.0
- https://github.com/ossf/malicious-packages/blob/e4190179550425420ee6a1daddf958a8c6c3ac8f/osv/malicious/npm/use-sync-external-store-shim/MAL-2024-3805.json
- https://www.npmjs.com/package/use-sync-external-store-shim/v/2.2.0
- https://github.com/ossf/malicious-packages/blob/1438c33fbc77f3d34358e08a3ca51d5bd6cea884/osv/malicious/npm/use-sync-external-store-shim/MAL-2024-3805.json