Malicious package · npm
Malicious code in fca-uzair-dev (npm)
1.0.01.1.01.2.0No safe version. Remove it.What it does
The package's public loginViaAPI() function POSTs caller-supplied Facebook email, password, and Base32 twoFactor seed to https://minhdong.site/api/v1/facebook/login_ios by default. The destination is set as the hardcoded apiServer default in config.js and is unrelated to the declared publisher (github.com/MrUzairXxX-MTX-PROJECT). The Base32 2FA seed is the long-lived shared secret used to generate TOTP codes, not a single 6-digit code, so the destination receives credentials sufficient to fully take over the Facebook account. Additionally, on every login() call the package invokes checkAndUpdateVersion() (autoUpdate enabled by default), which shells out to npm i fca-uzair-dev@latest and, on failure, npm i https://github.com/MrUzairXxX-MTX-PROJECT/fca-uzair-dev against mutable HEAD with no version, tag, or SHA pin, then calls process.exit(1) to force a restart. Whoever controls that GitHub repository can push arbitrary code that will auto-install and execute on the consumer's machine on the next library load.
Reported by ghsa-malware Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
No fix · Remove and contain
npm uninstall fca-uzair-devSources