진주성 블로그 방문하기
진주성 블로그 방문하기
보안 불필요한 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
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
19 | Restore Database And Rename Database Files Example | 2019.03.26 | 61994 |
18 | HP-UX networking - 11.31 10G NIC | 2019.03.19 | 912 |
17 | hpux cmsnmpd daemon 중지 | 2019.02.28 | 272 |
16 | 아파치 2.2.29 버젼에서 SSLProtocol 중 TLSv1.2로 설정 | 2019.02.27 | 4422 |
15 | usage: raspistill [options] - Image parameter commands | 2018.11.16 | 1266 |
14 | hpux cron job 실행 에러 처리 방안 | 2018.07.06 | 353 |
13 | Parameters for Web Server Plug-Ins | 2018.05.10 | 2436 |
12 | SUN 솔라리스 보안취약점 조치 방안 | 2018.03.05 | 543 |
11 | hpux ndd tuning | 2018.02.28 | 923 |
10 | UNIX,Linux Command 비교 | 2018.02.27 | 2615 |
9 | hpux 소프트웨어 설치및 제거 | 2018.02.27 | 371 |
8 | HPUX Trust Mode | 2018.02.21 | 1052 |
7 | Linux 보안및 성능향상을 위한 sysctl.conf 설정 | 2018.02.20 | 3968 |
6 | HP-UX 보안가이드라인 | 2018.02.14 | 941 |
5 | [리눅스] 다른 서버에 있는 파일 가져오기(SCP 이용) | 2018.01.25 | 346 |
4 | /etc/xinetd.conf 설정 값 | 2017.11.09 | 114 |
3 | command | 2017.11.01 | 959 |
2 | 어플리케이션 보안 | 2017.11.01 | 133 |
1 | 윈도우용 wget | 2017.09.28 | 4017 |