Skip to content

πŸ›‘οΈ Sentinel: [HIGH] 널 λ°”μ΄νŠΈ μ‚½μž… 취약점 μˆ˜μ •#42

Closed
seonghobae wants to merge 4 commits into
mainfrom
jules-4383671025421526163-d5550b4d
Closed

πŸ›‘οΈ Sentinel: [HIGH] 널 λ°”μ΄νŠΈ μ‚½μž… 취약점 μˆ˜μ •#42
seonghobae wants to merge 4 commits into
mainfrom
jules-4383671025421526163-d5550b4d

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

🚨 Severity: HIGH
πŸ’‘ Vulnerability: 파일 이름에 널 λ°”μ΄νŠΈ(\0)κ°€ 포함될 경우, Javaμ—μ„œλŠ” λ¬΄μ‹œν•˜κ³  ν™•μž₯자λ₯Ό μ˜¬λ°”λ₯΄κ²Œ μΆ”μΆœν•˜λŠ” κ²ƒμ²˜λŸΌ 보일 수 μžˆμ§€λ§Œ, ν•˜μœ„ C/C++ 기반의 λΌμ΄λΈŒλŸ¬λ¦¬λ‚˜ μ‹œμŠ€ν…œμ—μ„œ 파일 처리 μ‹œ λ¬Έμžμ—΄μ΄ 널 λ°”μ΄νŠΈμ—μ„œ 끊겨 잘λͺ»λœ ν™•μž₯자둜 νŒŒμΌμ„ μ²˜λ¦¬ν•  수 μžˆλŠ” 취약점이 μžˆμŠ΅λ‹ˆλ‹€.
🎯 Impact: κ³΅κ²©μžκ°€ μ°¨λ‹¨λœ 파일 ν˜•μ‹(.hwp)을 μ•…μ˜μ μΈ 널 λ°”μ΄νŠΈ μ‚½μž…(malicious.hwp\0.pdf)을 톡해 μ—…λ‘œλ“œν•˜μ—¬ μ„œλ²„ λ‚΄ μ‹œμŠ€ν…œμ„ 곡격할 수 μžˆμŠ΅λ‹ˆλ‹€.
πŸ”§ Fix: DefaultDocumentValidationService.java λ‚΄μ—μ„œ ν™•μž₯자λ₯Ό μΆ”μΆœν•˜κΈ° μ „ 파일 이름에 널 λ°”μ΄νŠΈ(\0)κ°€ ν¬ν•¨λ˜μ–΄ μžˆλŠ”μ§€ ν™•μΈν•˜κ³  ν¬ν•¨λ˜μ–΄ 있으면 μ˜ˆμ™Έ 처리λ₯Ό ν•˜λ„λ‘ λ³€κ²½ν–ˆμŠ΅λ‹ˆλ‹€. ν…ŒμŠ€νŠΈ 파일 DefaultDocumentValidationServiceTest.java에 ν•΄λ‹Ή 취약점을 λ°©μ–΄ν•˜λŠ” ν…ŒμŠ€νŠΈ(rejectsFilenameWithNullByte)λ₯Ό μΆ”κ°€ν–ˆμŠ΅λ‹ˆλ‹€.
βœ… Verification: mvn test λͺ…λ Ήμ–΄λ‘œ ν…ŒμŠ€νŠΈκ°€ 100% 톡과함을 ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€.


PR created automatically by Jules for task 4383671025421526163 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. I will close this PR and defer to the canonical PR #76.

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