kcve.ai취약점 정보 · 내 서버 확인

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건

‹ 목록

운영 중인 서버의 점검 지원 범위가 궁금하면

도입 문의