Shows all CPEs from the CPE-based Policy Check which have an invalid syntax.
{"id": "OPENVAS:1361412562310108291", "vendorId": null, "type": "openvas", "bulletinFamily": "scanner", "title": "CPE-based Policy Check Error", "description": "Shows all CPEs from the CPE-based Policy Check which have an invalid syntax.", "published": "2017-11-20T00:00:00", "modified": "2018-07-17T00:00:00", "cvss": {"score": 0.0, "vector": "NONE"}, "cvss2": {}, "cvss3": {}, "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310108291", "reporter": "Copyright (c) 2017 Greenbone Networks GmbH", "references": [], "cvelist": [], "immutableFields": [], "lastseen": "2018-07-18T19:58:49", "viewCount": 3, "enchantments": {"score": {"value": -0.1, "vector": "NONE"}, "dependencies": {}, "backreferences": {}, "exploitation": null, "vulnersScore": -0.1}, "_state": {"dependencies": 1678915652, "score": 1678914494, "epss": 1678933836}, "_internal": {"score_hash": "c48cbac751825d0a8fbb6a18fd4fcff1"}, "pluginID": "1361412562310108291", "sourceData": "###############################################################################\n# OpenVAS Vulnerability Test\n# $Id: gb_policy_cpe_error.nasl 10530 2018-07-17 14:15:42Z asteins $\n#\n# CPE-based Policy Check Error\n#\n# Authors:\n# Christian Fischer <christian.fischer@greenbone.net>\n#\n# Copyright:\n# Copyright (c) 2017 Greenbone Networks GmbH, http://www.greenbone.net\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\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.108291\");\n script_tag(name:\"cvss_base\", value:\"0.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:N/I:N/A:N\");\n script_version(\"$Revision: 10530 $\");\n script_name(\"CPE-based Policy Check Error\");\n script_tag(name:\"last_modification\", value:\"$Date: 2018-07-17 16:15:42 +0200 (Tue, 17 Jul 2018) $\");\n script_tag(name:\"creation_date\", value:\"2017-11-20 11:42:20 +0100 (Mon, 20 Nov 2017)\");\n script_category(ACT_END);\n script_family(\"Policy\");\n script_copyright(\"Copyright (c) 2017 Greenbone Networks GmbH\");\n script_dependencies(\"Policy/gb_policy_cpe.nasl\");\n script_mandatory_keys(\"policy/cpe/invalid_line/found\");\n\n script_tag(name:\"summary\", value:\"Shows all CPEs from the CPE-based Policy Check which have an invalid syntax.\");\n\n script_tag(name:\"qod_type\", value:\"remote_banner\");\n\n exit(0);\n}\n\ninvalid_lines = get_kb_list( \"policy/cpe/invalid_list\" );\n\nif( invalid_lines ) {\n\n # Sort to not report changes on delta reports if just the order is different\n invalid_lines = sort( invalid_lines );\n\n report += 'The following invalid lines where identified within the uploaded/provided CPEs:\\n\\n';\n\n foreach error( invalid_lines ) {\n report += error + '\\n';\n }\n}\n\nif( strlen( report ) > 0 ) {\n log_message( port:0, data:report );\n}\n\nexit( 0 );\n", "naslFamily": "Policy"}