진주성 블로그 방문하기
진주성 블로그 방문하기
보안 불필요한 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 | IPv4, IPv6 | 2017.11.01 | 108 |
139 | weblogic wlst 기반 암호화파일 복호화 (AES) | 2021.04.06 | 109 |
138 | Weblogic 보안설정 | 2017.08.25 | 111 |
137 | HTTP Header | 2017.11.01 | 112 |
136 | 법규 - 추가작성 | 2017.11.01 | 113 |
135 | 디지털 컨텐츠 보호 | 2017.11.01 | 113 |
134 | vsphere admin 문서 자료 | 2017.09.09 | 114 |
133 | /etc/xinetd.conf 설정 값 | 2017.11.09 | 114 |
132 | windows_2008_security_guide.pdf | 2017.08.25 | 116 |
131 | 쉘쇼크(Shellshock) | 2017.11.07 | 116 |
130 | winscp for windows | 2017.09.13 | 118 |
129 | Ipsec for windows | 2017.08.23 | 126 |
128 | DNS (Domain Name Service) | 2017.11.01 | 129 |
127 | Ftp passive mode | 2017.08.24 | 132 |
126 | 어플리케이션 보안 | 2017.11.01 | 133 |