Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2019-18634

Опубликовано: 30 янв. 2020
Источник: redhat
CVSS3: 7.8
EPSS Высокий

Описание

In Sudo before 1.8.26, if pwfeedback is enabled in /etc/sudoers, users can trigger a stack-based buffer overflow in the privileged sudo process. (pwfeedback is a default setting in Linux Mint and elementary OS; however, it is NOT the default for upstream and many other packages, and would exist only if enabled by an administrator.) The attacker needs to deliver a long string to the stdin of getln() in tgetpass.c.

A flaw was found in the Sudo application when the ’pwfeedback' option is set to true on the sudoers file. An authenticated user can use this vulnerability to trigger a stack-based buffer overflow under certain conditions even without Sudo privileges. The buffer overflow may allow an attacker to expose or corrupt memory information, crash the Sudo application, or possibly inject code to be run as a root user.

Отчет

This flaw can only be exploited if the option pwfeedback is enabled in sudo configuration. This option is not enabled by default in any version of Red Hat Enterprise Linux. The sudo packages distributed with Red Hat Enterprise Linux versions are compiled using gcc's stack-protector feature. The "Stack Smashing Protection" may help mitigate code execution attacks for this flaw. Red Hat Enterprise Linux 5 is not affected as it doesn't include the commit which introduced the vulnerability.

Меры по смягчению последствий

Please follow the steps bellow as mitigation:

  1. Check the default properties set for sudo by running:
$ sudo -l [sudo] password for user: Matching Defaults entries for users on localhost: !visiblepw, pwfeedback, always_set_home, match_group_by_gid, always_query_group_plugin, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/sbin\:/bin\:/usr/sbin\:/usr/bin
  1. If pwfeedback is enabled as shown above, edit your /etc/sudoers file, changing the line:
Defaults pwfeedback

To:

Defaults !pwfeedback

This will disable visual feedback on password typing, making sure the attack is not possible anymore.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 5sudoNot affected
Red Hat Enterprise Linux 6sudoFixedRHSA-2020:072605.03.2020
Red Hat Enterprise Linux 7sudoFixedRHSA-2020:054019.02.2020
Red Hat Enterprise Linux 8sudoFixedRHSA-2020:048714.02.2020
Red Hat Enterprise Linux 8.0 Update Services for SAP SolutionssudoFixedRHSA-2020:050914.02.2020

Показывать по

Дополнительная информация

Статус:

Important
Дефект:
CWE-121
https://bugzilla.redhat.com/show_bug.cgi?id=1796944sudo: Stack based buffer overflow when pwfeedback is enabled

EPSS

Процентиль: 99%
0.86666
Высокий

7.8 High

CVSS3

Связанные уязвимости

CVSS3: 7.8
ubuntu
около 6 лет назад

In Sudo before 1.8.26, if pwfeedback is enabled in /etc/sudoers, users can trigger a stack-based buffer overflow in the privileged sudo process. (pwfeedback is a default setting in Linux Mint and elementary OS; however, it is NOT the default for upstream and many other packages, and would exist only if enabled by an administrator.) The attacker needs to deliver a long string to the stdin of getln() in tgetpass.c.

CVSS3: 7.8
nvd
около 6 лет назад

In Sudo before 1.8.26, if pwfeedback is enabled in /etc/sudoers, users can trigger a stack-based buffer overflow in the privileged sudo process. (pwfeedback is a default setting in Linux Mint and elementary OS; however, it is NOT the default for upstream and many other packages, and would exist only if enabled by an administrator.) The attacker needs to deliver a long string to the stdin of getln() in tgetpass.c.

CVSS3: 7.8
debian
около 6 лет назад

In Sudo before 1.8.26, if pwfeedback is enabled in /etc/sudoers, users ...

suse-cvrf
почти 6 лет назад

Security update for sudo

suse-cvrf
почти 6 лет назад

Security update for sudo

EPSS

Процентиль: 99%
0.86666
Высокий

7.8 High

CVSS3