Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- MFT
- SQL Injection
- Openstack
- logstash
- 2018
- vulnhub
- lord of sql injection
- CTF-d
- frida
- 파이썬
- XSS
- NTFS
- InsecureBank
- 인시큐어뱅크
- ctf
- foremost
- elasticsearch
- Strings
- ESXi
- diva
- Reflected XSS
- Docker
- Volatility
- kibana
- otter
- base64
- 안드로이드
- beebox
- igoat
- Suninatas
Archives
- Today
- Total
Information Security
XSS – Change Secret 본문
Level (Low)
<script> alert(1)</script> 스크립트를 입력했는데 The secret has been changed! 메시지를 보여준다.
대응방안
htmlspecialchars 함수를 호출하여 입력 데이터를 UTF-8로 인코딩한다. 두 번째 인자에 ENT_QUOTES를 추가하여 XSS에 사용되는 특수 문자들을 HTML 엔티티 코드로 변환하여 스크립트 코드를 입력하여도 웹 브라우저에서는 문자로 인식한다.
'Web Security > Bee-Box' 카테고리의 다른 글
XSS – Reflected(GET) (0) | 2019.09.07 |
---|---|
XSS - Stored(User-Agent) (0) | 2019.08.31 |
XSS - Stored (Blog) (0) | 2019.08.31 |
Session Mgmt – Administrator Portals (0) | 2019.08.31 |
Broken Auth – Password Attacks (0) | 2019.08.25 |