Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Chiusa
#210 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
node.js, typescript

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
2
Fork
2
Merge medio
6h 27m
PR unite (30g)
37

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PierrunoYT/patch

Tutte le issue di PierrunoYT/patch

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.