진주성 블로그 방문하기
진주성 블로그 방문하기
보안 불필요한 HTTP Method 차단
2019.04.01 19:52
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 이뜬다. 혹은 에러페이지 뜸
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
140 | HP-UX NFS 설정 | 2017.09.07 | 2952 |
139 | HP-UX 서버 H/W Spec 조사 | 2017.09.07 | 1563 |
138 | HP-UX snmp 중지 설정 | 2017.09.07 | 6862 |
137 | HP-UX에서 rsyncd 를 이용한 백업 설정 | 2017.09.07 | 1365 |
136 | vsphere admin 문서 자료 | 2017.09.09 | 114 |
135 | Process Explorer - 윈도우용 프로세서, 메모리, TCP 모니터링용 | 2017.09.09 | 548 |
134 | 한글 putty | 2017.09.13 | 12000 |
133 | winscp for windows | 2017.09.13 | 118 |
132 | uptime 갑인가? | 2017.09.13 | 510 |
131 | win-sshfs for windows | 2017.09.13 | 7770 |
130 | 웹로직 forceshutdown 시키는 스크립트 | 2017.09.13 | 166 |
129 | 서버의 취약점 분석 할수 있는 도구들 | 2017.09.26 | 1719 |
128 | 서버 공격에 대한 기법을 소개합니다.(고전적인 방법) | 2017.09.26 | 2014 |
127 | 리눅스 기본 방화벽 iptable 요약정리 | 2017.09.26 | 1206 |
126 | 룰 기반의 IDS(침입탐지시스템) - snort | 2017.09.27 | 7681 |