[GH-ISSUE #3436] hopper(linux): private X authority cookie is visible in xauth's argv #1281

Closed
opened 2026-10-16 21:03:43 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @GovinduSasanka on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/morluto/rea/issues/3436

scripts/hopper-demo-x11.py (authorize_display) runs xauth -f <authority> add :N . <cookie>, so the MIT-MAGIC-COOKIE is readable by other local users through /proc/<pid>/cmdline while xauth runs.

Xvfb is started with -nolisten tcp -auth, but its Unix socket under /tmp/.X11-unix accepts connections from anyone. A local user who catches the cookie can view or inject input into the private Hopper display.

Expected: pass the command on stdin (xauth -q -f <authority> source -), so the cookie never appears in argv.

Reviewed at fa4b828. A PR follows.

Originally created by @GovinduSasanka on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/morluto/rea/issues/3436 `scripts/hopper-demo-x11.py` (`authorize_display`) runs `xauth -f <authority> add :N . <cookie>`, so the MIT-MAGIC-COOKIE is readable by other local users through `/proc/<pid>/cmdline` while xauth runs. Xvfb is started with `-nolisten tcp -auth`, but its Unix socket under `/tmp/.X11-unix` accepts connections from anyone. A local user who catches the cookie can view or inject input into the private Hopper display. **Expected:** pass the command on stdin (`xauth -q -f <authority> source -`), so the cookie never appears in argv. Reviewed at fa4b828. A PR follows.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
morluto/rea#1281
No description provided.