GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||
GeezerVison is showing github.com — lab-ops-hub: judge container crawl hosts in their resolver-mapped form (#527) by dezren39 · Pull Request #528 · developing-today/code Conversation
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 2
✨ Finishing Touches
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 931efa55c7
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| # check below on the mapped form; the original URL is still what | ||
| # gets fetched, and public controls map onto public names | ||
| # ("example.com" -> example.com, "münchen。de" -> münchen.de). | ||
| host = unicodedata.normalize("NFKC", host).lower() |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Apply the resolver's complete IDNA mapping
When an allowed public target redirects to a hostname containing U+00AD between local and host, this NFKC-only mapping leaves that character intact, so the local-host check accepts the redirect. Python's encodings.idna processing removes U+00AD, and getaddrinfo consequently resolves that hostname as localhost, allowing the container crawler to reach loopback despite the SSRF guard. Normalize using the same IDNA/nameprep mapping as the resolver, or reject characters that IDNA maps away, before applying the policy checks.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
lab-ops-hub: container validator allows UTS-46/NFKC-mapped spellings of blocked targets — fullwidth localhost and unicode-dot IPv4 resolve to loopback/private
There was an error while loading. Please reload this page.