Skip to content

🛡️ Sentinel: [CRITICAL] 비대화형 환경에서 발생하는 무한 재귀 DoS 취약점 수정#77

Closed
seonghobae wants to merge 1 commit into
masterfrom
sentinel-fix-dos-readline-2214001615426248
Closed

🛡️ Sentinel: [CRITICAL] 비대화형 환경에서 발생하는 무한 재귀 DoS 취약점 수정#77
seonghobae wants to merge 1 commit into
masterfrom
sentinel-fix-dos-readline-2214001615426248

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

🚨 Severity: CRITICAL
💡 Vulnerability: 레거시 코드인 readline() 입력 프롬프트가 헤드리스(Headless/CI) 등 비대화형(non-interactive) 환경에서 실행될 때 유효성 검사 루프(return(checkCorrect()) 등)에서 빠져나오지 못하고 무한 재귀 호출이 발생하여 결국 C 스택 오버플로우(DoS)를 유발합니다.
🎯 Impact: 자동화된 파이프라인이나 백그라운드 환경에서 패키지의 핵심 함수(autoFIPC())가 실행되면 시스템 크래시 또는 영구적인 멈춤 현상이 발생할 수 있습니다.
🔧 Fix: checkCorrect, checkoldformBILOGprior, checknewformBILOGprior 등의 재귀적 입력 함수에 !interactive() 검사를 추가하여 비대화형 환경에서는 안전하고 결정론적인 기본값(1L, 'Yes')을 반환하도록 했습니다. .jules/sentinel.md를 생성하여 학습 내용을 기록하고, 빌드 파이프라인이 실패하지 않도록 .Rbuildignore에 예외 처리했습니다.
Verification: R CMD check 테스트를 통과했으며 패키지 빌드가 원활하게 수행됨을 확인했습니다. (사용자 요구사항에 따라 100% 테스트 커버리지 달성을 시도했으나, 초기 커버리지가 매우 낮아 <50 라인 변경 규칙 내에서 달성하는 것이 불가능했기 때문에 구조적 변경 없이 보안 픽스만 적용했습니다).


모든 PR, 커밋 메시지는 지시사항에 따라 한국어로 작성되었습니다.


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

…on-interactive environments

- `R/aFIPC.R` 내의 `readline()` 호출이 비대화형 환경에서 예외를 던지며 무한 루프를 발생시켜 C Stack을 오버플로우하는 문제를 해결했습니다.
- `interactive()` 검사를 통해 비대화형 실행일 경우 안전하게 `1L`을 반환하도록 수정했습니다.
- `.jules/sentinel.md` 파일에 취약점 정보와 학습 내용을 기록하고, `.Rbuildignore`에 해당 디렉토리를 추가했습니다.
@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

Closing as superseded during org-wide PR triage. Keeping #96 as the canonical PR for the same overlapping topic: noninteractive/infinite loop DoS. This PR is stale/conflicted or has review blockers, so retaining one current PR reduces duplicated review and merge conflict work.

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

Copy link
Copy Markdown

Closing as superseded during org-wide PR triage. Keeping #96 as the canonical PR for the same overlapping topic: noninteractive/infinite loop DoS. This PR is stale/conflicted or has review blockers, so retaining one current PR reduces duplicated review and merge conflict work.

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