製品・ソフトウェアに関する情報
Ubuntu の Ubuntu clamav-milter.init スクリプトにおけるアクセス制限を回避される脆弱性
Title Ubuntu の Ubuntu clamav-milter.init スクリプトにおけるアクセス制限を回避される脆弱性
Summary

Ubuntu の clamav-milter の Ubuntu clamav-milter.init スクリプトは、clamav アカウントにカレントワーキングディレクトリのオーナーシップを設定するため、アクセス制限を回避される脆弱性が存在します。

Possible impacts ローカルユーザにより、カレントワーキングディレクトリを読み取られる、または書き込み操作を実行されることで、アクセス制限を回避される可能性があります。
Solution

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date May 4, 2009, midnight
Registration Date Dec. 20, 2012, 7:10 p.m.
Last Update Dec. 20, 2012, 7:10 p.m.
CVSS2.0 : 警告
Score 6.8
Vector AV:L/AC:L/Au:S/C:C/I:C/A:C
Affected System
Canonical
Linux 9.04
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
0 [2012年12月20日]
  掲載
Feb. 17, 2018, 10:37 a.m.

NVD Vulnerability Information
CVE-2009-1601
Summary

The Ubuntu clamav-milter.init script in clamav-milter before 0.95.1+dfsg-1ubuntu1.2 in Ubuntu 9.04 sets the ownership of the current working directory to the clamav account, which might allow local users to bypass intended access restrictions via read or write operations involving this directory.

Summary

Per https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/365823

A clean install of clamav-milter (0.95.1+dfsg-1ubuntu1.1) causes the root directory to become owned by the clamav user.

This was witnessed breaking ssh chroot environment.

TEST CASE:
- purge any existing clamav-milter installation, make sure you don't have any old /etc/init.d/clamav-milter init script around
- check root directory's owner (should be root:root)
- sudo apt-get install clamav-milter (the last one in Jaunty is 0.95.1+dfsg-1ubuntu1.1)
- after installing the package, clamav-milter will start automatically (at least 'init.d/clamav-milter start' will execute)
- check the root directory's owner:

Publication Date May 12, 2009, 12:30 a.m.
Registration Date Jan. 29, 2021, 1:18 p.m.
Last Update Aug. 17, 2017, 10:30 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:o:ubuntu:linux:9.04:*:*:*:*:*:*:*
Related information, measures and tools
Common Vulnerabilities List