cvelo
P2 · HighMalware

Malicious code in abir-fca (npm)

  • GHSA-5rhq-849p-frrr

Description

Show the whole description

abir-fca is an unofficial Facebook Chat API wrapper whose login path silently relays caller-supplied Facebook credentials to an author-operated third-party server. The exported `loginViaAPI` / `tokensViaAPI` functions accept the user's Facebook email, password, and optional 2FA token and POST them to the configured `apiServer`, whose hardcoded default is `https://minhdong.site` (shipped `fca-config.example.json` uses `https://donixdev.com`). Facebook authentication would normally go directly to Facebook's own endpoints; here the plaintext account password is sent to a non-Facebook, non-first-party host before any Facebook session is established. The README presents the package as a local Facebook client and does not disclose that credentials transit a third-party proxy, so callers using the advertised login API have no indication their Facebook account password is being handed to the package author. The destination is hardcoded in the shipped bundle at dist/index.js (around lines 15593 and 25624) and is author-controlled rather than caller-configured by default. In addition, the package ships a load-time auto-update path (`checkForPackageUpdate` / `runConfiguredUpdateCheck`) enabled by default in the example config (`checkUpdate.enabled: true`, `install: true`) that uses `child_process`/`execFile` to re-install `abir-fca` from npm while the host process is running, so any future version the author publishes is pulled and executed without the installer re-running `npm install`. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/295d164deb82a5028f980f5b49bb4c518111003f/osv/malicious/npm/abir-fca/MAL-2026-20345.json))

Text from the GitHub Advisory record.

Recommendation

Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.

Affected

  • abir-fcanpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.