๐ก๏ธ Sentinel: [MEDIUM] Fix SSRF in sandboxed_web_e2e.py readiness probe - #1366
๐ก๏ธ Sentinel: [MEDIUM] Fix SSRF in sandboxed_web_e2e.py readiness probe#1366seonghobae wants to merge 2 commits into
Conversation
|
๐ 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Warning Review limit reachedNext included review available in 18 minutes. View limit detailsLimit 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. Review configuration: โ๏ธ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ๐ Files selected for processing (3)
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. Comment |
|
Closing as superseded by #1314 exact head 3525287. The proposed hostname tuple is incomplete for userinfo-confused URLs, mapped IPv6 semantics, and poisoned/mixed localhost resolution. #1314 implements and tests those fail-closed cases on current main with full 100% coverage. Branch history remains recoverable. |
Understood. Acknowledging that this work is now obsolete as it has been superseded by #1314, and stopping work on this task. |
๐ฏ What:
scripts/ci/sandboxed_web_e2e.py์wait_for_urlํจ์์์ SSRF ๋ฐฉ์ง๋ฅผ ์ํด ํธ์คํธ๋ค์์ ๋ก์ปฌํธ์คํธ๋ก ์ ํํ๋ ๊ฒ์ฆ ๋ก์ง์ ์ถ๊ฐํ๊ณ , ์ด๋ฅผ ๊ฒ์ฆํ๋ ํ ์คํธ ์ฝ๋๋ฅผ ์์ฑํ์ต๋๋ค.169.254.169.254)๋ฅผ ๊ฐ๋ฆฌํฌ ๊ฒฝ์ฐ, CI ํ๊ฒฝ์์ Server-Side Request Forgery (SSRF)๋ฅผ ํตํด ๋ด๋ถ ๋ฆฌ์์ค๊ฐ ์ ์ถ๋๊ฑฐ๋ ์์น ์๋ ๋คํธ์ํฌ ์ค์บ์ด ๋ฐ์ํ ์ํ์ด ์์ต๋๋ค.๐ก๏ธ Solution:
urllib.parse.urlparse๋ฅผ ์ฌ์ฉํ์ฌ URL์ ํ์ฑํ๊ณ ,hostname์ด ๋ช ์์ ์ผ๋กlocalhost,127.0.0.1,::1์ค ํ๋์ธ์ง ๊ฒ์ฌํฉ๋๋ค. ์กฐ๊ฑด์ ๋ง์ง ์์ผ๋ฉด ์ธ๋ถ ํธ์คํธ๋ค์ ํธ์ถ์ ์ฐจ๋จํ๊ธฐ ์ํดValueError๋ฅผ ๋ฐ์์ํต๋๋ค. ๋ํ ํด๋น ๊ฒ์ฆ ๋ก์ง์ด ์๋๋๋ก ๋์ํ๋์ง ๋ณด์ฅํ๊ธฐ ์ํดtests/test_sandboxed_web_e2e.py์ ๋จ์ ํ ์คํธ๋ฅผ ์ถ๊ฐํ์ฌ ํ ์คํธ ์ปค๋ฒ๋ฆฌ์ง๋ฅผ 100%๋ก ๋ง์ถ์์ต๋๋ค.PR created automatically by Jules for task 3380980659276598399 started by @seonghobae