CVE-2017-13089 GNU Wget: stack overflow in HTTP protocol handling
GNU Wget: HTTP 프로토콜 처리에서 스택 오버플로우 기계 번역
설명
http.c:skip_short_body() 함수는 리다이렉션을 처리할 때와 같이 어떤 상황에서는 호출됩니다. 1.19.2 이전에 wget에서 chunked 응답을 보내면 chunk parser는 strtol()을 사용하여 각 chunk의 길이를 읽지만 chunk 길이가 음수가 아닌 숫자인지 확인하지 않습니다. 그런 다음 코드는 MIN() 매크로를 사용하여 512 바이트 조각으로 청크를 건너뛰려고 하지만, 결국 음의 청크 길이를 connect.c:fd_read()에 전달합니다. fd_read()가 int 인수를 취하면 청크 길이의 높은 32 비트가 버려지고 fd_read()는 완전히 공격자가 제어한 길이 인수를 남깁니다.
기계 번역
원문 보기
The http.c:skip_short_body() function is called in some circumstances, such as when processing redirects. When the response is sent chunked in wget before 1.19.2, the chunk parser uses strtol() to read each chunk's length, but doesn't check that the chunk length is a non-negative number. The code then tries to skip the chunk in pieces of 512 bytes by using the MIN() macro, but ends up passing the negative chunk length to connect.c:fd_read(). As fd_read() takes an int argument, the high 32 bits of the chunk length are discarded, leaving fd_read() with a completely attacker controlled length argument.
영향 받는 제품 제품 1개
-
해결 버전 있음
GNU Project
Wget
영향 받는 버전
- 1.19.2 미만
해결 버전
- 1.19.2 이상
참고 자료 5건
- access.redhat.com https://access.redhat.com/errata/RHSA-2017:3075 (새 창)
- security.gentoo.org https://security.gentoo.org/glsa/201711-06 (새 창)
- debian.org http://www.debian.org/security/2017/dsa-4008 (새 창)
- securityfocus.com http://www.securityfocus.com/bid/101592 (새 창)
- securitytracker.com http://www.securitytracker.com/id/1039661 (새 창)