Skip to content

🛡️ Sentinel: [MEDIUM] hmac.compare_digest 입력값에 대한 500 에러 취약점 수정 - #482

Closed
seonghobae wants to merge 1 commit into
mainfrom
sentinel-fix-hmac-non-ascii-16784688967578254236
Closed

🛡️ Sentinel: [MEDIUM] hmac.compare_digest 입력값에 대한 500 에러 취약점 수정#482
seonghobae wants to merge 1 commit into
mainfrom
sentinel-fix-hmac-non-ascii-16784688967578254236

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Verified succession

Exact predecessor d48d8af7b67d40b93af3815aa02018333ac2eebf의 유효 delta는 non-ASCII API-key mismatch→401 regression과 Unreleased CHANGELOG의 보안 수정 traceability입니다. Canonical #520 exact cf730d007543ee828b7b8e77c9473288924047d4가 raw ASGI header bytes에서 이 behavior를 보존하고 configured Unicode success·duplicate-header fail-closed를 더 강하게 검증하며, CHANGELOG.md에도 current raw-header 계약을 더 정확하게 기록합니다.

#482의 decoded framework string UTF-8 재인코딩과 blanket .jules 지침은 Unicode credential raw bytes를 훼손할 수 있어 별도 유효 delta가 아닙니다. 따라서 유효 behavior/test/documentation intent는 #520에 완전 승계됐습니다. #520은 protected main@90717c6e9954bf3b7a351137995ebe89975e46c2 대비 behind_by=0인 non-force descendant입니다.

`hmac.compare_digest` 함수가 non-ASCII 문자열을 처리할 때 발생하는 TypeError(500 에러) 취약점을 수정했습니다. 두 문자열을 명시적으로 utf-8로 인코딩한 뒤 비교하도록 변경했습니다.
@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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 47 minutes.

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: Pro Plus

Run ID: 72fa7d5e-b9af-41b1-9df1-426d8ad691c8

📥 Commits

Reviewing files that changed from the base of the PR and between a8e4956 and d48d8af.

📒 Files selected for processing (4)
  • .jules/sentinel.md
  • CHANGELOG.md
  • saas_web.py
  • tests/test_saas_web.py

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.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Open in Devin Review

Comment thread saas_web.py

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📝 Info: Env-based key read remains an unmigrated deviation

AGENTS.md flags reading keys from CODEC_CARVER_API_KEYS via os.environ.get in get_configured_api_keys (saas_web.py:97) as a known deviation to migrate to a KV registry. This PR touches the auth path but leaves that read unchanged. The line is context, not a changed hunk, so it is not a diff bug.

(Refers to this code)

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@seonghobae seonghobae closed this Sep 3, 2026
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