웹 애플리케이션Web application

CWE-79 크로스 사이트 스크립팅(XSS)Cross-site Scripting (XSS)

사용자 입력이 이스케이프 없이 HTML/JS 문맥에 들어가 스크립트로 실행되는 결함.User input reaches an HTML/JS context without proper encoding and executes as script.

근본 원인 패턴Root-cause pattern

출력 문맥(HTML 본문/속성/URL/JS)에 맞지 않는 인코딩, 또는 innerHTML 같은 위험 싱크.Encoding that does not match the output context, or dangerous sinks like innerHTML.

전형적인 패치Typical fix

문맥별 출력 인코딩, 템플릿 자동 이스케이프, CSP.Context-aware output encoding, auto-escaping templates, CSP.

0 편posts

아직 이 클래스의 글이 없습니다. 아래 패턴 요약으로 먼저 학습하세요.No posts in this class yet. Start with the pattern summary below.

✎ CWE-79 퀴즈 풀기Quiz on CWE-79