security

Total 112
Today 0
profile_image
ino
02-01-10 16:03 0개 2,571회
SSH1 SSH Daemon Logging Failure Vulnerability
http://www.certcc.or.kr/advisory/ka2001/ka2001-008.txt



==========================================================================

CERTCC-KR 권고문: KA-2001-008

SSH1 SSH Daemon Logging Failure Vulnerability

--------------------------------------------------------------------------



최초작성일 : 2001/2/13

갱신일 :

출처 : [Bugtraq 2345] - SSH1 SSH Daemon Logging Failure Vulnerability

http://www.securityfocus.com/vdb/bottom.html?vid=2345

작성자 : 박현미, hmpark@certcc.or.kr

-- 제목 --------------

SSH1 SSH 데몬 로깅 실패 취약점



-- 해당 시스템 -------

SSH Communications Security ssh 1.2.30가 설치된

- Sun Solaris 8.0

- Sun Solaris 7.0

- Sun Solaris 2.6

- Sun Solaris 2.5.1

- S.u.S.E. Linux 7.0

- S.u.S.E. Linux 6.4

- RedHat Linux 7.0

- RedHat Linux 6.2

- OpenBSD OpenBSD 2.8

- MandrakeSoft Linux Mandrake 7.2

- MandrakeSoft Linux Mandrake 7.1

- MandrakeSoft Linux Mandrake 7.0

- IBM AIX 4.3.3

- IBM AIX 4.3.2

- IBM AIX 4.3.1

- HP HP-UX 11.11

- HP HP-UX 11.0

- HP HP-UX 10.20

- FreeBSD FreeBSD 4.2

- FreeBSD FreeBSD 3.5.1

- Digital (Compaq) TRU64/DIGITAL UNIX 5.0

- Digital (Compaq) TRU64/DIGITAL UNIX 4.0g

- Debian Linux 2.2

- Caldera eServer 2.3.1

- Caldera eDesktop 2.4

- Caldera OpenLinux 2.4

- BSDI BSD/OS 4.0.1

- BSDI BSD/OS 4.0

- BSDI BSD/OS 3.1



-- 설명---------------

SSH1은 Secure Shell 통신 프로토콜을 구현한 것으로 네트웍상의 트래픽의 무결성을 보호하기 위하여 IETF에 의해 명세된 프로토콜로 버전 1이다.

로그인시 SSH1 데몬은 기본적으로 4번 패스워드 추측(guessing)이 성공하지 못했을 경우에 로그인을 허용하지 않는다. 그런데 SSH1 데몬의 구현상 문제점으로 인하여 SSH1의 로깅루틴에서 4번이상 패스워드 추측시도를 탐지하지 못 하는 취약점이 존재한다.

그래서 악의적인 의도를 가진 원격 사용자가 시스템에 대하여 계속적으로 brute force 공격을 시도할 수 있다. 만약 충분한 시간과 좋은 패스워드 사전이 있다면 이 공격으로 인하여 일반 계정 뿐 아니라 root 계정도 침해당할 수 있다.



-- 해결책 ------------

1. ssh-1.2.30의 sshd.c 파일을 다음과 같이 패치한다.



@@ -2408,7 +2408,7 @@

remote_user_name = client_user;

break;

}

- debug("Rhosts authentication failed for '%.100s', remote '%.100s', host '%.200s'.",

+ log_msg("Rhosts authentication failed for '%.100s', remote '%.100s', host '%.200s'.",

user, client_user, get_canonical_hostname());

xfree(client_user);

break;

@@ -2469,7 +2469,7 @@

mpz_clear(&client_host_key_n);

break;

}

- debug("RhostsRSA authentication failed for '%.100s', remote '%.100s', host '%.200s'.",

+ log_msg("RhostsRSA authentication failed for '%.100s', remote '%.100s', host '%.200s'.",

user, client_user, get_canonical_hostname());

xfree(client_user);

mpz_clear(&client_host_key_e);

@@ -2500,7 +2500,7 @@

break;

}

mpz_clear(&n);

- debug("RSA authentication for %.100s failed.", user);

+ log_msg("RSA authentication for %.100s failed.", user);

}

break;



@@ -2633,7 +2633,7 @@

authenticated = 1;

break;

} else {

- debug("TIS authentication for %.100s failed",user);

+ log_msg("TIS authentication for %.100s failed",user);

memset(password, 0, strlen(password));

xfree(password);

break;

@@ -2672,7 +2672,7 @@

if (password_attempts > 0)

{

/* Log failures if attempted more than once. */

- debug("Password authentication failed for user %.100s from %.100s.",

+ log_msg("Password authentication failed for user %.100s from %.100s.",



user, get_canonical_hostname());

}

password_attempts++;

@@ -2693,7 +2693,7 @@

authenticated = 1;

break;

}

- debug("Password authentication for %.100s failed.", user);

+ log_msg("Password authentication for %.100s failed.", user);

memset(password, 0, strlen(password));

xfree(password);

break;



2. ssh 1.2.31로 업그레이드 한다.

ftp://ftp.ssh.com/pub/ssh/ssh-1.2.31.tar.gz



3. root 권한으로 로그인 하지 못하도록 설정한다.



== 기타 ==============

SSHD-1 Logging Vulnerability

http://www.securityfocus.com/templates/archive.pike?list=1&msg=Pine.BSO.4.21.0102051340220.30687-100000@spam.thegeekempire.net



----------------------



CERTCC-KR 보안 권고문은 han.comp.security 뉴스그룹과

sec-info@certcc.or.kr 메일링리스트를 통해 배포되며,

CERTCC-KR홈페이지 http://www.certcc.or.kr에서도 볼 수 있습니다.



이번 권고문에 대한 오류와 추가사항은 박현미(hmpark@certcc.or.kr)연구원

에게 문의하시기 바랍니다.



-------------------------------------------------------------------

한국정보보호센터(Korea Information Security Agency),

Computer Emergency Response Team Coordination Center , CERTCC-KR

전화: 118 (지방 02-118) Email: cert@certcc.or.kr

====================================================================

댓글목록

등록된 댓글이 없습니다.