| タイトル | Pavel OdintsovのFastNetMonにおけるリンク解釈に関する脆弱性 |
|---|---|
| 概要 | FastNetMon Community Edition バージョン1.2.9までには、/tmp 内の予測可能なファイルパスを介したローカルのシンボリックリンク攻撃の脆弱性があります。統計ファイルのパスはデフォルトで '/tmp/fastnetmon.dat' です(src/fastnetmon.cpp の159行目)。print_screen_contents_into_file() 関数(src/fastnetmon_logic.cpp の2186行目)は、シンボリックリンクを確認せず、または O_NOFOLLOW を使用せずに std::ios::trunc でこのパスを開きます。さらに、2190行目の chmod() 呼び出しは、渡された file_path パラメータに関係なく常に cli_stats_file_path に対して操作を行い(誤った権限を適用するバグ)ます。デーモン化時には umask が0に設定されます(src/fastnetmon.cpp の1821行目)。これにより、すべての作成されたファイルが全ユーザーに書き込み可能になります。ローカル攻撃者はこれを悪用し、FastNetMon プロセスのユーザー(通常は root)の権限で任意のファイルを上書きすることが可能です。 |
| 想定される影響 | ・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月26日0:00 |
| 登録日 | 2026年5月29日11:16 |
| 最終更新日 | 2026年5月29日11:16 |
| CVSS3.0 : 警告 | |
| スコア | 5.5 |
|---|---|
| ベクター | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年05月29日] 掲載 |
2026年5月29日11:16 |
| 概要 | FastNetMon Community Edition through 1.2.9 is vulnerable to a local symlink attack via predictable file paths in /tmp. The statistics file path defaults to '/tmp/fastnetmon.dat' (src/fastnetmon.cpp line 159). The print_screen_contents_into_file() function (src/fastnetmon_logic.cpp line 2186) opens this path with std::ios::trunc without checking for symlinks or using O_NOFOLLOW. Additionally, the chmod() call on line 2190 always operates on cli_stats_file_path regardless of which file_path parameter was passed (a bug that applies wrong permissions), and the umask is set to 0 during daemonization (src/fastnetmon.cpp line 1821), making all created files world-writable. A local attacker can exploit this to overwrite arbitrary files as the FastNetMon process user (typically root). |
|---|---|
| 公表日 | 2026年5月27日2:16 |
| 登録日 | 2026年5月27日4:08 |
| 最終更新日 | 2026年5月27日23:42 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:pavel-odintsov:fastnetmon:*:*:*:*:community:*:*:* | 1.2.9 | ||||