Skip to content

πŸ›‘οΈ Sentinel: [HIGH] μˆ¨κ²¨μ§„ 파일 λ…ΈμΆœ(Sensitive Data Exposure) 취약점 μˆ˜μ •#119

Open
seonghobae wants to merge 3 commits into
masterfrom
sentinel-fix-hidden-files-exposure-10966133501192312716
Open

πŸ›‘οΈ Sentinel: [HIGH] μˆ¨κ²¨μ§„ 파일 λ…ΈμΆœ(Sensitive Data Exposure) 취약점 μˆ˜μ •#119
seonghobae wants to merge 3 commits into
masterfrom
sentinel-fix-hidden-files-exposure-10966133501192312716

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

🚨 Severity: HIGH
πŸ’‘ Vulnerability: μˆ¨κ²¨μ§„ 파일 및 디렉토리(.git, .env λ“±)κ°€ HTML μΈλ±μŠ€μ— ν¬ν•¨λ˜μ–΄ λ―Όκ°ν•œ 정보가 λ…ΈμΆœλ  μœ„ν—˜μ΄ μ‘΄μž¬ν–ˆμŠ΅λ‹ˆλ‹€.
🎯 Impact: κ³΅κ²©μžκ°€ μ €μž₯μ†Œμ˜ νžˆμŠ€ν† λ¦¬λ‚˜ ν™˜κ²½ μ„€μ • νŒŒμΌμ„ νšλ“ν•˜μ—¬ μ‹¬κ°ν•œ λ³΄μ•ˆ μΉ¨ν•΄λ₯Ό μœ λ°œν•  수 μžˆμŠ΅λ‹ˆλ‹€.
πŸ”§ Fix: src/main/kotlin/html4tree/main.ktμ—μ„œ 디렉토리 순회 및 인덱슀 생성 μ‹œ .으둜 μ‹œμž‘ν•˜λŠ” μˆ¨κ²¨μ§„ ν•­λͺ©μ„ λ¬΄μ‹œν•˜λ„λ‘ ν•„ν„°(!it.name.startsWith("."))λ₯Ό μΆ”κ°€ν–ˆμŠ΅λ‹ˆλ‹€.
βœ… Verification: src/test/kotlin/html4tree/MainTest.kt에 μˆ¨κ²¨μ§„ 파일과 디렉토리가 좜λ ₯ 및 μˆœνšŒλ˜μ§€ μ•ŠμŒμ„ κ²€μ¦ν•˜λŠ” λ‹¨μœ„ ν…ŒμŠ€νŠΈ(testGoIgnoresHiddenFilesAndDirectories)λ₯Ό μΆ”κ°€ν•˜κ³  100% ν…ŒμŠ€νŠΈ 컀버리지λ₯Ό λ‹¬μ„±ν–ˆμŠ΅λ‹ˆλ‹€.


PR created automatically by Jules for task 10966133501192312716 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.

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