fix: harden JFrog redirect targets - #1520
Conversation
Performance BenchmarksCompared
|
|
Security review follow-up pushed in |
|
Critical security review complete. The original hostname acceptance was vulnerable to DNS rebinding/proxy split-DNS behavior, so the final implementation defaults off-origin hostnames to denied unless explicitly allowlisted, preserves no-credential/no-trusted-cookie behavior for those targets, and blocks IP-literal evasions including IPv4-mapped, NAT64, 6to4, Teredo, scoped IPv6, integer/octal/hex, shorthand, and mixed-radix forms. Final associated QA: 189 passed, 1 optional-ONNX skip; scoped Ruff and mypy clean. Full suite intentionally left to CI. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2e4419f7c5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Follow-up review found and fixed one additional SSRF false negative locally in |
|
Published the review fixes at |
ca6844a to
434cc83
Compare
|
@codex please sync the current |
|
Summary
Testing
I also recorded a PR message via the PR tool, but the branch itself was not published because |
434cc83 to
67bcc37
Compare
|
Re-reviewed the exact live PR on current The associated JFrog modules pass |
Summary
MODELAUDIT_JFROG_ALLOWED_REDIRECT_HOSTS.netrcauthentication so Requests cannot add credentials to allowlisted redirect targets or replace explicit Bearer authmainatdc0051c5bd1fa22f3779b94e9624a78f46da37d1False-positive / false-negative audit
Validation
211 passed, 1 skipped(optional ONNX dependency unavailable)CHANGELOG.mdandREADME.md: passedgit diff --check: passedPublished commit:
67bcc37159f10b8a9faadcacc3ba8d1d608676b2Verified tree:
f74e9b07ff5e40b21555d11c408431b63d58229e