| Source | Link |
|---|---|
| opengauss | www.opengauss.org/ |
# Copyright (C) 2020 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.150403");
script_version("2021-03-04T12:22:07+0000");
script_tag(name:"last_modification", value:"2021-03-04 12:22:07 +0000 (Thu, 04 Mar 2021)");
script_tag(name:"creation_date", value:"2020-11-12 07:11:36 +0000 (Thu, 12 Nov 2020)");
script_tag(name:"cvss_base", value:"0.0");
script_tag(name:"cvss_base_vector", value:"AV:L/AC:H/Au:S/C:N/I:N/A:N");
script_tag(name:"qod", value:"97");
script_name("openGauss: Authentication Parameters");
script_category(ACT_SETTINGS);
script_copyright("Copyright (C) 2020 Greenbone Networks GmbH");
script_family("Compliance");
script_dependencies("compliance_tests.nasl");
script_mandatory_keys("Compliance/Launch");
script_add_preference(name:"Database", type:"entry", value:"postgres", id:1);
script_add_preference(name:"Port", type:"entry", value:"26000", id:2);
# Use 'su - USER' option for gsql command
script_add_preference(name:"Use 'su - USER' option on gsql commands", type:"radio", value:"no;yes", id:3);
# Specify user for 'su - USER' option above
script_add_preference(name:"Use this user for 'su - USER' option on gsql commands", type:"entry", value:"", id:4);
script_xref(name:"URL", value:"https://opengauss.org");
script_tag(name:"summary", value:"Set login parameters for scanning openGauss database.");
exit(0);
}
database = script_get_preference( "Database", id:1 );
if( database && database != "" )
set_kb_item( name:"Policy/opengauss/database", value:database );
else
set_kb_item( name:"Policy/opengauss/database", value:"postgres" );
port = script_get_preference( "Port", id:2 );
if( port && port != "" )
set_kb_item( name:"Policy/opengauss/port", value:port );
else
set_kb_item( name:"Policy/opengauss/port", value:"26000" );
use_su = script_get_preference( "Use 'su - USER' option on gsql commands", id:3 );
su_user = script_get_preference( "Use this user for 'su - USER' option on gsql commands", id:4 );
if( use_su && "yes" >< use_su ) {
# nb: We're using "yes" / "no" here so that we can overwrite
# it later in gather-package-list.nasl again.
set_kb_item( name:"Policy/opengauss/use_su", value:"yes" );
if( ! isnull( su_user ) ) {
if( ! su_user ) {
# Do not use 'su -' option if no user is specified
replace_kb_item( name:"Policy/opengauss/use_su", value:"no" );
} else {
set_kb_item( name:"Policy/opengauss/su_user", value:su_user );
}
} else {
# Do not use 'su -' option if no user is specified
replace_kb_item( name:"Policy/opengauss/use_su", value:"no" );
}
}
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