github / github/copilot-cli

Copilot CLI prompts for WSL sudo password without obscuring input (password echoed)

Abierto
#2,542 1 comentario 0 reacciones 0 asignados Ver en GitHub
area:permissions area:platform-windows
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

### Summary
When GitHub Copilot CLI prompts for a WSL sudo password (to forward it into the WSL prompt), the typed password characters are not obscured and appear on screen in plain text. This is a security risk and can lead to password disclosure (e.g., during screen sharing, recordings, or over-the-shoulder viewing).

### Steps to Reproduce
1. Run Copilot CLI in a scenario where it needs elevated privileges inside WSL (sudo).
2. When prompted with something like:
`Please enter your WSL sudo password (I'll send it to the prompt):`
3. Type the sudo password.

### Expected Behavior
Password input should be obscured (no echo), similar to standard terminal password prompts:
- No visible characters while typing, or
- Use a secure prompt mechanism that disables echo.

### Actual Behavior
Password characters are visible while typing (echoed to the terminal).

### Impact / Security Considerations
- Risk of password exposure during screen shares, demos, live streams, recordings, or in shared work environments.
- Potential leakage into terminal logs depending on the host shell/terminal configuration.

### Environment
OS: Windows (using WSL)
WSL distro: Ubuntu (WSL 2)
Copilot CLI version: 1.0.19
Terminal: Windows Terminal
Shell: PowerShell Core 7.6.0

### Suggested Fix / Notes
- Use a proper no-echo password input method on Windows terminals (e.g., a secure prompt / TTY no-echo).
- Ensure the password is not printed, logged, or stored, and is only forwarded to the target sudo prompt.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start at the Copilot CLI flow that displays “Please enter your WSL sudo password” and trace how input is read when running under PowerShell on Windows Terminal. Reproduce the prompt with WSL Ubuntu, then verify that password characters are not echoed, logged, or stored while the password is forwarded to sudo.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
powershell, shell, ubuntu
Área
cli, operating-systems, security
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
52/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.