Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

ChatGPT sign-in: the redirect URI says localhost but the callback server binds only 127.0.0.1

クローズ
#210 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
node.js, typescript

調査の方向性

Start with src/main/llm/codex_auth.ts, especially the redirect URI at line 23 and server binding at line 244. Read the OAuth callback setup and check how the server reports bind failures; the issue proposes supporting both 127.0.0.1 and ::1 and refusing to start if either is occupied. Done means sign-in callbacks work with either localhost address and a local port conflict is reported.

索引モデルが issue の本文から書いたものです。

説明

bug priority: low security severity: low

From Finding 5 of the earlier SECURITY-REVIEW.md and the Oct 7 audit, checked against the current code.

Problem

The OAuth redirect is http://localhost:1455/auth/callback (src/main/llm/codex_auth.ts:23), but the server listens only on 127.0.0.1 (codex_auth.ts:244). Browsers may resolve localhost to ::1 first. Another local process listening on [::1]:1455 would then get the callback instead of Patch, or sign-in would fail. PKCE (S256) and the random state mean an intercepted code can't be exchanged, so the realistic impact is a failed or blocked sign-in, not token theft. The port is fixed by the provider's client registration.

Proposal

Listen on both 127.0.0.1 and ::1 (two servers, or one with ipv6Only: false on ::), and refuse to start if either is taken. Document that a local process can block sign-in.

主要言語
TypeScript
スター
2
フォーク
2
平均マージ
5時間 28分
マージ済み PR(30日)
24

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PierrunoYT/patch のほかの issue

PierrunoYT/patch の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。