Skip to content

πŸ›‘οΈ Sentinel: [HIGH] 파일 μ—…λ‘œλ“œ ν™•μž₯자 검증 μ‹œ Null-byte 우회 취약점 μˆ˜μ •#49

Closed
seonghobae wants to merge 1 commit into
mainfrom
sentinel-null-byte-bypass-fix-8989332729712392025
Closed

πŸ›‘οΈ Sentinel: [HIGH] 파일 μ—…λ‘œλ“œ ν™•μž₯자 검증 μ‹œ Null-byte 우회 취약점 μˆ˜μ •#49
seonghobae wants to merge 1 commit into
mainfrom
sentinel-null-byte-bypass-fix-8989332729712392025

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

🚨 Severity: HIGH
πŸ’‘ Vulnerability: 파일λͺ…에 Null byte(\u0000)λ₯Ό ν¬ν•¨ν•˜μ—¬ ν™•μž₯자 차단 검증(blockedExtensions)을 μš°νšŒν•˜κ±°λ‚˜ μ‹œμŠ€ν…œ μˆ˜μ€€μ˜ 파일 자λ₯΄κΈ°(Truncation attack)λ₯Ό μœ λ°œν•  수 μžˆλŠ” 취약점이 λ°œκ²¬λ˜μ—ˆμŠ΅λ‹ˆλ‹€.
🎯 Impact: μ•…μ˜μ μΈ μ‚¬μš©μžκ°€ μ°¨λ‹¨λœ ν™•μž₯자(예: .hwp)의 νŒŒμΌμ„ μ—…λ‘œλ“œν•˜κ±°λ‚˜, malicious.sh\0.pdf 처럼 μ‹œμŠ€ν…œμ˜ Null byte 자λ₯΄κΈ° νŠΉμ„±μ„ μ΄μš©ν•΄ μž„μ˜μ˜ 슀크립트 νŒŒμΌμ„ μ—…λ‘œλ“œν•  수 μžˆλŠ” μœ„ν—˜μ΄ μžˆμŠ΅λ‹ˆλ‹€.
πŸ”§ Fix: DefaultDocumentValidationService.java λ‚΄μ˜ validateOrThrow λ‹¨κ³„μ—μ„œ Null byte(\u0000)κ°€ 원본 파일λͺ…에 ν¬ν•¨λ˜μ–΄ μžˆλŠ”μ§€ κ²€μ‚¬ν•˜κ³ , ν¬ν•¨λœ 경우 μ¦‰μ‹œ IllegalArgumentException을 λ°œμƒμ‹œμΌœ μ•ˆμ „ν•˜κ²Œ μ‹€νŒ¨(Fail securely)ν•˜λ„λ‘ μ‘°μΉ˜ν–ˆμŠ΅λ‹ˆλ‹€. κ΄€λ ¨λœ 우회 및 잘림 곡격 사둀에 λŒ€ν•œ μœ λ‹› ν…ŒμŠ€νŠΈλ“€μ„ μΆ”κ°€ν•˜μ˜€μŠ΅λ‹ˆλ‹€.
βœ… Verification: mvn test jacoco:report둜 κΈ°μ‘΄ ν…ŒμŠ€νŠΈ 및 μ‹ κ·œ λ³΄μ•ˆ ν…ŒμŠ€νŠΈλ₯Ό μ‹€ν–‰ν•˜μ—¬ ν…ŒμŠ€νŠΈ 톡과 및 μ½”λ“œ 컀버리지 μœ μ§€λ₯Ό κ²€μ¦ν–ˆμŠ΅λ‹ˆλ‹€. mvn checkstyle:checkλ₯Ό 톡해 린트 μ—λŸ¬κ°€ μ—†μŒμ„ ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€.


PR created automatically by Jules for task 8989332729712392025 started by @seonghobae

@google-labs-jules

Copy link
Copy Markdown

πŸ‘‹ Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a πŸ‘€ emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@seonghobae

Copy link
Copy Markdown
Collaborator Author

쀑볡 정리: 이 PR은 '파일 ν™•μž₯자/null-byte 검증' ν΄λŸ¬μŠ€ν„°μ˜ μ€‘λ³΅μž…λ‹ˆλ‹€. μ •λ³ΈμœΌλ‘œ #76 (APPROVED + CI green + MERGEABLE)을 μœ μ§€ν•©λ‹ˆλ‹€. 동일 νŒŒμΌμ„ μˆ˜μ •ν•΄ λ™μ‹œ 병합이 λΆˆκ°€λŠ₯ν•˜λ―€λ‘œ μ •λ¦¬ν•©λ‹ˆλ‹€. κ³ μœ ν•˜κ²Œ ν•„μš”ν•œ 변경이 있으면 #76에 λ°˜μ˜ν•˜κ±°λ‚˜ μž¬μ˜€ν”ˆν•˜μ„Έμš”.

@seonghobae seonghobae closed this Jul 7, 2026
@google-labs-jules

Copy link
Copy Markdown

쀑볡 정리: 이 PR은 '파일 ν™•μž₯자/null-byte 검증' ν΄λŸ¬μŠ€ν„°μ˜ μ€‘λ³΅μž…λ‹ˆλ‹€. μ •λ³ΈμœΌλ‘œ #76 (APPROVED + CI green + MERGEABLE)을 μœ μ§€ν•©λ‹ˆλ‹€. 동일 νŒŒμΌμ„ μˆ˜μ •ν•΄ λ™μ‹œ 병합이 λΆˆκ°€λŠ₯ν•˜λ―€λ‘œ μ •λ¦¬ν•©λ‹ˆλ‹€. κ³ μœ ν•˜κ²Œ ν•„μš”ν•œ 변경이 있으면 #76에 λ°˜μ˜ν•˜κ±°λ‚˜ μž¬μ˜€ν”ˆν•˜μ„Έμš”.

Understood. Acknowledging that this work is now obsolete and stopping work on this task.

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