Cross-Referencing Linux (lxr) CGI v Parameter Traversal Arbitrary File Access
2003-03-12T00:00:00
ID CRLINUX_FILE_READING.NASL Type nessus Reporter This script is Copyright (C) 2003-2021 Tenable Network Security, Inc. Modified 2003-03-12T00:00:00
Description
Cross-Referencing Linux appaers to be installed on the remote host.
There is a directory traversal vulnerability in the 'v' parameter
of the 'source' CGI. A remote attacker could exploit this to read
arbitrary files on the system.
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if(description)
{
script_id(11368);
script_cve_id("CVE-2003-0156");
script_bugtraq_id(7062);
script_version("1.24");
script_name(english:"Cross-Referencing Linux (lxr) CGI v Parameter Traversal Arbitrary File Access");
script_summary(english:"Checks for the presence of /cgi-bin/source");
script_set_attribute(attribute:"synopsis", value:
"A web application running on the remote host has a directory
traversal vulnerability." );
script_set_attribute(attribute:"description", value:
"Cross-Referencing Linux appaers to be installed on the remote host.
There is a directory traversal vulnerability in the 'v' parameter
of the 'source' CGI. A remote attacker could exploit this to read
arbitrary files on the system. " );
script_set_attribute(
attribute:"see_also",
value:"https://seclists.org/bugtraq/2003/Mar/141"
);
script_set_attribute(
attribute:"solution",
value:"Remove this CGI from the system."
);
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"plugin_publication_date", value: "2003/03/12");
script_set_attribute(attribute:"vuln_publication_date", value: "2003/03/10");
script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2003-2021 Tenable Network Security, Inc.");
script_dependencie("http_version.nasl", "find_service1.nasl", "no404.nasl");
script_require_ports("Services/www", 80);
script_exclude_keys("Settings/disable_cgi_scanning");
exit(0);
}
#
# The script code starts here
#
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
port = get_http_port(default:80);
foreach d (make_list(cgi_dirs()))
{
url = string(d, "/source?v=../../../../../../../../../../etc/passwd%00");
res = http_send_recv3(method:"GET", item:url, port:port);
if(isnull(res)) exit(0);
if(egrep(pattern:"root:.*:0:[01]:", string:res[2])){
security_warning(port);
exit(0);
}
}
{"id": "CRLINUX_FILE_READING.NASL", "bulletinFamily": "scanner", "title": "Cross-Referencing Linux (lxr) CGI v Parameter Traversal Arbitrary File Access", "description": "Cross-Referencing Linux appaers to be installed on the remote host.\nThere is a directory traversal vulnerability in the 'v' parameter\nof the 'source' CGI. A remote attacker could exploit this to read\narbitrary files on the system. ", "published": "2003-03-12T00:00:00", "modified": "2003-03-12T00:00:00", "cvss": {"score": 5.0, "vector": "AV:N/AC:L/Au:N/C:P/I:N/A:N"}, "href": "https://www.tenable.com/plugins/nessus/11368", "reporter": "This script is Copyright (C) 2003-2021 Tenable Network Security, Inc.", "references": ["https://seclists.org/bugtraq/2003/Mar/141"], "cvelist": ["CVE-2003-0156"], "type": "nessus", "lastseen": "2021-01-20T09:38:17", "edition": 26, "viewCount": 3, "enchantments": {"dependencies": {"references": [{"type": "cve", "idList": ["CVE-2003-0156"]}, {"type": "osvdb", "idList": ["OSVDB:8930"]}, {"type": "openvas", "idList": ["OPENVAS:53335"]}, {"type": "nessus", "idList": ["DEBIAN_DSA-264.NASL"]}], "modified": "2021-01-20T09:38:17", "rev": 2}, "score": {"value": 5.6, "vector": "NONE", "modified": "2021-01-20T09:38:17", "rev": 2}, "vulnersScore": 5.6}, "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\n\nif(description)\n{\n script_id(11368);\n script_cve_id(\"CVE-2003-0156\");\n script_bugtraq_id(7062);\n \n script_version(\"1.24\");\n \n script_name(english:\"Cross-Referencing Linux (lxr) CGI v Parameter Traversal Arbitrary File Access\");\n script_summary(english:\"Checks for the presence of /cgi-bin/source\");\n\n script_set_attribute(attribute:\"synopsis\", value:\n\"A web application running on the remote host has a directory\ntraversal vulnerability.\" );\n script_set_attribute(attribute:\"description\", value:\n\"Cross-Referencing Linux appaers to be installed on the remote host.\nThere is a directory traversal vulnerability in the 'v' parameter\nof the 'source' CGI. A remote attacker could exploit this to read\narbitrary files on the system. \" );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"https://seclists.org/bugtraq/2003/Mar/141\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\"Remove this CGI from the system.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N\");\n script_set_cvss_temporal_vector(\"CVSS2#E:H/RL:OF/RC:C\");\n script_set_attribute(attribute:\"exploitability_ease\", value:\"No exploit is required\");\n script_set_attribute(attribute:\"exploit_available\", value:\"true\");\n script_set_attribute(attribute:\"plugin_publication_date\", value: \"2003/03/12\");\n script_set_attribute(attribute:\"vuln_publication_date\", value: \"2003/03/10\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/19\");\n script_set_attribute(attribute:\"plugin_type\", value:\"remote\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_family(english:\"CGI abuses\");\n \n script_copyright(english:\"This script is Copyright (C) 2003-2021 Tenable Network Security, Inc.\");\n\n script_dependencie(\"http_version.nasl\", \"find_service1.nasl\", \"no404.nasl\");\n script_require_ports(\"Services/www\", 80);\n script_exclude_keys(\"Settings/disable_cgi_scanning\");\n\n exit(0);\n}\n\n#\n# The script code starts here\n#\n\ninclude(\"global_settings.inc\");\ninclude(\"misc_func.inc\");\ninclude(\"http.inc\");\n\n\nport = get_http_port(default:80);\n\nforeach d (make_list(cgi_dirs()))\n{\n url = string(d, \"/source?v=../../../../../../../../../../etc/passwd%00\");\n res = http_send_recv3(method:\"GET\", item:url, port:port);\n if(isnull(res)) exit(0);\n if(egrep(pattern:\"root:.*:0:[01]:\", string:res[2])){\n \tsecurity_warning(port);\n\texit(0);\n\t}\t\n}\n\n", "naslFamily": "CGI abuses", "pluginID": "11368", "cpe": [], "scheme": null}
{"cve": [{"lastseen": "2020-10-03T11:33:02", "description": "Directory traversal vulnerability in Cross-Referencing Linux (LXR) allows remote attackers to read arbitrary files via .. (dot dot) sequences in the v parameter.", "edition": 3, "cvss3": {}, "published": "2003-03-24T05:00:00", "title": "CVE-2003-0156", "type": "cve", "cwe": ["NVD-CWE-Other"], "bulletinFamily": "NVD", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 10.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "PARTIAL", "availabilityImpact": "NONE", "integrityImpact": "NONE", "baseScore": 5.0, "vectorString": "AV:N/AC:L/Au:N/C:P/I:N/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 2.9, "obtainUserPrivilege": false}, "cvelist": ["CVE-2003-0156"], "modified": "2016-10-18T02:30:00", "cpe": ["cpe:/a:cross_referencer:lxr:0.3", "cpe:/a:cross_referencer:lxr:0.9", "cpe:/a:cross_referencer:lxr:0.9.1", "cpe:/a:cross_referencer:lxr:0.8", "cpe:/a:cross_referencer:lxr:0.9.2"], "id": "CVE-2003-0156", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2003-0156", "cvss": {"score": 5.0, "vector": "AV:N/AC:L/Au:N/C:P/I:N/A:N"}, "cpe23": ["cpe:2.3:a:cross_referencer:lxr:0.9.1:*:*:*:*:*:*:*", "cpe:2.3:a:cross_referencer:lxr:0.9.2:*:*:*:*:*:*:*", "cpe:2.3:a:cross_referencer:lxr:0.8:*:*:*:*:*:*:*", "cpe:2.3:a:cross_referencer:lxr:0.3:*:*:*:*:*:*:*", "cpe:2.3:a:cross_referencer:lxr:0.9:*:*:*:*:*:*:*"]}], "osvdb": [{"lastseen": "2017-04-28T13:20:03", "bulletinFamily": "software", "cvelist": ["CVE-2003-0156"], "edition": 1, "description": "# No description provided by the source\n\n## References:\nVendor URL: http://sourceforge.net/projects/lxr\nVendor URL: http://lxr.linux.no/\n[Vendor Specific Advisory URL](http://www.debian.org/security/2003/dsa-264)\nMail List Post: http://archives.neohapsis.com/archives/bugtraq/2003-03/0151.html\nKeyword: Directory Traversal\nISS X-Force ID: 11513\n[CVE-2003-0156](https://vulners.com/cve/CVE-2003-0156)\nBugtraq ID: 7062\n", "modified": "2003-03-10T00:00:00", "published": "2003-03-10T00:00:00", "id": "OSVDB:8930", "href": "https://vulners.com/osvdb/OSVDB:8930", "title": "Cross-Referencing Linux v Parameter Arbitrary File Access", "type": "osvdb", "cvss": {"score": 5.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:NONE/A:NONE/"}}], "openvas": [{"lastseen": "2017-07-24T12:49:58", "bulletinFamily": "scanner", "cvelist": ["CVE-2003-0156"], "description": "The remote host is missing an update to lxr\nannounced via advisory DSA 264-1.", "modified": "2017-07-07T00:00:00", "published": "2008-01-17T00:00:00", "id": "OPENVAS:53335", "href": "http://plugins.openvas.org/nasl.php?oid=53335", "type": "openvas", "title": "Debian Security Advisory DSA 264-1 (lxr)", "sourceData": "# OpenVAS Vulnerability Test\n# $Id: deb_264_1.nasl 6616 2017-07-07 12:10:49Z cfischer $\n# Description: Auto-generated from advisory DSA 264-1\n#\n# Authors:\n# Thomas Reinke <reinke@securityspace.com>\n#\n# Copyright:\n# Copyright (c) 2007 E-Soft Inc. http://www.securityspace.com\n# Text descriptions are largerly excerpted from the referenced\n# advisory, and are Copyright (c) the respective author(s)\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2,\n# as published by the Free Software Foundation\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n#\n\ninclude(\"revisions-lib.inc\");\ntag_insight = \"Upstream developers of lxr, a general hypertext cross-referencing\ntool, have been alerted of a vulnerability that allows a remote\nattacker to read arbitrary files on the host system as user www-data.\nThis could disclose local files that were not meant to be shared with\nthe public.\n\nFor the stable distribution (woody) this problem has been\nfixed in version 0.3-3.\n\nThe old stable distribution (potato) is not affected since it does not\ncontain an lxr package.\n\nFor the unstable distribution (sid) this problem has been\nfixed in version 0.3-4.\n\nWe recommend that you upgrade your lxr package.\";\ntag_summary = \"The remote host is missing an update to lxr\nannounced via advisory DSA 264-1.\";\n\ntag_solution = \"https://secure1.securityspace.com/smysecure/catid.html?in=DSA%20264-1\";\n\nif(description)\n{\n script_id(53335);\n script_version(\"$Revision: 6616 $\");\n script_cve_id(\"CVE-2003-0156\");\n script_tag(name:\"last_modification\", value:\"$Date: 2017-07-07 14:10:49 +0200 (Fri, 07 Jul 2017) $\");\n script_tag(name:\"creation_date\", value:\"2008-01-17 22:28:10 +0100 (Thu, 17 Jan 2008)\");\n script_tag(name:\"cvss_base\", value:\"5.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:P/I:N/A:N\");\n script_name(\"Debian Security Advisory DSA 264-1 (lxr)\");\n\n\n\n script_category(ACT_GATHER_INFO);\n\n script_copyright(\"Copyright (c) 2005 E-Soft Inc. http://www.securityspace.com\");\n script_family(\"Debian Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/debian_linux\", \"ssh/login/packages\");\n script_tag(name : \"solution\" , value : tag_solution);\n script_tag(name : \"insight\" , value : tag_insight);\n script_tag(name : \"summary\" , value : tag_summary);\n script_tag(name:\"qod_type\", value:\"package\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n exit(0);\n}\n\n#\n# The script code starts here\n#\n\ninclude(\"pkg-lib-deb.inc\");\n\nres = \"\";\nreport = \"\";\nif ((res = isdpkgvuln(pkg:\"lxr\", ver:\"0.3-3\", rls:\"DEB3.0\")) != NULL) {\n report += res;\n}\n\nif (report != \"\") {\n security_message(data:report);\n} else if (__pkg_match) {\n exit(99); # Not vulnerable.\n}\n", "cvss": {"score": 5.0, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:NONE/A:NONE/"}}], "nessus": [{"lastseen": "2021-01-06T09:47:43", "description": "Upstream developers of lxr, a general hypertext cross-referencing\ntool, have been alerted of a vulnerability that allows a remote\nattacker to read arbitrary files on the host system as user www-data.\nThis could disclose local files that were not meant to be shared with\nthe public.", "edition": 25, "published": "2004-09-29T00:00:00", "title": "Debian DSA-264-1 : lxr - missing filename sanitizing", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2003-0156"], "modified": "2004-09-29T00:00:00", "cpe": ["p-cpe:/a:debian:debian_linux:lxr", "cpe:/o:debian:debian_linux:3.0"], "id": "DEBIAN_DSA-264.NASL", "href": "https://www.tenable.com/plugins/nessus/15101", "sourceData": "#%NASL_MIN_LEVEL 70300\n\n#\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-264. The text \n# itself is copyright (C) Software in the Public Interest, Inc.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(15101);\n script_version(\"1.22\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/04\");\n\n script_cve_id(\"CVE-2003-0156\");\n script_xref(name:\"DSA\", value:\"264\");\n\n script_name(english:\"Debian DSA-264-1 : lxr - missing filename sanitizing\");\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\"Upstream developers of lxr, a general hypertext cross-referencing\ntool, have been alerted of a vulnerability that allows a remote\nattacker to read arbitrary files on the host system as user www-data.\nThis could disclose local files that were not meant to be shared with\nthe public.\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.debian.org/security/2003/dsa-264\"\n );\n script_set_attribute(\n attribute:\"solution\", \n value:\n\"Upgrade the lxr package.\n\nFor the stable distribution (woody) this problem has been fixed in\nversion 0.3-3.\n\nThe old stable distribution (potato) is not affected since it does not\ncontain an lxr package.\"\n );\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:debian:debian_linux:lxr\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:debian:debian_linux:3.0\");\n\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2003/03/19\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2004/09/29\");\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2003/03/10\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2004-2021 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:\"lxr\", reference:\"0.3-3\")) flag++;\n\nif (flag)\n{\n if (report_verbosity > 0) security_warning(port:0, extra:deb_report_get());\n else security_warning(0);\n exit(0);\n}\nelse audit(AUDIT_HOST_NOT, \"affected\");\n", "cvss": {"score": 5.0, "vector": "AV:N/AC:L/Au:N/C:P/I:N/A:N"}}]}