kcve.ai취약점 정보 · 내 자산 확인

CVE-2017-1000254 libcurl may read outside of a heap allocated buffer when doing FTP. When libcurl connects to an FTP…

설명

libcurl은 FTP를 할 때 힙 할당 버퍼의 외부에서 읽을 수 있다. libcurl이 FTP 서버에 접속하여 성공적으로 로그인할 때(익명인지 여부), `PWD` 명령을 사용하여 현재 디렉토리를 서버에게 요청한다. 그런 다음 서버는 이중 따옴표 안에 경로를 포함하는 257 응답으로 응답합니다. 반환된 경로 이름은 이후의 사용을 위해 libcurl에 의해 보관됩니다. 이 디렉토리명에 대한 문자열 파서의 결함으로 인해, 디렉토리명은 이렇게 전달되지만, 이중 인용문을 닫지 않으면 libcurl은 그 이름을 가진 버퍼에 후행 NUL 바이트를 추가하지 않게 된다. libcurl이 나중에 문자열에 접근할 때, 할당된 힙 버퍼를 넘어서서 읽을 수 있고 버퍼를 넘어서서 잘못 접근하거나, 그것이 경로의 일부라고 생각하면서, 충돌할 수 있다. 악의적인 서버는 이 사실을 악용하여 libcurl 기반 클라이언트가 작업하는 것을 효과적으로 방지할 수 있습니다. PWD 명령은 항상 새 FTP 연결에서 발급되며 오류로 인해 segfault가 발생할 가능성이 높습니다. 이 문제가 오랫동안 발견되지 않은 채로 남아 있다는 간단한 사실은 비정상적인 PWD 응답이 양성 서버에서 드문 것을 암시 할 수 있습니다. 우리는 이 결함의 어떠한 악용도 알지 못합니다. 이 버그는 커밋 [415d2e7cb7](https://github.com/curl/commit/415d2e7cb7), 2005년 3월에 도입되었다. libcurl 버전 7.56.0에서 파서는 항상 0으로 문자열을 종료하지만 마지막 이중 인용문으로 올바르게 종료되지 않으면 거부합니다.

원문 보기

libcurl may read outside of a heap allocated buffer when doing FTP. When libcurl connects to an FTP server and successfully logs in (anonymous or not), it asks the server for the current directory with the `PWD` command. The server then responds with a 257 response containing the path, inside double quotes. The returned path name is then kept by libcurl for subsequent uses. Due to a flaw in the string parser for this directory name, a directory name passed like this but without a closing double quote would lead to libcurl not adding a trailing NUL byte to the buffer holding the name. When libcurl would then later access the string, it could read beyond the allocated heap buffer and crash or wrongly access data beyond the buffer, thinking it was part of the path. A malicious server could abuse this fact and effectively prevent libcurl-based clients to work with it - the PWD command is always issued on new FTP connections and the mistake has a high chance of causing a segfault. The simple fact that this has issue remained undiscovered for this long could suggest that malformed PWD responses are rare in benign servers. We are not aware of any exploit of this flaw. This bug was introduced in commit [415d2e7cb7](https://github.com/curl/curl/commit/415d2e7cb7), March 2005. In libcurl version 7.56.0, the parser always zero terminates the string but also rejects it if not terminated properly with a final double quote.

영향 받는 제품 제품 1개

  • haxx

    libcurl

    NVD 기준

    영향 받는 버전

    • 7.10
    • 7.10.1
    • 7.10.2
    • 7.10.3
    • 7.10.4
    • 7.10.5
    • 7.10.6
    • 7.10.7
    외 42개 구간 펼치기
    • 7.10.8
    • 7.11.0
    • 7.11.1
    • 7.11.2
    • 7.12.0
    • 7.12.1
    • 7.12.2
    • 7.12.3
    • 7.13.0
    • 7.13.1
    • 7.13.2
    • 7.14.0
    • 7.14.1
    • 7.15.0
    • 7.15.1
    • 7.15.2
    • 7.15.3
    • 7.15.4
    • 7.15.5
    • 7.16.0
    • 7.16.1
    • 7.16.2
    • 7.16.3
    • 7.16.4
    • 7.17.0
    • 7.17.1
    • 7.18.0
    • 7.18.1
    • 7.18.2
    • 7.19.0
    • 7.19.1
    • 7.19.2
    • 7.19.3
    • 7.19.4
    • 7.19.5
    • 7.19.6
    • 7.19.7
    • 7.20.0
    • 7.20.1
    • 7.21.0
    • 7.21.1
    • 7.21.2

    원천에 67개 더 있음

    해결 버전

    해결된 버전 정보가 없습니다.

참고 자료 11건

‹ 목록

점검 지원 범위 문의

도입 문의