커피닉스, 시스템 엔지니어의 쉼터
  데몬(웹서버,...)의 버전 정보를 숨기는 방법 (글 좋은진호, 홍석범) 작성일 : 2004/01/02 00:43
 
  • 글쓴이 : 좋은진호 ( http://coffeenix.net/ )
  • 조회수 : 15774
     
    제  목 : 아파치에서 ServerSignature 설정으로 버전 숨기기
    작성자 : 좋은진호(truefeel, http://coffeenix.net/ )

    아래 홍석범님이 쓰신 글중에 Apache 웹서버 부분에서 하나만 추가하겠다.
    ServerSignature 설정으로 Error 페이지등에서 보게되는 웹서버 정보를 숨길 수 있다.
    물론 ErrorDocument 설정으로 페이지를 꾸밀 수도 있지만.

    [ ServerSignature on 설정시 (기본) ]



    [ ServerSignature off 설정시 ]



    ------------------------------------------------------------------------------------
    * 아래글 출처 : sec-info 메일링 리스트

    각 OS의 버전 및 정보를 숨기는 방법
    From: Sukbum Hong (antihong@tt.co.kr)
    Date: Thu Sep 13 2001 - 17:53:26 KST

    ------------------------------------------------------------------------------------

    안녕하십니까?

    오늘과내일의 홍석범입니다.

    원격지의 OS 및 각종 데몬에 대한 버전 정보를 숨기거나 위조하는 방법에 대한
    설명입니다.
    주로 소스를 수정하거나 config 에서 지원이 되는 경우
    config 파일에서 설정하는 방법도 있습니다.
    참고하시기 바랍니다.

    감사합니다.

    ### Apache 웹서버
    (1) 소스 수정
    src/include/httpd.h :
    #define SERVER_BASEVERSION "Apache/[x.x.x.]"

    (2) Conf 설정
    httpd.conf 파일에서
    ServerTokens 설정

    ServerTokens Prod[uctOnly]
      --> Server: Apache
    ServerTokens Min[imal]
      --> Server: Apache/1.3.0
    ServerTokens OS
      --> Server: Apache/1.3.0 (Unix)
    ServerTokens Full (or not specified)
      --> Server: Apache/1.3.0 (Unix) PHP/3.0 MyMod/1.2

    ### Proftpd

    Conf 설정
    proftpd.conf 파일에서
    ServerIdent on "[x.x.x]"

    ### Sendmail
    (1) 소스 수정
    sendmail/version.c
    char Version[] = "[x.x.x]";
    (2) Conf 설정
    /etc/sendmail.cf:
    # SMTP initial login message
    O SmtpGreetingMessage=$j [x.x.x]

    ### Bind
    Conf 설정
    /etc/named.conf 파일에서
    options {
            directory "/var/named";
            version "x.x.x";
    };

    ### SSH1/OpenSSH
    소스 수정
    version.h 파일에서
    #define SSH_VERSION "[x.x.x]"

    ### SSH2
    소스 수정
    apps/ssh/ssh2version.h 파일에서
    #define SSH2_VERSION "[x.x.x]"

    ### IMAP (imapd,ipop2d,ipop3d)
    소스 수정
    src/imapd/imapd.c 파일에서 char *version = "[x.x.x]";
    src/ipopd/ipop2d.c 파일에서 char *version = "[x.x.x]";
    src/ipopd/ipop3d.c 파일에서 char *version = "[x.x.x]";

    ### O.S.-Guessing Linux (2.2.x)
    kernel patch: KOSF (Kernel Operation System Faker)
    http://linuxsecurity.com.br/tools/patch/linux/kosf.tar.gz

    ### O.S.-Guessing Linux (2.4.x)
    http://ippersonality.sourceforge.net/
    CONFIG_IP_NF_PERS patch.
    ipt_PERS http://ippersonality.sourceforge.net/doc/ippersonality-en.html

    ### Microsoft Windows NT registry
    http://www.linuxsecurity.com.br/info/microsoft/obscurity.nt.txt

    * 참고 사항
      웹서버 헤더에서 PHP 버전 정보 숨기기 (글 좋은진호)
      http://coffeenix.net/board_view.php?bd_code=291


    커피닉스, 시스템 엔지니어의 쉼터 / URL : http://coffeenix.net/board_view.php?bd_code=163