node-tar — библиотека для манипулирования архивом tar для Node.js. От 7.5.5 до 8.0.0 symlink target выходит из каталога извлечения через цепочку in-archive symlink. Злоумышленник, который поставляет tarball, может сделать tar.x() с параметрами по умолчанию оставлять символические ссылки внутри каталога извлечения, которые указывают на любой путь в системе. tar сам по себе не записывается через них, но любое последующее чтение или запись извлеченных файлов приложением следует за ними: демонстрация перезаписывает файл вне каталога извлечения и решает ссылку на /etc/hostname.
Это дает произвольный файл чтения и записи как извлечения пользователя. Эта проблема исправлена в версии 8.0.0.
Показать оригинальное описание (EN)
node-tar is a tar archive manipulation library for Node.js. From 7.5.5 until 8.0.0, symlink target escapes the extraction directory through an in-archive symlink chain. An attacker who supplies a tarball can make tar.x() with default options leave symlinks inside the extraction directory that point to any path on the system. tar itself does not write through them, but any later read or write of the extracted files by the application follows them: the demonstration overwrites a file outside the extraction directory and resolves a link to /etc/hostname. This gives arbitrary file read and write as the extracting user. This issue is fixed in version 8.0.0.
Характеристики атаки
Последствия
Строка CVSS v4.0