Skip to content

🛡️ Sentinel: [MEDIUM] glob 패턴 구문 오류로 인한 애플리케이션 크래시(DoS) 방지 - #412

Closed
seonghobae wants to merge 1 commit into
masterfrom
sentinel-fix-glob-exception-11980966284314884215
Closed

🛡️ Sentinel: [MEDIUM] glob 패턴 구문 오류로 인한 애플리케이션 크래시(DoS) 방지#412
seonghobae wants to merge 1 commit into
masterfrom
sentinel-fix-glob-exception-11980966284314884215

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

🚨 Severity: MEDIUM
💡 Vulnerability: .html4ignore 파일 파싱 시 getPathMatcher가 던지는 예외 중 PatternSyntaxException만 처리하고 있어, 이외의 원인으로 IllegalArgumentException이 발생하면 애플리케이션이 크래시되는 DoS(Denial of Service) 취약점이 존재했습니다.
🎯 Impact: 악의적인 사용자가 저장소에 특수하게 조작된 .html4ignore 파일을 커밋하면 HTML 인덱스 생성 프로세스가 중단될 수 있습니다.
🔧 Fix: 예외 처리 범위를 PatternSyntaxException에서 상위 클래스인 IllegalArgumentException으로 넓혀 모든 패턴 구문 및 인자 오류를 안전하게 무시하도록 수정했습니다.
✅ Verification: 유효하지 않은 패턴을 포함하는 테스트 케이스를 추가하고 전체 테스트 및 커버리지를 통과함을 확인했습니다.


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

Widened the catch block in process_ignore_file from PatternSyntaxException
to IllegalArgumentException. This prevents the application from crashing
when getPathMatcher throws an IllegalArgumentException for invalid glob
patterns. Added a test case and updated the sentinel.md journal.
@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.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@seonghobae, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 8 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: d652a864-add3-4f7d-b070-72a2c24f9137

📥 Commits

Reviewing files that changed from the base of the PR and between 29e1534 and 6f6bd0a.

📒 Files selected for processing (3)
  • .jules/sentinel.md
  • src/main/kotlin/html4tree/main.kt
  • src/test/kotlin/html4tree/MainTest.kt

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Collaborator Author

보호 master의 PR #415가 이 PR의 IllegalArgumentException 경계와 동일한 결함을 test-first로 통합했습니다 (e76a716522990cc6c0e9175254998740be7341c0, 현재 master@25d6fc44840ec2c25f3778780b21fef594a01ba4). 보호 소스는 malformed glob만 거부하고 다른 실행 오류를 은폐하지 않는 좁은 경계를 유지합니다. 고유한 안전 동작이 남지 않아 #415를 canonical successor로 기록하고 superseded로 닫습니다.

@seonghobae seonghobae closed this Aug 11, 2026
@google-labs-jules

Copy link
Copy Markdown

보호 master의 PR #415가 이 PR의 IllegalArgumentException 경계와 동일한 결함을 test-first로 통합했습니다 (e76a716522990cc6c0e9175254998740be7341c0, 현재 master@25d6fc44840ec2c25f3778780b21fef594a01ba4). 보호 소스는 malformed glob만 거부하고 다른 실행 오류를 은폐하지 않는 좁은 경계를 유지합니다. 고유한 안전 동작이 남지 않아 #415를 canonical successor로 기록하고 superseded로 닫습니다.

알겠습니다. 이 작업이 다른 PR로 대체되어 더 이상 필요하지 않음을 확인하였으며, 이에 따라 본 작업에 대한 처리를 중단하겠습니다.

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