You cannot see this page without javascript.

진주성 블로그 방문하기

보안 불필요한 HTTP Method 차단

2019.04.01 19:52

구피천사 조회 수:1168

CMD창에 

telnet ip주소 port ( telnet 10.10.10.10 8080) 을 치면 cmd창이 깜박이는 커서가 나온다.

 

OPTIONS / HTTP/1.0

엔터 2번

 

을 입력하면 허용되어 있는 METHOD 리스트가 나옵니다.

 

 

Apache 에서 차단 httpd.conf 에서

 

TraceEnable off 로 설정

 

<Directory />

     <LimitExcept GET POST>

     Order allow, deny

     Deny from all

     </LimitExcept>

</Directory>

 

or

 

<Directory />

     <Limit GET POST>

     Order deny, allow

     Allow from all

     </Limit>

</Directory>

 

 

 

Tomcat, WEBLOGIC등

메소드를 차단하기 위해서는 ./tomcat/conf/web.xml ./WEB-INF/web.xml 에 아래 코드를 추가한다.

 

<security-constraint>
        <display-name>Forbidden</display-name>
        <web-resource-collection>
            <web-resource-name>Forbidden</web-resource-name>
            <url-pattern>/*</url-pattern>
            <http-method>PUT</http-method>
            <http-method>HEAD</http-method>
            <http-method>DELETE</http-method>
            <http-method>TRACE</http-method>
            <http-method>OPTIONS</http-method>
        </web-resource-collection>
        <auth-constraint />
    </security-constraint>
 

OPTIONS / HTTP/1.0

실행하면

 

HTTP/1.1 403 Forbidden 이뜬다. 혹은 에러페이지 뜸

 

 

번호 제목 날짜 조회 수
110 GeoIP 를 이용한 Apache 설정 - 국가별 접속 차단 2018.06.13 657
109 HP-UX 볼륨 추가 방법 2017.09.07 653
108 TCP 상태전이 2017.11.01 614
107 포렌식 복사 도구 – forecopy_handy 2017.11.11 598
106 route access-list file 2017.10.30 590
105 BCP 2017.11.01 589
104 HTTP Status Code HTTP 상태 코드 2018.05.03 573
103 개발보안 file 2017.11.01 563
102 SUN 솔라리스 보안취약점 조치 방안 2018.03.05 548
101 Process Explorer - 윈도우용 프로세서, 메모리, TCP 모니터링용 file 2017.09.09 548
100 ftp 보안 취약점및 대책 2017.11.05 538
99 [python] MySQL 사용법 예제 2018.10.24 523
98 uptime 갑인가? file 2017.09.13 510
97 HPUX 보안설정 가이드 file 2017.08.25 503
96 Oracle asm file 2017.08.24 494
진주성 블로그 방문하기
CLOSE