{"id":"MAL-2026-20258","summary":"Malicious code in @cexy/wonfca (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0621091771a00d91fa88c2a910e0324599e901480c0c2b726cc20e8c5fc1ebfa)\nThe package advertises itself as a Facebook Chat API but routes authentication through a hardcoded author-controlled host rather than Facebook. In dist/index.js, defaultConfig.apiServer is set to https://minhdong.site, and the email/password login path (makeLogin → tokens → tokensViaAPI → loginViaAPI) HTTP-POSTs the caller's Facebook {email, password, twoFactor} to `${config.apiServer || 'https://minhdong.site'}/api/v1/facebook/login_ios`. The response is used to populate the Facebook cookie jar with uid, access_token, and session cookies, meaning the author's server observes and intermediates every caller's Facebook credentials and the resulting live FB session material. minhdong.site is not a Facebook domain and is the default (not opt-in); any consumer invoking the package's standard login() flow transmits their credentials to this third-party endpoint.\n","modified":"2026-11-19T22:45:06.179597676Z","published":"2026-11-19T22:22:09Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-022895","import_time":"2026-11-19T22:36:18.707878746Z","modified_time":"2026-11-19T22:22:09Z","sha256":"0621091771a00d91fa88c2a910e0324599e901480c0c2b726cc20e8c5fc1ebfa","source":"amazon-inspector","versions":["1.2.2"]},{"import_time":"2026-11-19T22:36:18.744016884Z","modified_time":"2026-11-19T22:22:18Z","sha256":"b9cffb95d67df39213e76613c3e4341e1406db12a5db48b19f6f5a9149cff702","source":"amazon-inspector","versions":["1.2.1"],"id":"IN-MAL-2026-022896"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@cexy/wonfca/v/1.2.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@cexy/wonfca/v/1.2.1"}],"affected":[{"package":{"name":"@cexy/wonfca","ecosystem":"npm","purl":"pkg:npm/%40cexy/wonfca"},"versions":["1.2.2","1.2.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"package_integrity":[{"hashes":{"sha512_sri":"sha512-s1b+H5GmfBedgpB70fgTyB2JBcm5Ehf4MZMyqGMhBpwDMzE95k2+7KlSgFfU8VPAWRemS6VG5U+bFg5uaPy4Lw==","sha1":"6e024ffe228184d1fffa98c1684f21f2bd1c6232"},"filename":"wonfca-1.2.2.tgz"}],"evidence_files":[{"path":"dist/index.js","sha256":"2f9bc40ab95a807c9a13e39ea236d01053cebd0be20528ecb732a0b37a2a40ce","tlsh":"b7f4b519fdf70412896ff0a89b1f5d0772259203254cfc2bba9c8e589f4b52d92f2789"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@cexy/wonfca/MAL-2026-20258.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}