Vulnerabilities > CVE-2009-0364 - USE of Externally-Controlled Format String vulnerability in Citadel Webcit

047910
CVSS 7.5 - HIGH
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
network
low complexity
citadel
CWE-134
nessus

Summary

Format string vulnerability in the mini_calendar component in Citadel.org WebCit 7.22, and other versions before 7.39, allows remote attackers to execute arbitrary code via unspecified vectors.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Format String Injection
    An attacker includes formatting characters in a string input field on the target application. Most applications assume that users will provide static text and may respond unpredictably to the presence of formatting character. For example, in certain functions of the C programming languages such as printf, the formatting character %s will print the contents of a memory location expecting this location to identify a string and the formatting character %n prints the number of DWORD written in the memory. An attacker can use this to read or write to memory locations or files, or simply to manipulate the value of the resulting text in unexpected ways. Reading or writing memory may result in program crashes and writing memory could result in the execution of arbitrary code if the attacker can write to the program stack.
  • String Format Overflow in syslog()
    This attack targets the format string vulnerabilities in the syslog() function. An attacker would typically inject malicious input in the format string parameter of the syslog function. This is a common problem, and many public vulnerabilities and associated exploits have been posted.

Nessus

NASL familyDebian Local Security Checks
NASL idDEBIAN_DSA-1752.NASL
descriptionWilfried Goesgens discovered that WebCit, the web-based user interface for the Citadel groupware system, contains a format string vulnerability in the mini_calendar component, possibly allowing arbitrary code execution (CVE-2009-0364 ).
last seen2020-06-01
modified2020-06-02
plugin id35993
published2009-03-24
reporterThis script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/35993
titleDebian DSA-1752-1 : webcit - format string vulnerability
code
#%NASL_MIN_LEVEL 80502
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were  
# extracted from Debian Security Advisory DSA-1752. The text 
# itself is copyright (C) Software in the Public Interest, Inc.
#

include("compat.inc");

if (description)
{
  script_id(35993);
  script_version("1.13");
  script_cvs_date("Date: 2019/08/02 13:32:21");

  script_cve_id("CVE-2009-0364");
  script_xref(name:"DSA", value:"1752");

  script_name(english:"Debian DSA-1752-1 : webcit - format string vulnerability");
  script_summary(english:"Checks dpkg output for the updated package");

  script_set_attribute(
    attribute:"synopsis", 
    value:"The remote Debian host is missing a security-related update."
  );
  script_set_attribute(
    attribute:"description", 
    value:
"Wilfried Goesgens discovered that WebCit, the web-based user interface
for the Citadel groupware system, contains a format string
vulnerability in the mini_calendar component, possibly allowing
arbitrary code execution (CVE-2009-0364 )."
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://security-tracker.debian.org/tracker/CVE-2009-0364"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://www.debian.org/security/2009/dsa-1752"
  );
  script_set_attribute(
    attribute:"solution", 
    value:
"Upgrade the webcit packages.

For the stable distribution (lenny), this problem has been fixed in
version 7.37-dfsg-7."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_cwe_id(134);

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:webcit");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:5.0");

  script_set_attribute(attribute:"patch_publication_date", value:"2009/03/23");
  script_set_attribute(attribute:"plugin_publication_date", value:"2009/03/24");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
  script_family(english:"Debian Local Security Checks");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");

  exit(0);
}


include("audit.inc");
include("debian_package.inc");


if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian");
if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);


flag = 0;
if (deb_check(release:"5.0", prefix:"citadel-webcit", reference:"7.37-dfsg-7")) flag++;

