[Code 개선] #6. [Security] Bleach를 활용한 HTML 살균(Sanitization) 및 XSS 방어 로직 구현 #40
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
1. 목표
LLM이 생성한 HTML 결과물이나 사용자로부터 전달받은 수정 요청 데이터 내에 포함될 수 있는 악의적인 스크립트(XSS)를 제거하여 보안 사고를 예방합니다.
2. 상세 원인 및 배경
<script>태그 등이 포함될 경우, 이를 실행하는 사용자의 브라우저 권한이 탈취될 수 있습니다.Original: Kyeongmin/test#36