ID OPENVAS:1361412562310106638 Type openvas Reporter This script is Copyright (C) 2017 Greenbone Networks GmbH Modified 2018-10-26T00:00:00
Description
NagVis is prone to a cross-site scripting vulnerability.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_nagvis_xss_vuln.nasl 12106 2018-10-26 06:33:36Z cfischer $
#
# NagVis XSS Vulnerability
#
# Authors:
# Christian Kuersteiner <christian.kuersteiner@greenbone.net>
#
# Copyright:
# Copyright (c) 2017 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
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version
#
# 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.
###############################################################################
CPE = "cpe:/a:nagvis:nagvis";
if (description)
{
script_oid("1.3.6.1.4.1.25623.1.0.106638");
script_version("$Revision: 12106 $");
script_tag(name:"last_modification", value:"$Date: 2018-10-26 08:33:36 +0200 (Fri, 26 Oct 2018) $");
script_tag(name:"creation_date", value:"2017-03-08 12:16:59 +0700 (Wed, 08 Mar 2017)");
script_tag(name:"cvss_base", value:"4.3");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
script_cve_id("CVE-2017-6393");
script_bugtraq_id(96537);
script_tag(name:"qod_type", value:"remote_banner");
script_tag(name:"solution_type", value:"VendorFix");
script_name("NagVis XSS Vulnerability");
script_category(ACT_GATHER_INFO);
script_copyright("This script is Copyright (C) 2017 Greenbone Networks GmbH");
script_family("Web application abuses");
script_dependencies("gb_nagvis_detect.nasl");
script_mandatory_keys("nagvis/installed");
script_tag(name:"summary", value:"NagVis is prone to a cross-site scripting vulnerability.");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"The vulnerability exists due to insufficient filtration of user-supplied
data passed to the 'nagvis-master/share/userfiles/gadgets/std_table.php' URL.");
script_tag(name:"impact", value:"An attacker could execute arbitrary HTML and script code in browser in
context of the vulnerable website.");
script_tag(name:"affected", value:"Nagvis 1.8.x, 1.9b12 and prior.");
script_tag(name:"solution", value:"Apply the provided patch or update to 1.9b13 or later.");
script_xref(name:"URL", value:"https://github.com/NagVis/nagvis/issues/91");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if (!port = get_app_port(cpe: CPE))
exit(0);
if (!version = get_app_version(cpe: CPE, port: port))
exit(0);
if (version_in_range(version: version, test_version: "1.8", test_version2: "1.8.5") ||
version_in_range(version: version, test_version: "1.9b1", test_version2: "1.9b12")) {
report = report_fixed_ver(installed_version: version, fixed_version: "1.9b13");
security_message(port: port, data: report);
exit(0);
}
exit(0);
{"id": "OPENVAS:1361412562310106638", "type": "openvas", "bulletinFamily": "scanner", "title": "NagVis XSS Vulnerability", "description": "NagVis is prone to a cross-site scripting vulnerability.", "published": "2017-03-08T00:00:00", "modified": "2018-10-26T00:00:00", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}, "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310106638", "reporter": "This script is Copyright (C) 2017 Greenbone Networks GmbH", "references": ["https://github.com/NagVis/nagvis/issues/91"], "cvelist": ["CVE-2017-6393"], "lastseen": "2019-05-29T18:34:08", "viewCount": 16, "enchantments": {"dependencies": {"references": [{"type": "cve", "idList": ["CVE-2017-6393"]}], "modified": "2019-05-29T18:34:08", "rev": 2}, "score": {"value": 4.1, "vector": "NONE", "modified": "2019-05-29T18:34:08", "rev": 2}, "vulnersScore": 4.1}, "pluginID": "1361412562310106638", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n# $Id: gb_nagvis_xss_vuln.nasl 12106 2018-10-26 06:33:36Z cfischer $\n#\n# NagVis XSS Vulnerability\n#\n# Authors:\n# Christian Kuersteiner <christian.kuersteiner@greenbone.net>\n#\n# Copyright:\n# Copyright (c) 2017 Greenbone Networks GmbH\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version\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\nCPE = \"cpe:/a:nagvis:nagvis\";\n\nif (description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.106638\");\n script_version(\"$Revision: 12106 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2018-10-26 08:33:36 +0200 (Fri, 26 Oct 2018) $\");\n script_tag(name:\"creation_date\", value:\"2017-03-08 12:16:59 +0700 (Wed, 08 Mar 2017)\");\n script_tag(name:\"cvss_base\", value:\"4.3\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:M/Au:N/C:N/I:P/A:N\");\n\n script_cve_id(\"CVE-2017-6393\");\n script_bugtraq_id(96537);\n\n script_tag(name:\"qod_type\", value:\"remote_banner\");\n\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n\n script_name(\"NagVis XSS Vulnerability\");\n\n script_category(ACT_GATHER_INFO);\n\n script_copyright(\"This script is Copyright (C) 2017 Greenbone Networks GmbH\");\n script_family(\"Web application abuses\");\n script_dependencies(\"gb_nagvis_detect.nasl\");\n script_mandatory_keys(\"nagvis/installed\");\n\n script_tag(name:\"summary\", value:\"NagVis is prone to a cross-site scripting vulnerability.\");\n\n script_tag(name:\"vuldetect\", value:\"Checks if a vulnerable version is present on the target host.\");\n\n script_tag(name:\"insight\", value:\"The vulnerability exists due to insufficient filtration of user-supplied\ndata passed to the 'nagvis-master/share/userfiles/gadgets/std_table.php' URL.\");\n\n script_tag(name:\"impact\", value:\"An attacker could execute arbitrary HTML and script code in browser in\ncontext of the vulnerable website.\");\n\n script_tag(name:\"affected\", value:\"Nagvis 1.8.x, 1.9b12 and prior.\");\n\n script_tag(name:\"solution\", value:\"Apply the provided patch or update to 1.9b13 or later.\");\n\n script_xref(name:\"URL\", value:\"https://github.com/NagVis/nagvis/issues/91\");\n\n exit(0);\n}\n\ninclude(\"host_details.inc\");\ninclude(\"version_func.inc\");\n\nif (!port = get_app_port(cpe: CPE))\n exit(0);\n\nif (!version = get_app_version(cpe: CPE, port: port))\n exit(0);\n\nif (version_in_range(version: version, test_version: \"1.8\", test_version2: \"1.8.5\") ||\n version_in_range(version: version, test_version: \"1.9b1\", test_version2: \"1.9b12\")) {\n report = report_fixed_ver(installed_version: version, fixed_version: \"1.9b13\");\n security_message(port: port, data: report);\n exit(0);\n}\n\nexit(0);\n", "naslFamily": "Web application abuses"}
{"cve": [{"lastseen": "2021-02-02T06:36:48", "description": "An issue was discovered in NagVis 1.9b12. The vulnerability exists due to insufficient filtration of user-supplied data passed to the \"nagvis-master/share/userfiles/gadgets/std_table.php\" URL. An attacker could execute arbitrary HTML and script code in a browser in the context of the vulnerable website.", "edition": 4, "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "baseScore": 6.1, "privilegesRequired": "NONE", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "userInteraction": "REQUIRED", "version": "3.0"}, "impactScore": 2.7}, "published": "2017-03-02T06:59:00", "title": "CVE-2017-6393", "type": "cve", "cwe": ["CWE-79"], "bulletinFamily": "NVD", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 4.3, "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 2.9, "obtainUserPrivilege": false}, "cvelist": ["CVE-2017-6393"], "modified": "2017-03-07T02:59:00", "cpe": ["cpe:/a:nagvis:nagvis:1.9"], "id": "CVE-2017-6393", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-6393", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}, "cpe23": ["cpe:2.3:a:nagvis:nagvis:1.9:b12:*:*:*:*:*:*"]}]}