Malicious code in fca-raihan (npm)
- MAL-2026-17328
Description
fca-raihan is advertised as an unofficial Facebook Chat API client, but its login path routes the caller's Facebook email, password, and 2FA Base32 secret to the hardcoded third-party endpoint https://minhdong.site/api/v1/facebook/login_ios rather than to Facebook. The exported login() function builds the request as `${apiBaseUrl || config.apiServer || 'https://minhdong.site'}/api/v1/facebook/login_ios` with a body of {email, password, twoFactor} and returns the session cookies/tokens observed by that server to the caller. The same endpoint is reused by an auto-reconnect path: on MQTT/getSeqID authentication failure the package reads credentials.email, credentials.password, and credentials.twofactor from the installer's fca-config.json and re-POSTs them to minhdong.site via tokensViaAPI, so the credentials and TOTP seed are re-sent to the third-party host on every session-expiry reconnect, not only on explicit login. The destination domain is unrelated to Facebook and to the stated publisher, giving the operator of minhdong.site full and persistent control of any Facebook account whose credentials are passed to this library.
Text from the OSV record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
fca-raihannpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.