ID OPENVAS:1361412562310113212 Type openvas Reporter Copyright (C) 2018 Greenbone Networks GmbH Modified 2022-01-18T00:00:00
Description
Consolidation of Dovecot detections.
# Copyright (C) 2018 Greenbone Networks GmbH
# 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-or-later
#
# 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.
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.113212");
script_version("2022-01-18T12:57:07+0000");
script_tag(name:"last_modification", value:"2022-01-18 12:57:07 +0000 (Tue, 18 Jan 2022)");
script_tag(name:"creation_date", value:"2018-06-26 11:11:11 +0200 (Tue, 26 Jun 2018)");
script_tag(name:"cvss_base", value:"0.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
script_name("Dovecot Detection Consolidation");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2018 Greenbone Networks GmbH");
script_family("Product detection");
script_dependencies("sw_dovecot_detect.nasl", "secpod_dovecot_detect.nasl");
script_mandatory_keys("dovecot/detected");
script_xref(name:"URL", value:"https://www.dovecot.org/");
script_tag(name:"summary", value:"Consolidation of Dovecot detections.");
# nb: Vulnerable version checks will have to be unreliable, as backports exist:
# https://packages.debian.org/search?searchon=sourcenames&keywords=dovecot
script_tag(name:"qod_type", value:"remote_banner");
exit(0);
}
include("host_details.inc");
if( ! get_kb_item( "dovecot/detected" ) )
exit( 0 );
base_cpe = "cpe:/a:dovecot:dovecot";
report = ""; # nb: To make openvas-nasl-lint happy...
info_list = get_kb_list( "dovecot/detection-info" );
if( ! info_list )
exit( 0 );
# Sort to not report changes on delta reports if just the order is different
info_list = sort( info_list );
foreach info( info_list ) {
_info_list = split( info, sep:"#--#", keep:FALSE );
if( max_index( _info_list ) != 6 )
continue; # Something went wrong and not all required infos are there...
# Format set by secpod_dovecot_detect.nasl and sw_dovecot_detect.nasl is:
# Detection-Name#--#service#--#port#--#location#--#version#--#concluded
name = _info_list[0];
service = _info_list[1];
port = _info_list[2];
location = _info_list[3];
version = _info_list[4];
concluded = _info_list[5];
if( version != "unknown" )
cpe = base_cpe + ":" + version;
else
cpe = base_cpe;
register_product( cpe:cpe, location:location, port:port, service:service );
if( report )
report += '\n\n';
report += build_detection_report( app:"Dovecot",
version:version,
install:location,
cpe:cpe,
concluded:concluded );
report += '\n\nDetection Method: ' + name;
}
if( report )
log_message( port:0, data:report );
exit( 0 );
{"id": "OPENVAS:1361412562310113212", "vendorId": null, "type": "openvas", "bulletinFamily": "scanner", "title": "Dovecot Detection Consolidation", "description": "Consolidation of Dovecot detections.", "published": "2018-06-26T00:00:00", "modified": "2022-01-18T00:00:00", "cvss": {"score": 0.0, "vector": "NONE"}, "cvss2": {}, "cvss3": {}, "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310113212", "reporter": "Copyright (C) 2018 Greenbone Networks GmbH", "references": ["https://www.dovecot.org/"], "cvelist": [], "immutableFields": [], "lastseen": "2022-01-20T11:45:25", "viewCount": 4, "enchantments": {"score": {"value": -0.6, "vector": "NONE"}, "dependencies": {}, "backreferences": {}, "exploitation": null, "vulnersScore": -0.6}, "pluginID": "1361412562310113212", "sourceData": "# Copyright (C) 2018 Greenbone Networks GmbH\n# Some text descriptions might be excerpted from (a) referenced\n# source(s), and are Copyright (C) by the respective right holder(s).\n#\n# SPDX-License-Identifier: GPL-2.0-or-later\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\nif(description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.113212\");\n script_version(\"2022-01-18T12:57:07+0000\");\n script_tag(name:\"last_modification\", value:\"2022-01-18 12:57:07 +0000 (Tue, 18 Jan 2022)\");\n script_tag(name:\"creation_date\", value:\"2018-06-26 11:11:11 +0200 (Tue, 26 Jun 2018)\");\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_name(\"Dovecot Detection Consolidation\");\n script_category(ACT_GATHER_INFO);\n script_copyright(\"Copyright (C) 2018 Greenbone Networks GmbH\");\n script_family(\"Product detection\");\n script_dependencies(\"sw_dovecot_detect.nasl\", \"secpod_dovecot_detect.nasl\");\n script_mandatory_keys(\"dovecot/detected\");\n\n script_xref(name:\"URL\", value:\"https://www.dovecot.org/\");\n\n script_tag(name:\"summary\", value:\"Consolidation of Dovecot detections.\");\n\n # nb: Vulnerable version checks will have to be unreliable, as backports exist:\n # https://packages.debian.org/search?searchon=sourcenames&keywords=dovecot\n script_tag(name:\"qod_type\", value:\"remote_banner\");\n\n exit(0);\n}\n\ninclude(\"host_details.inc\");\n\nif( ! get_kb_item( \"dovecot/detected\" ) )\n exit( 0 );\n\nbase_cpe = \"cpe:/a:dovecot:dovecot\";\nreport = \"\"; # nb: To make openvas-nasl-lint happy...\n\ninfo_list = get_kb_list( \"dovecot/detection-info\" );\nif( ! info_list )\n exit( 0 );\n\n# Sort to not report changes on delta reports if just the order is different\ninfo_list = sort( info_list );\n\nforeach info( info_list ) {\n\n _info_list = split( info, sep:\"#--#\", keep:FALSE );\n if( max_index( _info_list ) != 6 )\n continue; # Something went wrong and not all required infos are there...\n\n # Format set by secpod_dovecot_detect.nasl and sw_dovecot_detect.nasl is:\n # Detection-Name#--#service#--#port#--#location#--#version#--#concluded\n name = _info_list[0];\n service = _info_list[1];\n port = _info_list[2];\n location = _info_list[3];\n version = _info_list[4];\n concluded = _info_list[5];\n\n if( version != \"unknown\" )\n cpe = base_cpe + \":\" + version;\n else\n cpe = base_cpe;\n\n register_product( cpe:cpe, location:location, port:port, service:service );\n\n if( report )\n report += '\\n\\n';\n\n report += build_detection_report( app:\"Dovecot\",\n version:version,\n install:location,\n cpe:cpe,\n concluded:concluded );\n report += '\\n\\nDetection Method: ' + name;\n}\n\nif( report )\n log_message( port:0, data:report );\n\nexit( 0 );", "naslFamily": "Product detection", "_state": {"dependencies": 1645259352}}