if (flag)
{
  if (report_verbosity > 0) security_hole(port:0, extra:deb_report_get());
  else security_hole(0);
  exit(0);
}
else audit(AUDIT_HOST_NOT, "affected");

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 34206 CVE(CAN) ID: CVE-2009-0364 WebCit是Citadel邮件和协作组件所使用的基于WEB的用户界面。 webcit模块calendar_view.c文件的embeddable_mini_calendar()函数中存在格式串漏洞,远程攻击者可以通过向服务器提交特制的URL请求导致注入并执行任意指令。 Citadel/UX webcit &lt; 7.39 厂商补丁: Debian ------ Debian已经为此发布了一个安全公告(DSA-1752-1)以及相应补丁: DSA-1752-1:New webcit packages fix potential remote code execution 链接:<a href=http://www.debian.org/security/2009/dsa-1752 target=_blank rel=external nofollow>http://www.debian.org/security/2009/dsa-1752</a> 补丁下载: Source archives: <a href=http://security.debian.org/pool/updates/main/w/webcit/webcit_7.37-dfsg.orig.tar.gz target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/webcit_7.37-dfsg.orig.tar.gz</a> Size/MD5 checksum: 1192317 e3e47149a6553e43694e826f4885ba46 <a href=http://security.debian.org/pool/updates/main/w/webcit/webcit_7.37-dfsg-7.diff.gz target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/webcit_7.37-dfsg-7.diff.gz</a> Size/MD5 checksum: 18735 f30f31bff85ef9cc40aba5bf5f3c1278 <a href=http://security.debian.org/pool/updates/main/w/webcit/webcit_7.37-dfsg-7.dsc target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/webcit_7.37-dfsg-7.dsc</a> Size/MD5 checksum: 1253 f2b409fdfbde0c38af85070180a4321f alpha architecture (DEC Alpha) <a href=http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_alpha.deb target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_alpha.deb</a> Size/MD5 checksum: 547908 84e6dfa88008d2c51070803d0af04148 amd64 architecture (AMD x86_64 (AMD64)) <a href=http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_amd64.deb target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_amd64.deb</a> Size/MD5 checksum: 509426 4e9e9b518be1a1e87cd08d0def32f612 arm architecture (ARM) <a href=http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_arm.deb target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_arm.deb</a> Size/MD5 checksum: 505092 a3027a329b7a17166eddafe66eff5fde armel architecture (ARM EABI) <a href=http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_armel.deb target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_armel.deb</a> Size/MD5 checksum: 504990 d6df9145a39f0be111667d14528a0a52 hppa architecture (HP PA RISC) <a href=http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_hppa.deb target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_hppa.deb</a> Size/MD5 checksum: 527860 f46e26bac6a926b6b7a28f9f7557077b i386 architecture (Intel ia32) <a href=http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_i386.deb target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_i386.deb</a> Size/MD5 checksum: 496954 43aac6120f334b606edddd9f9a182b44 ia64 architecture (Intel ia64) <a href=http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_ia64.deb target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_ia64.deb</a> Size/MD5 checksum: 605578 2231aac4aaa8ef730485ea8d40c5019b mips architecture (MIPS (Big Endian)) <a href=http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_mips.deb target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_mips.deb</a> Size/MD5 checksum: 512552 cc2904da25b4ec9e70d56b63d50e57aa mipsel architecture (MIPS (Little Endian)) <a href=http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_mipsel.deb target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_mipsel.deb</a> Size/MD5 checksum: 511294 e0e4de0530cb84f0472765fb2bd6b62f powerpc architecture (PowerPC) <a href=http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_powerpc.deb target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_powerpc.deb</a> Size/MD5 checksum: 522134 a8b1970f336c836884eddb62c614f436 s390 architecture (IBM S/390) <a href=http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_s390.deb target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_s390.deb</a> Size/MD5 checksum: 505406 621a33e619037bd739bf45451ef589eb sparc architecture (Sun SPARC/UltraSPARC) <a href=http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_sparc.deb target=_blank rel=external nofollow>http://security.debian.org/pool/updates/main/w/webcit/citadel-webcit_7.37-dfsg-7_sparc.deb</a> Size/MD5 checksum: 507950 1d22cf3b4f1faf910d031acb6504bfae 补丁安装方法: 1. 手工安装补丁包: 首先,使用下面的命令来下载补丁软件: # wget url (url是补丁下载链接地址) 然后,使用下面的命令来安装补丁: # dpkg -i file.deb (file是相应的补丁名) 2. 使用apt-get自动安装补丁包: 首先,使用下面的命令更新内部数据库: # apt-get update 然后,使用下面的命令安装更新软件包: # apt-get upgrade
idSSV:4952
last seen2017-11-19
modified2009-03-25
published2009-03-25
reporterRoot
titleWebCit Mini_Calendar组件格式串漏洞