Apache HTTP Server

Apache 2.4.10 이하 대상 CVE-2014-3581 해결 소스 (cache_util.c)

aappsroot·2014년 10월 14일·조회 6,078

1. 개요

https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3581

Apache 2.4.10 이하 버전의 보안 취약점 사항인 CVE-2014-3581을 해결하기 위한 소스 파일(cache_util.c)이 올라와 있습니다.


2. 소스 파일

httpd/httpd/branches/2.4.x/modules/cache/cache_util.c

  • 이전 소스 
     if (r->content_type
             && !apr_table_get(headers_out, "Content-Type")) {
         apr_table_setn(headers_out, "Content-Type",
                        ap_make_content_type(r, r->content_type));
     }

     if (r->content_encoding
  • 변경 소스
     if (r->content_type
             && !apr_table_get(headers_out, "Content-Type")) {
         const char *ctype = ap_make_content_type(r, r->content_type);
         if (ctype) {
             apr_table_setn(headers_out, "Content-Type", ctype);
         }
     }

     if (r->content_encoding

 

 

댓글 1

로그인 후 댓글을 남길 수 있습니다.

  • 강철지그강철지그· 2014년 10월 16일
    http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3581