1 line
4.2 KiB
JSON
1 line
4.2 KiB
JSON
{"schema_version":"1.9.2","id":"MAL-2026-13352","published":"2026-08-05T15:49:02Z","modified":"2026-11-18T13:30:05.346849602Z","aliases":["GHSA-x5g6-2wvp-v57q"],"summary":"Malicious code in stellar-api-core (npm)","details":"The same hardcoded admin injection (1489655840662093854) and the admin-panel path that returns users' Nakama tokens as token.json are present in versions 1.0.3 through 1.0.7. Versions 1.0.6 and 1.0.7 ship an index.js byte-identical to 1.0.5 (sha256 d474179bc987546968fb83896e91ffce1089efd11a894ae58366993cee79c943), including the permanent guild-invite exfiltration; 1.0.3 and 1.0.4 carry the admin backdoor without the invite exfiltration. Versions 1.0.0 to 1.0.2 do not inject the hardcoded admin.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (fd4c86bebaa61a9aada2c1686d68eb5119025ea4646426ea7da3db4ce4208707)\nThe package's constructor unconditionally appends a hardcoded Discord user ID (1489655840662093854) to the caller-supplied adminIds list, granting that account persistent admin access to every deployment of the bot. The bot's admin panel dropdown handler (stellar_panel_dropdown -> handleManualRefresh) returns users' Nakama access/refresh tokens as a Discord attachment (token.json), so the injected admin can retrieve installer/user credentials from a running deployment. In addition, two hardcoded Discord webhook URLs (discord.com/api/webhooks/1527809440084922462/... and discord.com/api/webhooks/1527807036350398687/...) receive, without disclosure or opt-out, permanent (maxAge:0, maxUses:0) invite links for every guild the bot is in or joins, plus notifications on each user token add/refresh/delete. The invite exfiltration lets the hardcoded admin join those guilds and then extract user tokens via the admin panel path.\n\n## Source: ghsa-malware (dcd48db37df1b630398970c926c1103bcf7ad4424ea700058ab4f45820f094f6)\nAny 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.\n","affected":[{"package":{"name":"stellar-api-core","ecosystem":"npm","purl":"pkg:npm/stellar-api-core"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.3","1.0.4","1.0.5","1.0.6","1.0.7"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"d474179bc987546968fb83896e91ffce1089efd11a894ae58366993cee79c943","tlsh":"9a52946616fb26350167245b9e6bb0052136e10b644cd9a57f5ce3dc8fcc120eafbbac"}],"package_integrity":[{"filename":"stellar-api-core-1.0.5.tgz","hashes":{"sha1":"a6df4f014aa95b1b408932e3890fd18013281894","sha512_sri":"sha512-5iQapjXvFMpWeCR/PrQzCDqq95KR1o1WJuZnbVL5uvwGkB7zAgbuBmCWbA0SmxTyQSKzG2EDHTU+GUTD1ZiN3w=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/stellar-api-core/MAL-2026-13352.json"}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/stellar-api-core/v/1.0.5"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-x5g6-2wvp-v57q"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015800","import_time":"2026-08-05T16:13:46.651608913Z","modified_time":"2026-08-05T15:49:02Z","sha256":"fd4c86bebaa61a9aada2c1686d68eb5119025ea4646426ea7da3db4ce4208707","source":"amazon-inspector","versions":["1.0.5"]},{"id":"GHSA-x5g6-2wvp-v57q","import_time":"2026-11-18T13:18:16.682157835Z","modified_time":"2026-11-18T13:16:57Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"dcd48db37df1b630398970c926c1103bcf7ad4424ea700058ab4f45820f094f6","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"wormsign","contact":["https://x.com/w0rmsign"],"type":"FINDER"}]} |