MAL-2026-14481Malicious code in vite-plugin-image-tracker (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
1.0.0 | archived | — | — | VIP 下载 |
1.1.0 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | vite-plugin-image-tracker | 1.0.0 |
| npm | vite-plugin-image-tracker | 1.1.0 |
{"modified":"2026-08-25T08:22:33Z","published":"2026-08-25T08:10:28Z","schema_version":"1.7.4","id":"MAL-2026-14481","summary":"Malicious code in vite-plugin-image-tracker (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (019affd7dfc88e28b20dcce52fe53661a514582fb11c51871126b967399a01d8)\nThe package presents itself as a Vite image-tracking plugin. At build time its transformIndexHtml hook injects a script into every produced HTML page. In the end-user's browser that script reads user objects from sessionStorage and extracts account/username/userNo, phone number, and real name (`i.phone`, `i.realName`, `i.account`), builds a `u=...&a=...&p=...&n=...` payload, XOR-42 + base64 encodes it, and transmits it via sendBeacon, fetch, or an Image request. The reporting endpoint is not a plain URL: the plugin accepts `options.dsn` only as a base64+XOR(42) ciphertext (`var _rawDsn=atob(_c).split(\"\").map(function(c){return String.fromCharCode(c.charCodeAt(0)^42)}).join(\"\");`), and the injected browser script performs the same decode at runtime to reconstruct the destination. The package name and description ('image tracker') do not disclose collection of end-user personal data, and the destination is concealed from developers reading the plugin configuration or the built HTML. The obfuscation of the endpoint together with the specific PII fields harvested places this outside the shape of a legitimate telemetry SDK.\n","affected":[{"package":{"ecosystem":"npm","name":"vite-plugin-image-tracker"},"versions":["1.0.0","1.1.0"],"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":"845c58869507ac25f27bc546d84aedf04a508edec936f6c7340b1b12db274e91","tlsh":"4f81747b7063216496a2206b017f443ca3be89031c5ef564b95d911bafcc62c067eff9"}],"package_integrity":[{"filename":"vite-plugin-image-tracker-1.0.0.tgz","hashes":{"sha1":"15286d6e0b36fdc4d90f53401f0c48025ce26824","sha512_sri":"sha512-H58HNNMQIF/SW8pNpDEQEKjoFE4J345uSMxbdzpmCg6nPepB9TsBwFT3lFYvQVcASrMl65IgviADMv4ju8uWOQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/vite-plugin-image-tracker/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/vite-plugin-image-tracker/v/1.1.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018703","import_time":"2026-08-25T08:20:36.916902087Z","modified_time":"2026-08-25T08:10:37Z","sha256":"019affd7dfc88e28b20dcce52fe53661a514582fb11c51871126b967399a01d8","source":"amazon-inspector","versions":["1.0.0"]},{"id":"IN-MAL-2026-018702","import_time":"2026-08-25T08:20:36.833050917Z","modified_time":"2026-08-25T08:10:28Z","sha256":"8271d5e636d34aa5ced0e47b3067e12faf2ccccc28f7ec7f09d3913c4c948d53","source":"amazon-inspector","versions":["1.1.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0