ГлавнаяБаза уязвимостей БДУ → BDU:2022-02203
7.8высокая

BDU:2022-02203 (CVE-2018-13982)

Уязвимость реализации метода isTrustedResourceDir класса Smarty_Security обработчика шаблонов для PHP Smarty, позволяющая нарушителю получить несанкционированный доступ к защищаемой информации
Опубликовано: 2022-04-13
Описание

Уязвимость реализации метода isTrustedResourceDir класса Smarty_Security обработчика шаблонов для PHP Smarty связана с ошибками ограничения имени пути к каталогу с ограниченным доступом Эксплуатация уязвимости может позволить нарушителю, действующему удаленно, получить несанкционированный доступ к защищаемой информации

Затрагиваемое ПО и версии
Debian GNU/Linux (9)Ubuntu (18.04 LTS)Ubuntu (21.10)Smarty (до 3.1.33)
Способ устранения

Использование рекомендаций:
Для Smarty:
https://github.com/smarty-php/smarty/blob/master/CHANGELOG.md
https://github.com/smarty-php/smarty/commit/2e081a51b1effddb23f87952959139ac62654d50
https://github.com/smarty-php/smarty/commit/8d21f38dc35c4cd6b31c2f23fc9b8e5adbc56dfe
https://github.com/smarty-php/smarty/commit/c9dbe1d08c081912d02bd851d1d1b6388f6133d1
https://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8

Для Debian:
https://lists.debian.org/debian-lts-announce/2021/04/msg00004.html
https://lists.debian.org/debian-lts-announce/2021/04/msg00014.html
https://lists.debian.org/debian-lts-announce/2021/10/msg00015.html

Для Ubuntu.:
https://ubuntu.com/security/notices/USN-5348-1

Оценка CVSS
Балл7.8 — высокая опасность
Источники и патчи
https://vuldb.com/?id.124207https://nvd.nist.gov/vuln/detail/CVE-2018-13982https://github.com/sbaresearch/advisories/tree/public/2018/SBA-ADV-20180420-01_Smarty_Path_Traversalhttps://github.com/smarty-php/smarty/commit/2e081a51b1effddb23f87952959139ac62654d50https://github.com/smarty-php/smarty/commit/8d21f38dc35c4cd6b31c2f23fc9b8e5adbc56dfehttps://github.com/smarty-php/smarty/commit/bcedfd6b58bed4a7366336979ebaa5a240581531https://github.com/smarty-php/smarty/commit/c9dbe1d08c081912d02bd851d1d1b6388f6133d1https://github.com/smarty-php/smarty/commit/f9ca3c63d1250bb56b2bda609dcc9dd81f0065f8
Проверьте безопасность своего сайта и почты → Полная проверка домена