-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXSS.md
More file actions
30 lines (23 loc) · 928 Bytes
/
Copy pathXSS.md
File metadata and controls
30 lines (23 loc) · 928 Bytes
Edit and raw actions
OlderNewer
1
---
2
layout : wiki
3
title : XSS (cross-site scripting)
4
summary : 크로스 사이트 스크립팅
5
date : 2018-10-29 12:55:36 +0900
6
updated : 2018-10-29 13:02:42 +0900
7
tags : secure, xss
8
toc : true
9
public : true
10
parent : SecureCoding
11
latex : false
12
---
13
* TOC
14
{:toc}
15
16
# XSS (cross-site scripting)
17
18
* 공격방법
19
20
* 파라미터로 javascript 를 넘겨서 CORS 를 피해서 공격을 시도 한다.
21
* 공격하는 JavaScript 를 이용하여 얼마든지 해당 사이트에서의 Post 요청을 가로챌 수 있다.
22
23
* 대응방법
24
25
* 파라미터를 view 에 노출할 경우에 HTML 필터링이 필수가 된다.
26
* 대부분의 최신의 view template engine 은 필터링이 기본 기능이다. 하지만, Jsp 의 경우 개발자가 직접 replace 해줘야 한다.
27
28
# 참고자료
29
30
* 위키: https://ko.wikipedia.org/wiki/%EC%82%AC%EC%9D%B4%ED%8A%B8_%EA%B0%84_%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8C%85