FreeBSD-SA-05:20.cvsbug "Race condition in cvsbug"

The FreeBSD Project よりセキュリティ勧告が出ました。要点を以下にまとめます。

  • 未稿

セキュリティ勧告は ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-05:20.cvsbug.asc にあります。
以下は上記のセキュリティ勧告の一部とその訳文です。ただし品質は保証致しません。

0. 改訂履歴 - Revision History

v1.0 2005-07-07
Initial release.
v1.1 2005-07-09
Additional related issues fixed in FreeBSD 4.10 and 5.3.

I. 背景 - Background

cvsbug(1) is a utility for reporting problems in the CVS revision control system. It is based on the GNATS send-pr(1) utility.
cvsbug(1)は、CVS リビジョンコントロールシステム中の問題を報告するためのユーティリィティです。それは GNATS send-pr(1)ユーティリィティを基にしています。

II. 問題の詳細 - Problem Description

A temporary file is created, used, deleted, and then re-created with the same name. This creates a window during which an attacker could replace the file with a link to another file. While cvsbug(1) is based on the send-pr(1) utility, this problem does not exist in the version of send-pr(1) distributed with FreeBSD.
テンポラリファイルは同じ名前で作成、使用、削除されたあと、改変されます。これは、攻撃者がファイルを別のファイルへのリンクに取り替えることができる窓口をつくります。cvsbug(1)は send-pr(1)ユーティリィティに基づいていますが、この問題は FreeBSD の配布する send-pr(1)版に存在しません。
In FreeBSD 4.10 and 5.3, some additional problems exist concerning temporary file usage in both cvsbug(1) and send-pr(1).
FreeBSD 4.10および5.3では、cvsbug(1)と send-pr(1)両方のテンポラリファイル使用法に関して、いくつか追加の問題が存在します。

III. 影響範囲 - Impact

A local attacker could cause data to be written to any file to which the user running cvsbug(1) (or send-pr(1) in FreeBSD 4.10 and 5.3) has write access. This may cause damage in itself (e.g., by destroying important system files or documents) or may be used to obtain elevated privileges.
ローカルの攻撃者は、cvsbug(1)(または FreeBSD 4.10 と 5.3 の send-pr(1))を実行するユーザが書き込みアクセス権を持っているどのファイルにもデータを書かせることができます。これは、本質的に(例えば重要なシステムファイルあるいはドキュメントの破壊によって)損害を引き起こすかもしれないし、あるいは高い特権を得るために使用されるかもしれません。

IV. 回避方法 - Workaround

Do not use the cvsbug(1) utility on any system with untrusted users.
信頼されないユーザのいる任意のシステム上でcvsbug(1)ユーティリィティを使用しないでください。
Do not use the send-pr(1) utility on a FreeBSD 4.10 or 5.3 system with untrusted users.
信頼されないユーザのいる FreeBSD 4.10 と 5.3 システム上でcvsbug(1)ユーティリィティを使用しないでください。

<