GLSA 200312-07: Two buffer overflows in lftp

Опасность:низкая
Заголовок:Two buffer overflows in lftp
Дата:13.12.2003
Ошибки: #35866
ID:200312-07

Сводка

Two buffer overflow problems are found in lftp that, in case the user visits a malicious ftp server, could lead to malicious code being executed.

Назначение

lftp is a multithreaded command-line based FTP client. It allows you to execute multiple commands simultaneously or in the background. If features mirroring capabilities, resuming downloads, etc.

Уязвимые пакеты

Пакет Уязвимый Нетронутый Архитектура(ы)
net-ftp/lftp < 2.6.10 >= 2.6.10 All supported architectures

Описание

Two buffer overflows exist in lftp. Both can occur when the user connects to a malicious web server using the HTTP or HTTPS protocol and issues lftp's "ls" or "rels" commands.

Ulf Harnhammar explains:

Technically, the problem lies in the file src/HttpDir.cc and the functions try_netscape_proxy() and try_squid_eplf(), which both have sscanf() calls that take data of an arbitrary length and store it in a char array with 32 elements. (Back in version 2.3.0, the problematic code was located in some other function, but the problem existed back then too.) Depending on the HTML document in the specially prepared directory, buffers will be overflown in either one function or the other.

Воздействие

When a user issues "ls" or "rels" on a malicious server, the tftp application can be tricked into running arbitrary code on the user his machine.

Обход

There is no workaround available.

Решение

All Gentoo users who have net-ftp/lftp installed should update to use version 2.6.0 or higher using these commands:

    # emerge sync
    # emerge -pv '>=net-ftp/lftp-2.6.10'
    # emerge '>=net-ftp/lftp-2.6.10'
    # emerge clean

Ссылки

Наличие

Этот GLSA и любые обновления для нее доступны для просмотра на сайте Gentoo Security: http://security.gentoo.org/glsa/glsa-200312-07.xml

Опасения?

Безопасность является одной из главных задач Gentoo Linux и первостепенное значение обеспечить конфиденциальность и безопасность машин наших пользователей. Любые соображения безопасности должны быть адресованы security@gentoo.org или в качестве альтернативы, вы можете сообщить об ошибке на https://bugs.gentoo.org.

Лицензия

Copyright 2010 Gentoo Foundation, Inc; текст ссылки принадлежит его владельцу(ам). Содержание этого документа распространяется на условиях лицензии Creative Commons - Attribution / Share Alike.

Спасибо!