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

CVE-2017-13090 GNU Wget: heap overflow in HTTP protocol handling

GNU Wget: HTTP 프로토콜 처리에서의 힙 오버플로우 기계 번역

설명

retr.c:fd_read_body() 함수는 OK 응답을 처리할 때 호출됩니다. 1.19.2 이전에 wget에서 chunked 응답을 보내면 chunk parser는 strtol()을 사용하여 각 chunk의 길이를 읽지만 chunk 길이가 음수가 아닌 숫자인지 확인하지 않습니다. 그런 다음 코드는 MIN() 매크로를 사용하여 8192 바이트 조각으로 청크를 읽으려고 시도하지만, 결국 음의 청크 길이를 retr.c:fd_read()에 전달합니다. fd_read()가 int 인수를 취하면 청크 길이의 높은 32 비트가 버려지고 fd_read()는 완전히 공격자가 제어한 길이 인수를 남깁니다. 공격자는 할당된 버퍼 후에 malloc 메타데이터를 손상시킬 수 있습니다.

기계 번역

원문 보기

The retr.c:fd_read_body() function is called when processing OK responses. 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 read the chunk in pieces of 8192 bytes by using the MIN() macro, but ends up passing the negative chunk length to retr.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. The attacker can corrupt malloc metadata after the allocated buffer.

영향 받는 제품 제품 1개

  • GNU Project

    Wget

    해결 버전 있음

    영향 받는 버전

    • 1.19.2 미만

    해결 버전

    • 1.19.2 이상

참고 자료 5건

‹ 목록

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

도입 문의