Configuring scans of various types of servers
Configuring spam relaying settings
Mail relay is a feature that allows SMTP servers to act as open gateways through which mail applications can send e-mail. Commercial operators, who send millions of unwanted spam e-mails, often target mail relay for exploitation. Most organizations now restrict mail relay services to specific domain users.
To configure spam relay settings:
- Go to the Spam Relaying page:
- Type an e-mail address in the appropriate text field. This e-mail address should be external to your organization, such as a Yahoo! or Hotmail address. The application will attempt to send e-mail from this account to itself using any mail services and mail scripts that it discovers during the scan. If the application receives the e-mail, this indicates that the servers are vulnerable.
- Type a URL in the HTTP_REFERRER to use field. This is typically a Web form that spammers might use to generate Spam e-mails.
- Configure any other template settings as desired. When you have finished configuring the scan template, click Save.
Configuring scans of database servers
Nexpose performs several classes of vulnerability and policy checks against a number of databases, including:
- MS SQL/Server versions 2008, 2012, 2014, and 2016
- Oracle versions 9 through 12
- Sybase Adaptive Server Enterprise (ASE) versions 9, 10 and 11
- DB2 version 9 and 10
- AS/400
- PostgreSQL versions 9.3 through 14
- MySQL Server versions 5.6 and 5.7
- Mongo DB versions 2, 3
For all databases, the application discovers tables and checks system access, default credentials, and default scripts. Additionally, it tests table access, stored procedure access, and decompilation.
To configure to scan database servers:
- Go to the Database Servers page.
- Enter the name of a DB2 database in the appropriate text field that the database can connect to.
- Enter the name of a Postgres database in the appropriate text field that the application can connect to. Nexpose attempts to verify an SID on a target asset through various methods, such as discovering common configuration errors and default guesses. You can now specify additional SIDs for verification.
- Enter the names of Oracle SIDs in the appropriate text field, to which it can connect. Separate multiple SIDs with commas.
- Configure any other template settings as desired. When you have finished configuring the scan template, click Save.
Configuring scans of mail servers
You can configure Nexpose to scan mail servers.
To configure to scan mail servers:
- Go to the Mail Servers page.
- Type a read timeout value in the appropriate text field. This setting is the interval at which the application retries accessing the mail server. The default value is 30 seconds.
- Type an inaccurate time difference value in the appropriate text field. This setting is a threshold outside of which the application will report inaccurate time readings by system clocks. The inaccuracy will be reported in the system log.
- Configure any other template settings as desired. When you have finished configuring the scan template, click Save.
Configuring scans of CVS servers
Nexpose tests a number of vulnerabilities in the Concurrent Versions System (CVS) code repository. For example, in versions prior to v1.11.11 of the official CVS server, it is possible for an attacker with write access to the CVSROOT/passwd file to execute arbitrary code as the cvsd process owner, which usually is root.
To configure scanning CVS servers:
- Go to the CVS Servers page.
- Enter the name of the CVS repository root directory in the text box.
- Configure any other template settings as desired. When you have finished configuring the scan template, click Save.
Configuring scans of DHCP servers
DHCP Servers provide Border Gateway Protocol (BGP) information, domain naming help, and Address Resolution Protocol (ARP) table information, which may be used to reach hosts that are otherwise unknown. Hackers exploit vulnerabilities in these servers for address information.
To configure Nexpose to scan DHCP servers:
- Go to the DHCP servers page.
- Type a DHCP address range in the text field. The application will then target those specific servers for DHCP interrogation.
- Configure any other template settings as desired. When you have finished configuring the scan template, click Save.
Configuring scans of Telnet servers
Telnet is an unstructured protocol, with many varying implementations. This renders Telnet servers prone to yielding inaccurate scan results. You can improve scan accuracy by providing Nexpose with regular expressions.
To configure scanning of Telnet servers:
- Go to the Telnet Servers page.
- Type a character set in the appropriate text field.
- Type a regex for a logon prompt in the appropriate text field.
- Type a regex for a password prompt in the appropriate text field.
- Type a regex for failed logon attempts in the appropriate text field.
- Type a regex for questionable logon attempts in the appropriate text field. For more information, go to Using regular expressions.
- Configure any other template settings as desired. When you have finished configuring the scan template, click Save.