Skip to content

fix: 랜딩 페이지 XSS 취약점 수정 - #17

Merged
JeongGihun merged 1 commit into
mainfrom
fix/xss-landing-page
Jun 14, 2026
Merged

fix: 랜딩 페이지 XSS 취약점 수정#17
JeongGihun merged 1 commit into
mainfrom
fix/xss-landing-page

Conversation

@JeongGihun

Copy link
Copy Markdown
Owner

Summary

  • showResp, showErr: API 응답/에러 메시지를 innerHTML 대신 textContent로 삽입
  • updateRL: 로봇 이름을 createElement + textContent로 DOM 직접 구성 (Stored XSS 경로 차단)

취약점 설명

서버 DB에 악성 이름(<img src=x onerror=...>)이 등록된 경우, 랜딩 페이지 로드 시 /demo/robots 응답을 innerHTML로 렌더링해 스크립트가 실행되는 Stored XSS 가능성 존재.

Test plan

  • 랜딩 페이지 기본 동작 확인 (응답 박스 렌더링, 로봇 칩 표시)
  • <script>alert(1)</script> 포함 이름으로 로봇 등록 후 페이지 로드 시 실행 안 됨 확인

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@JeongGihun
JeongGihun merged commit b5f93f7 into main Jun 14, 2026
1 check passed
@JeongGihun
JeongGihun deleted the fix/xss-landing-page branch June 14, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant