Skip to content

fix: security and data validation hardening (P0)#28

Merged
imironjin merged 1 commit intomainfrom
fix/security-qa-p0
Apr 9, 2026
Merged

fix: security and data validation hardening (P0)#28
imironjin merged 1 commit intomainfrom
fix/security-qa-p0

Conversation

@imironjin
Copy link
Copy Markdown
Collaborator

Summary

보안 감사 및 QA 결과 P0 이슈 7건 수정

Changes

# 이슈 수정
S1 OAuth 서버 전체 인터페이스 바인딩 127.0.0.1로 제한
S2 Supabase 숫자 Infinity/NaN 미검증 isFinite 체크 추가
S3 statusline 입력 초과 시 파싱 계속 조기 return
Q2 calcTokenExp 음수/NaN 방어 없음 core v1.1.1 적용
Q4 날짜 비교 UTC/로컬 불일치 UTC 통일
Q8 logExp NaN 방어 없음 isFinite 체크
S6 fetch 타임아웃 없음 10초 타임아웃

Test plan

  • 전체 61개 테스트 통과
  • 빌드 성공
  • core v1.1.1 calcTokenExp 테스트 10개 통과

🤖 Generated with Claude Code

- Bind OAuth callback server to 127.0.0.1 only
- Add isFinite bounds check to Supabase data parsing
- Fix statusline oversized input to return early instead of break
- Guard logExp against NaN amounts
- Unify date comparison to UTC across hooks
- Add 10s fetch timeout to Claude usage API
- Bump @myhpmp/core to v1.1.1 (calcTokenExp NaN/negative guard)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@imironjin imironjin merged commit 4738547 into main Apr 9, 2026
1 check passed
@imironjin imironjin deleted the fix/security-qa-p0 branch April 9, 2026 07:37
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