Skip to content

๐Ÿ›ก๏ธ Sentinel: [๋ณด์•ˆ ๊ฐœ์„ ] - #722

Open
seonghobae wants to merge 1 commit into
masterfrom
sentinel/limit-topdir-length-7304134408450852950
Open

seonghobae wants to merge 1 commit into
masterfrom
sentinel/limit-topdir-length-7304134408450852950

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

๐Ÿšจ ์‹ฌ๊ฐ๋„: MEDIUM
๐Ÿ’ก ์ทจ์•ฝ์ : ์‚ฌ์šฉ์ž ์ž…๋ ฅ์ธ topDir์˜ ๊ธธ์ด ์ œํ•œ์ด ์—†์–ด OOM ๋ฐ DoS ๋ฐœ์ƒ ๊ฐ€๋Šฅ์„ฑ
๐ŸŽฏ ์˜ํ–ฅ: ์•…์˜์ ์œผ๋กœ ๊ธด ๊ฒฝ๋กœ๊ฐ€ ์ „๋‹ฌ๋  ๊ฒฝ์šฐ ๋ฆฌ์†Œ์Šค ๊ณ ๊ฐˆ ์œ ๋ฐœ
๐Ÿ”ง ์ˆ˜์ •: topDir.length <= 4096 ๊ฒ€์ฆ ์ถ”๊ฐ€
โœ… ๊ฒ€์ฆ: ํ…Œ์ŠคํŠธ ์ฝ”๋“œ๋ฅผ ํ†ตํ•ด ๊ธธ์ด ์ œํ•œ ์ดˆ๊ณผ ์‹œ ์˜ˆ์™ธ ๋ฐœ์ƒ ํ™•์ธ


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

@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: Youโ€™ve used the included review currently available.

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

Learn how review limits work.

Review configuration:

โš™๏ธ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 28a2baf9-ea56-4096-be68-0355a2ab3e60

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 728f0f3 and 2c60d40.

๐Ÿ“’ 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.

@seonghobae seonghobae left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exact-head acceptance finding for 2c60d4013d606014b74b5f9ee8708ec91085fa47.

The topDir.length <= 4096 guard is a useful bounded-input contract, but the current MEDIUM/OOM remediation claim is not established by the checked-in test. go() receives an already-created Kotlin String; this guard bounds subsequent work but does not demonstrate that constructing or delivering the string was the resource-exhaustion boundary. The value 4096 is also currently an application policy expressed in Kotlin string length, not a demonstrated platform/filesystem byte-limit contract.

Before retaining the security/DoS severity, make the causal boundary executable in this owner lane:

  • RED: drive the real product entrypoint that accepts topDir with hostile over-limit input and show that the predecessor reaches a materially expensive path/filesystem operation or resource-failure condition which the repaired path rejects before that operation.
  • GREEN: enforce the bound at the earliest owned intake boundary and lock the exact semantics with 4096/4097 cases plus non-ASCII input so it is explicit whether the contract is UTF-16 code units, Unicode scalar count, or encoded bytes. The same test should prove no filesystem traversal/open happens after rejection.
  • If an attacker-reachable resource-exhaustion path cannot be reproduced, doctor the PR from โ€œMEDIUM OOM/DoS fixโ€ to bounded-input/path-processing robustness rather than promoting an unverified buyer-facing security claim.

The current "a".repeat(4097) unit test proves only that go() throws for one over-limit ASCII value; it does not yet prove the asserted exploitability or resource-risk reduction.

@seonghobae seonghobae added bug Something isn't working priority: high High-priority or P1 work labels Sep 19, 2026 — with ChatGPT Codex Connector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority: high High-priority or P1 work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant