[Pkg-clamav-devel] Bug#781088: clamav-freshclam: illegal characters in init script

Kiss Gabor kissg at bolha.lvs.iif.hu
Tue Mar 24 11:07:03 UTC 2015


Package: clamav-freshclam
Version: 0.98.6+dfsg-0+deb7u1
Severity: normal

Dear Maintainer,

Please check pathfind() function in /etc/init.d/clamav-freshclam.

All double quotes (", ASCII 34, 0x22) are replaced by strange UTF-8
byte sequences e2 80 9d (U+201D, RIGHT DOUBLE QUOTATION MARK).
I guess somebody copied this code from a web page... :-(

The latest 0.98.6+dfsg-1 also suffers from this.

Gabor

-- Package-specific info:
--- configuration ---
Checking configuration files in /etc/clamav

Config file: clamd.conf
-----------------------
LogFile = "/var/log/clamav/clamav.log"
StatsHostID = "auto"
StatsEnabled disabled
StatsPEDisabled = "yes"
StatsTimeout = "10"
LogFileUnlock disabled
LogFileMaxSize = "4294967295"
LogTime = "yes"
LogClean disabled
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
LogRotate = "yes"
ExtendedDetectionInfo = "yes"
PidFile = "/var/run/clamav/clamd.pid"
TemporaryDirectory disabled
DatabaseDirectory = "/var/lib/clamav"
OfficialDatabaseOnly disabled
LocalSocket = "/var/run/clamav/clamd.ctl"
LocalSocketGroup = "clamav"
LocalSocketMode = "666"
FixStaleSocket = "yes"
TCPSocket disabled
TCPAddr disabled
MaxConnectionQueueLength = "15"
StreamMaxLength = "26214400"
StreamMinPort = "1024"
StreamMaxPort = "2048"
MaxThreads = "12"
ReadTimeout = "180"
CommandReadTimeout = "5"
SendBufTimeout = "200"
MaxQueue = "100"
IdleTimeout = "30"
ExcludePath disabled
MaxDirectoryRecursion = "15"
FollowDirectorySymlinks disabled
FollowFileSymlinks disabled
CrossFilesystems = "yes"
SelfCheck = "3600"
DisableCache disabled
VirusEvent disabled
ExitOnOOM disabled
AllowAllMatchScan = "yes"
Foreground disabled
Debug disabled
LeaveTemporaryFiles disabled
User = "clamav"
AllowSupplementaryGroups = "yes"
Bytecode = "yes"
BytecodeSecurity = "TrustSigned"
BytecodeTimeout = "60000"
BytecodeUnsigned disabled
BytecodeMode = "Auto"
DetectPUA disabled
ExcludePUA disabled
IncludePUA disabled
AlgorithmicDetection = "yes"
ScanPE = "yes"
ScanELF = "yes"
DetectBrokenExecutables disabled
ScanMail = "yes"
ScanPartialMessages disabled
PhishingSignatures = "yes"
PhishingScanURLs = "yes"
PhishingAlwaysBlockCloak disabled
PhishingAlwaysBlockSSLMismatch disabled
PartitionIntersection disabled
HeuristicScanPrecedence disabled
StructuredDataDetection disabled
StructuredMinCreditCardCount = "3"
StructuredMinSSNCount = "3"
StructuredSSNFormatNormal = "yes"
StructuredSSNFormatStripped disabled
ScanHTML = "yes"
ScanOLE2 = "yes"
OLE2BlockMacros disabled
ScanPDF = "yes"
ScanSWF = "yes"
ScanArchive = "yes"
ArchiveBlockEncrypted disabled
ForceToDisk disabled
MaxScanSize = "104857600"
MaxFileSize = "26214400"
MaxRecursion = "10"
MaxFiles = "10000"
MaxEmbeddedPE = "10485760"
MaxHTMLNormalize = "10485760"
MaxHTMLNoTags = "2097152"
MaxScriptNormalize = "5242880"
MaxZipTypeRcg = "1048576"
MaxPartitions = "50"
MaxIconsPE = "100"
ScanOnAccess disabled
OnAccessIncludePath disabled
OnAccessExcludePath disabled
OnAccessExcludeUID disabled
OnAccessMaxFileSize = "5242880"
DevACOnly disabled
DevACDepth disabled
DevPerformance disabled
DevLiblog disabled
DisableCertCheck disabled

Config file: freshclam.conf
---------------------------
StatsHostID disabled
StatsEnabled disabled
StatsTimeout disabled
LogFileMaxSize = "4294967295"
LogTime = "yes"
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
LogRotate = "yes"
PidFile = "/var/run/clamav/freshclam.pid"
DatabaseDirectory = "/var/lib/clamav"
Foreground disabled
Debug disabled
AllowSupplementaryGroups disabled
UpdateLogFile = "/var/log/clamav/freshclam.log"
DatabaseOwner = "clamav"
Checks = "24"
DNSDatabaseInfo = "current.cvd.clamav.net"
DatabaseMirror = "db.local.clamav.net", "database.clamav.net"
PrivateMirror disabled
MaxAttempts = "5"
ScriptedUpdates = "yes"
TestDatabases = "yes"
CompressLocalDatabase disabled
ExtraDatabase disabled
DatabaseCustomURL disabled
HTTPProxyServer disabled
HTTPProxyPort disabled
HTTPProxyUsername disabled
HTTPProxyPassword disabled
HTTPUserAgent disabled
NotifyClamd = "/etc/clamav/clamd.conf"
OnUpdateExecute disabled
OnErrorExecute disabled
OnOutdatedExecute disabled
LocalIPAddress disabled
ConnectTimeout = "30"
ReceiveTimeout = "30"
SubmitDetectionStats disabled
DetectionStatsCountry disabled
DetectionStatsHostID disabled
SafeBrowsing disabled
Bytecode = "yes"

clamav-milter.conf not found

Software settings
-----------------
Version: 0.98.6
Optional features supported: MEMPOOL IPv6 FRESHCLAM_DNS_FIX AUTOIT_EA06 BZIP2 LIBXML2 JSON JIT

Database information
--------------------
Database directory: /var/lib/clamav
main.cvd: version 55, sigs: 2424225, built on Tue Sep 17 16:57:28 2013
[3rd Party] junk.ndb: 50233 sigs
[3rd Party] jurlbl.ndb: 11133 sigs
[3rd Party] phish.ndb: 24795 sigs
[3rd Party] rogue.hdb: 691 sigs
[3rd Party] sanesecurity.ftm: 159 sigs
[3rd Party] scam.ndb: 12297 sigs
[3rd Party] spamimg.hdb: 18 sigs
[3rd Party] winnow_malware.hdb: 2097 sigs
[3rd Party] winnow_malware_links.ndb: 7323 sigs
[3rd Party] honeynet.hdb: 377 sigs
[3rd Party] securiteinfobat.hdb: 2600 sigs
[3rd Party] securiteinfodos.hdb: 4509 sigs
[3rd Party] securiteinfoelf.hdb: 1256 sigs
[3rd Party] securiteinfo.hdb: 389047 sigs
[3rd Party] securiteinfohtml.hdb: 59549 sigs
[3rd Party] securiteinfooffice.hdb: 4264 sigs
[3rd Party] securiteinfopdf.hdb: 738 sigs
[3rd Party] securiteinfosh.hdb: 404 sigs
[3rd Party] mbl.ndb: 0 sig 
daily.cld: version 20231, sigs: 1357060, built on Tue Mar 24 05:48:29 2015
bytecode.cld: version 247, sigs: 41, built on Fri Feb 27 20:27:13 2015
Total number of signatures: 4352816

Platform information
--------------------
uname: Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64
OS: linux-gnu, ARCH: x86_64, CPU: x86_64
zlib version: 1.2.7 (1.2.7), compile flags: a9
Triple: x86_64-pc-linux-gnu
CPU: i686, Little-endian
platform id: 0x0a214f4f0804070201040702

Build information
-----------------
GNU C: 4.7.2 (4.7.2)
GNU C++: 4.7.2 (4.7.2)
CPPFLAGS: -D_FORTIFY_SOURCE=2
CFLAGS: -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
CXXFLAGS: 
LDFLAGS: -Wl,-z,relro
Configure: '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=/usr/include' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib/clamav' '--disable-maintainer-mode' '--disable-dependency-tracking' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -D_FILE_OFFSET_BITS=64' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -D_FILE_OFFSET_BITS=64' 'LDFLAGS=-Wl,-z,relro' '--with-dbdir=/var/lib/clamav' '--sysconfdir=/etc/clamav' '--disable-clamav' '--disable-unrar' '--enable-milter' '--enable-dns-fix' '--with-libjson' '--with-gnu-ld' '-with-system-llvm=/usr/bin/llvm-config' 'build_alias=x86_64-linux-gnu'
sizeof(void*) = 8
Engine flevel: 79, dconf: 79

--- data dir ---
total 198068
-rw-r--r-- 1 clamav clamav   346624 Feb 27 20:58 bytecode.cld
-rw-r--r-- 1 clamav clamav 86866432 Mar 24 06:27 daily.cld
-rw-r--r-- 1 clamav clamav    22549 Feb  5  2013 honeynet.hdb
-rw-r--r-- 1 clamav clamav  6295949 Mar 23 16:51 junk.ndb
-rw-r--r-- 1 clamav clamav  1114733 Mar 24 09:50 jurlbl.ndb
-rw-r--r-- 1 clamav clamav 64720632 Aug 27  2014 main.cvd
-rw-r--r-- 1 clamav clamav      356 Jan 28 23:47 mbl.ndb
-rw-r--r-- 1 clamav clamav      156 Mar 24 11:28 mirrors.dat
-rw-r--r-- 1 clamav clamav  3690307 Mar 23 16:51 phish.ndb
-rw-r--r-- 1 clamav clamav    53403 Mar 23 18:49 rogue.hdb
-rw-r--r-- 1 clamav clamav     9952 Sep  3  2014 sanesecurity.ftm
-rw-r--r-- 1 clamav clamav  1868685 Mar 20 12:51 scam.ndb
-rw-r--r-- 1 clamav clamav 31057190 Mar 23 16:11 securiteinfo.hdb
-rw-r--r-- 1 clamav clamav   200405 Feb  5  2013 securiteinfobat.hdb
-rw-r--r-- 1 clamav clamav   391274 Nov 28  2013 securiteinfodos.hdb
-rw-r--r-- 1 clamav clamav    75040 Jan 21  2014 securiteinfoelf.hdb
-rw-r--r-- 1 clamav clamav  4676072 Mar 23 20:09 securiteinfohtml.hdb
-rw-r--r-- 1 clamav clamav   264154 Feb  5  2013 securiteinfooffice.hdb
-rw-r--r-- 1 clamav clamav    51819 Feb 25 13:51 securiteinfopdf.hdb
-rw-r--r-- 1 clamav clamav    29520 Feb  5  2013 securiteinfosh.hdb
-rw-r--r-- 1 clamav clamav     1148 Oct 28 17:51 spamimg.hdb
-rw-r--r-- 1 clamav clamav   128566 Mar 22 20:45 winnow_malware.hdb
-rw-r--r-- 1 clamav clamav   902923 Mar 24 02:46 winnow_malware_links.ndb

-- System Information:
Debian Release: 7.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages clamav-freshclam depends on:
ii  clamav-base            0.98.6+dfsg-0+deb7u1
ii  debconf [debconf-2.0]  1.5.49
ii  dpkg                   1.16.15
ii  libc6                  2.13-38+deb7u8
ii  libclamav6             0.98.6+dfsg-0+deb7u1
ii  libssl1.0.0            1.0.1e-2+deb7u15
ii  logrotate              3.8.1-4
ii  lsb-base               4.1+Debian8+deb7u1
ii  procps                 1:3.3.3-3
ii  ucf                    3.0025+nmu3
ii  zlib1g                 1:1.2.7.dfsg-13

clamav-freshclam recommends no packages.

Versions of packages clamav-freshclam suggests:
pn  apparmor     <none>
pn  clamav-docs  <none>

-- Configuration Files:
/etc/logcheck/ignore.d.server/clamav-freshclam [Errno 13] Permission denied: u'/etc/logcheck/ignore.d.server/clamav-freshclam'

-- debconf information excluded



More information about the Pkg-clamav-devel mailing list