진주성 블로그 방문하기
진주성 블로그 방문하기
보안 불필요한 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
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
64 | tibero 7 install for linux | 2023.11.06 | 19 |
63 | Red Hat Enterprise Linux Certification Matrix for Dell PowerEdge Servers | 2023.11.02 | 13 |
62 | Tibero test sql문, SCHEMA_OBJECT_SAMPLE | 2023.10.25 | 8 |
61 | Tibero 관리 3 | 2023.10.25 | 11 |
60 | Tibero 관리 2 | 2023.10.25 | 22 |
59 | Tibero 접속 및 관리 | 2023.10.25 | 46 |
58 | weblogic wlst 기반 암호화파일 복호화 (AES) | 2021.04.06 | 109 |
57 | weblogic admin 패스워드 변경 방법 | 2021.04.06 | 59 |
56 | wmic useraccount list brief | 2021.04.01 | 28 |
55 | OSI (Open System Interconnection) 모델의 7개 계층구조 | 2019.09.10 | 274 |
54 | TCP/IP Tuning parameter | 2019.03.15 | 2874 |
53 | [python] MySQL 사용법 예제 | 2018.10.24 | 523 |
52 | GeoIP 를 이용한 Apache 설정 - 국가별 접속 차단 | 2018.06.13 | 654 |
51 | OSI 7 Layer | 2017.11.01 | 214 |
50 | TCP 프로토콜 Header 구조 | 2017.11.01 | 1554 |
49 | TCP 상태전이 | 2017.11.01 | 614 |
48 | 전자우편 보안 | 2017.11.01 | 280 |
47 | 부팅(Booting) 과정 | 2017.11.01 | 317 |
46 | 디지털 컨텐츠 보호 | 2017.11.01 | 113 |
45 | 윈도우 보안 | 2017.11.01 | 186 |