Katalog CVE

CVE-2026-9323

WysokieCVSS 8.1
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.42%

Percentyl 34 - wyżej niż 34% wszystkich znanych CVE

Streszczenie

Podatność w backendzie webowym urwid (urwid/display/web.py) generującym identyfikatory sesji (urwid_id) przy użyciu niestabilnego kryptograficznie generatora Mersenne Twister. Atakujący może odtworzyć stan generatora po obserwacji około 334 identyfikatorów i przewidzieć wszystkie sesje. Dodatkowo identyfikator jest używany jako nazwa pliku FIFO w /tmp, co pozwala lokalnym użytkownikom na enumerację aktywnych sesji.

Ocena ryzyka

Atakujący może odczytać ekran terminala ofiary, wstrzykiwać naciśnięcia klawiszy (prowadząc do wykonania kodu na poziomie OS) lub przerwać sesję, co stanowi poważne zagrożenie dla poufności i integralności systemu.

Rekomendacja

Należy natychmiast zaktualizować bibliotekę urwid do wersji używającej kryptograficznie bezpiecznego generatora liczb losowych oraz unikać przechowywania identyfikatorów sesji w /tmp.

Powiązane podatności

Oryginalny opis (angielski, źródło NVD)

The urwid web display backend (urwid/display/web.py) generates web session identifiers (urwid_id) in Screen.start() by concatenating two random.randrange(10**9) calls that use Python's Mersenne Twister PRNG, which is not cryptographically secure. Each call consumes approximately 30 bits of PRNG state, and the Mersenne Twister internal state is approximately 19,937 bits, so an attacker who observes approximately 334 session IDs (for example via the X-Urwid-ID HTTP response header) can fully reconstruct the internal state and predict all past and future session IDs (Path B). The same identifier is also used as the filename of a FIFO created in the world-listable /tmp directory (for example /tmp/urwid375487765176907690.in), so any local user on the host can list /tmp to enumerate active session tokens directly (Path A). With a valid session ID, an attacker can read the victim's terminal screen via the polling endpoint, inject keystrokes into the victim's session (yielding OS-level code execution with the session owner's privileges if the session runs a shell), and inject exit sequences or flood the FIFO to terminate or crash the session. A prior Bandit S311 warning on this usage was suppressed with # noqa: S311 rather than fixed

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS