ID DEBIAN_DSA-644.NASL Type nessus Reporter Tenable Modified 2013-05-18T00:00:00
Description
Danny Lungstrom discovered a vulnerability in chbg, a tool to change background pictures. A maliciously crafted configuration/scenario file could overflow a buffer and lead to the execution of arbitrary code on the victim's machine.
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Debian Security Advisory DSA-644. The text
# itself is copyright (C) Software in the Public Interest, Inc.
#
include("compat.inc");
if (description)
{
script_id(16186);
script_version("$Revision: 1.16 $");
script_cvs_date("$Date: 2013/05/18 00:15:57 $");
script_cve_id("CVE-2004-1264");
script_osvdb_id(12436);
script_xref(name:"DSA", value:"644");
script_name(english:"Debian DSA-644-1 : chbg - buffer overflow");
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:
"Danny Lungstrom discovered a vulnerability in chbg, a tool to change
background pictures. A maliciously crafted configuration/scenario file
could overflow a buffer and lead to the execution of arbitrary code on
the victim's machine."
);
script_set_attribute(
attribute:"see_also",
value:"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=285904"
);
script_set_attribute(
attribute:"see_also",
value:"http://www.debian.org/security/2005/dsa-644"
);
script_set_attribute(
attribute:"solution",
value:
"Upgrade the chbg package.
For the stable distribution (woody) this problem has been fixed in
version 1.5-1woody1."
);
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:chbg");
script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:3.0");
script_set_attribute(attribute:"patch_publication_date", value:"2005/01/18");
script_set_attribute(attribute:"plugin_publication_date", value:"2005/01/18");
script_set_attribute(attribute:"vuln_publication_date", value:"2004/12/16");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_copyright(english:"This script is Copyright (C) 2005-2013 Tenable Network Security, Inc.");
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:"3.0", prefix:"chbg", reference:"1.5-1woody1")) 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");
{"id": "DEBIAN_DSA-644.NASL", "bulletinFamily": "scanner", "title": "Debian DSA-644-1 : chbg - buffer overflow", "description": "Danny Lungstrom discovered a vulnerability in chbg, a tool to change background pictures. A maliciously crafted configuration/scenario file could overflow a buffer and lead to the execution of arbitrary code on the victim's machine.", "published": "2005-01-18T00:00:00", "modified": "2013-05-18T00:00:00", "cvss": {"score": 10.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "href": "https://www.tenable.com/plugins/index.php?view=single&id=16186", "reporter": "Tenable", "references": ["http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=285904", "http://www.debian.org/security/2005/dsa-644"], "cvelist": ["CVE-2004-1264"], "type": "nessus", "lastseen": "2017-10-29T13:34:33", "history": [{"bulletin": {"bulletinFamily": "scanner", "cpe": [], "cvelist": ["CVE-2004-1264"], "cvss": {"score": 10.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "description": "Danny Lungstrom discovered a vulnerability in chbg, a tool to change background pictures. A maliciously crafted configuration/scenario file could overflow a buffer and lead to the execution of arbitrary code on the victim's machine.", "edition": 1, "enchantments": {}, "hash": "ecfdb3cd3e27f2268d55cbbac7bfcb34557830c8e1b71b4569fcf04d9047facd", "hashmap": [{"hash": "fdeddd7db1c053a7cd8f4abd25c2a458", "key": "description"}, {"hash": "9cf00d658b687f030ebe173a0528c567", "key": "reporter"}, {"hash": "a992d63e42454ac83664b954b383ab7b", "key": "href"}, {"hash": "a36343fd880f2aa8d09b1896aad01950", "key": "sourceData"}, {"hash": "2bdabeb49c44761f9565717ab0e38165", "key": "cvss"}, {"hash": "894d4b4665b798cc65d67cd6a32706aa", "key": "pluginID"}, {"hash": "677b3060e44a58b201122020e57a9859", "key": "title"}, {"hash": "ade83d08157971ec288729238444524a", "key": "cvelist"}, {"hash": "f710bfb9b989f12d50bfe4a324cc6c97", "key": "modified"}, {"hash": "bbdaea376f500d25f6b0c1050311dd07", "key": "bulletinFamily"}, {"hash": "5e0bd03bec244039678f2b955a2595aa", "key": "type"}, {"hash": "3a653249445f824ff15af8e4bec29593", "key": "published"}, {"hash": "587a9f83af06ce74ea2dcb1c42361d91", "key": "references"}, {"hash": "d41d8cd98f00b204e9800998ecf8427e", "key": "cpe"}, {"hash": "74562d71b087df9eabd0c21f99b132cc", "key": "naslFamily"}], "history": [], "href": "https://www.tenable.com/plugins/index.php?view=single&id=16186", "id": "DEBIAN_DSA-644.NASL", "lastseen": "2016-09-26T17:23:33", "modified": "2013-05-18T00:00:00", "naslFamily": "Debian Local Security Checks", "objectVersion": "1.2", "pluginID": "16186", "published": "2005-01-18T00:00:00", "references": ["http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=285904", "http://www.debian.org/security/2005/dsa-644"], "reporter": "Tenable", "sourceData": "#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from Debian Security Advisory DSA-644. The text \n# itself is copyright (C) Software in the Public Interest, Inc.\n#\n\ninclude(\"compat.inc\");\n\nif (description)\n{\n script_id(16186);\n script_version(\"$Revision: 1.16 $\");\n script_cvs_date(\"$Date: 2013/05/18 00:15:57 $\");\n\n script_cve_id(\"CVE-2004-1264\");\n script_osvdb_id(12436);\n script_xref(name:\"DSA\", value:\"644\");\n\n script_name(english:\"Debian DSA-644-1 : chbg - buffer overflow\");\n script_summary(english:\"Checks dpkg output for the updated package\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote Debian host is missing a security-related update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"Danny Lungstrom discovered a vulnerability in chbg, a tool to change\nbackground pictures. A maliciously crafted configuration/scenario file\ncould overflow a buffer and lead to the execution of arbitrary code on\nthe victim's machine.\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=285904\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.debian.org/security/2005/dsa-644\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\n\"Upgrade the chbg package.\n\nFor the stable distribution (woody) this problem has been fixed in\nversion 1.5-1woody1.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:debian:debian_linux:chbg\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:debian:debian_linux:3.0\");\n\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2005/01/18\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2005/01/18\");\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2004/12/16\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2005-2013 Tenable Network Security, Inc.\");\n script_family(english:\"Debian Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/Debian/release\", \"Host/Debian/dpkg-l\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"debian_package.inc\");\n\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nif (!get_kb_item(\"Host/Debian/release\")) audit(AUDIT_OS_NOT, \"Debian\");\nif (!get_kb_item(\"Host/Debian/dpkg-l\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\n\nflag = 0;\nif (deb_check(release:\"3.0\", prefix:\"chbg\", reference:\"1.5-1woody1\")) flag++;\n\nif (flag)\n{\n if (report_verbosity > 0) security_hole(port:0, extra:deb_report_get());\n else security_hole(0);\n exit(0);\n}\nelse audit(AUDIT_HOST_NOT, \"affected\");\n", "title": "Debian DSA-644-1 : chbg - buffer overflow", "type": "nessus", "viewCount": 0}, "differentElements": ["cpe"], "edition": 1, "lastseen": "2016-09-26T17:23:33"}], "edition": 2, "hashmap": [{"key": "bulletinFamily", "hash": "bbdaea376f500d25f6b0c1050311dd07"}, {"key": "cpe", "hash": "c211b720972e21b5d8f20302cea21cbf"}, {"key": "cvelist", "hash": "ade83d08157971ec288729238444524a"}, {"key": "cvss", "hash": "2bdabeb49c44761f9565717ab0e38165"}, {"key": "description", "hash": "fdeddd7db1c053a7cd8f4abd25c2a458"}, {"key": "href", "hash": "a992d63e42454ac83664b954b383ab7b"}, {"key": "modified", "hash": "f710bfb9b989f12d50bfe4a324cc6c97"}, {"key": "naslFamily", "hash": "74562d71b087df9eabd0c21f99b132cc"}, {"key": "pluginID", "hash": "894d4b4665b798cc65d67cd6a32706aa"}, {"key": "published", "hash": "3a653249445f824ff15af8e4bec29593"}, {"key": "references", "hash": "587a9f83af06ce74ea2dcb1c42361d91"}, {"key": "reporter", "hash": "9cf00d658b687f030ebe173a0528c567"}, {"key": "sourceData", "hash": "a36343fd880f2aa8d09b1896aad01950"}, {"key": "title", "hash": "677b3060e44a58b201122020e57a9859"}, {"key": "type", "hash": "5e0bd03bec244039678f2b955a2595aa"}], "hash": "39bc6247e1e188b768827983ae5280d97163b80ccab15bda33698cfecffd8d8e", "viewCount": 0, "enchantments": {"vulnersScore": 7.5}, "objectVersion": "1.3", "sourceData": "#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from Debian Security Advisory DSA-644. The text \n# itself is copyright (C) Software in the Public Interest, Inc.\n#\n\ninclude(\"compat.inc\");\n\nif (description)\n{\n script_id(16186);\n script_version(\"$Revision: 1.16 $\");\n script_cvs_date(\"$Date: 2013/05/18 00:15:57 $\");\n\n script_cve_id(\"CVE-2004-1264\");\n script_osvdb_id(12436);\n script_xref(name:\"DSA\", value:\"644\");\n\n script_name(english:\"Debian DSA-644-1 : chbg - buffer overflow\");\n script_summary(english:\"Checks dpkg output for the updated package\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote Debian host is missing a security-related update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"Danny Lungstrom discovered a vulnerability in chbg, a tool to change\nbackground pictures. A maliciously crafted configuration/scenario file\ncould overflow a buffer and lead to the execution of arbitrary code on\nthe victim's machine.\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=285904\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.debian.org/security/2005/dsa-644\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\n\"Upgrade the chbg package.\n\nFor the stable distribution (woody) this problem has been fixed in\nversion 1.5-1woody1.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:debian:debian_linux:chbg\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:debian:debian_linux:3.0\");\n\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2005/01/18\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2005/01/18\");\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2004/12/16\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2005-2013 Tenable Network Security, Inc.\");\n script_family(english:\"Debian Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/Debian/release\", \"Host/Debian/dpkg-l\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"debian_package.inc\");\n\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nif (!get_kb_item(\"Host/Debian/release\")) audit(AUDIT_OS_NOT, \"Debian\");\nif (!get_kb_item(\"Host/Debian/dpkg-l\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\n\nflag = 0;\nif (deb_check(release:\"3.0\", prefix:\"chbg\", reference:\"1.5-1woody1\")) flag++;\n\nif (flag)\n{\n if (report_verbosity > 0) security_hole(port:0, extra:deb_report_get());\n else security_hole(0);\n exit(0);\n}\nelse audit(AUDIT_HOST_NOT, \"affected\");\n", "naslFamily": "Debian Local Security Checks", "pluginID": "16186", "cpe": ["cpe:/o:debian:debian_linux:3.0", "p-cpe:/a:debian:debian_linux:chbg"]}
{"result": {"cve": [{"id": "CVE-2004-1264", "type": "cve", "title": "CVE-2004-1264", "description": "Buffer overflow in the simplify_path function in config.c for ChBg 1.5 allows remote attackers to execute arbitrary code via a crafted chbg scenario file.", "published": "2005-01-10T00:00:00", "cvss": {"score": 10.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2004-1264", "cvelist": ["CVE-2004-1264"], "lastseen": "2017-07-11T11:14:32"}], "exploitdb": [{"id": "EDB-ID:24848", "type": "exploitdb", "title": "ChBg 1.5 Scenario File Overflow Vulnerability", "description": "ChBg 1.5 Scenario File Overflow Vulnerability. CVE-2004-1264. Remote exploit for linux platform", "published": "2004-12-15T00:00:00", "cvss": {"score": 10.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "href": "https://www.exploit-db.com/exploits/24848/", "cvelist": ["CVE-2004-1264"], "lastseen": "2016-02-03T00:08:40"}], "debian": [{"id": "DSA-644", "type": "debian", "title": "chbg -- buffer overflow", "description": "Danny Lungstrom discovered a vulnerability in chbg, a tool to change background pictures. A maliciously crafted configuration/scenario file could overflow a buffer and lead to the execution of arbitrary code on the victim's machine.\n\nFor the stable distribution (woody) this problem has been fixed in version 1.5-1woody1.\n\nFor the unstable distribution (sid) this problem has been fixed in version 1.5-4.\n\nWe recommend that you upgrade your chbg package.", "published": "2005-01-18T00:00:00", "cvss": {"score": 10.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "href": "http://www.debian.org/security/dsa-644", "cvelist": ["CVE-2004-1264"], "lastseen": "2016-09-02T18:29:55"}], "osvdb": [{"id": "OSVDB:12436", "type": "osvdb", "title": "ChBg config.c simplify_path() Function Overflow", "description": "# No description provided by the source\n\n## References:\nVendor URL: http://sourceforge.net/projects/chbg/\n[Vendor Specific Advisory URL](http://www.debian.org/security/2005/dsa-644)\n[Vendor Specific Advisory URL](http://www.mandrakesoft.com/security/advisories?name=MDKSA-2005:027)\nSecurity Tracker: 1012581\n[Secunia Advisory ID:13894](https://secuniaresearch.flexerasoftware.com/advisories/13894/)\n[Secunia Advisory ID:13529](https://secuniaresearch.flexerasoftware.com/advisories/13529/)\nOther Advisory URL: http://tigger.uic.edu/~jlongs2/holes/chbg.txt\nMail List Post: http://archives.neohapsis.com/archives/bugtraq/2004-12/0195.html\n[CVE-2004-1264](https://vulners.com/cve/CVE-2004-1264)\n", "published": "2004-12-16T01:12:12", "cvss": {"score": 10.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "href": "https://vulners.com/osvdb/OSVDB:12436", "cvelist": ["CVE-2004-1264"], "lastseen": "2017-04-28T13:20:08"}], "openvas": [{"id": "OPENVAS:53477", "type": "openvas", "title": "Debian Security Advisory DSA 644-1 (chbg)", "description": "The remote host is missing an update to chbg\nannounced via advisory DSA 644-1.", "published": "2008-01-17T00:00:00", "cvss": {"score": 10.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "href": "http://plugins.openvas.org/nasl.php?oid=53477", "cvelist": ["CVE-2004-1264"], "lastseen": "2017-07-24T12:50:24"}], "nessus": [{"id": "MANDRAKE_MDKSA-2005-027.NASL", "type": "nessus", "title": "Mandrake Linux Security Advisory : chbg (MDKSA-2005:027)", "description": "A vulnerability in chbg was discovered by Danny Lungstrom. A maliciously-crafted configuration/scenario file could overflow a buffer leading to the potential execution of arbitrary code.\n\nThe updated packages are patched to prevent the problem.", "published": "2005-02-02T00:00:00", "cvss": {"score": 10.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:COMPLETE/I:COMPLETE/A:COMPLETE/"}, "href": "https://www.tenable.com/plugins/index.php?view=single&id=16293", "cvelist": ["CVE-2004-1264"], "lastseen": "2017-10-29T13:34:19"}]}}