English version →
Webアプリケーション
CVE-2026-9323 high CVSS 8.1

The urwid web display backend (urwid/display/web.py) generates web session identifiers (urwid_id)...

概要

The urwid web display backend (urwid/display/web.py) generates web session identifiers (urwid_id)...

原文の説明

取得元が公開している説明をそのまま載せています (多くは英語)。

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

出典: NIST National Vulnerability Database NVD GitHub Advisory

AI要約

外部の AI が作成した要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

urwidのWebディスプレイバックエンドにおいて、PythonのMersenne Twisterを用いて生成されるセッションIDが暗号学的に安全でないため、攻撃者がセッションIDを予測できる可能性があります。334のセッションIDを観測することで内部状態を再構成でき、過去および将来のセッションIDを予測可能となります。これにより、攻撃者は被害者のセッションを乗っ取り、OSレベルのコード実行が可能です。

❓ 何が問題か

セッションIDが暗号学的に安全でない方法で生成され、予測可能。

📍 影響範囲

urwidのWebディスプレイバックエンド (urwid/display/web.py)。

🔥 重要度

攻撃者がセッションIDを予測し、セッションを乗っ取りOSレベルのコード実行が可能。

🔧 修正方法

セッションIDの生成には暗号学的に安全な乱数生成器を使用する。

🛡️ 暫定回避

セッションIDの生成方法を一時的に変更し、予測されにくい方法を用いる。

🔍 検知方法

セッションIDが予測可能であるかをテストし、安全でない生成方法を識別する。

ディストリビューション別の修正状況

各ディストリビューションが公開している、この CVE の修正パッケージ

参照URL

当サイトでは、アクセス解析と広告の効果測定のために Cookie を使います。株式会社Game のサイト共通の設定です。 詳しく