Errata - 2.3.2 Creating Discoveries in Community

There is a bug in Community (which our test script missed) causing discoveries to fail being created.

This dow not affect creating discoveries in Professional or Enterprise using the GUI.

To fix this issue, edit the file /usr/local/open-audit/code_igniter/application/models/m_collection.php. Delete line 523 (as below).

$data = array(intval($this->config->config['discovery_default_scan_option']));

 

And change line 522 from:

                $sql = "SELECT `id` AS 'discovery_scan_option_id', ping, service_version, filtered, timeout, timing, nmap_tcp_ports, nmap_udp_ports, tcp_ports, udp_ports, exclude_tcp_ports, exclude_udp_ports, exclude_ip, ssh_ports FROM discovery_scan_options WHERE id = ?";

to

                $sql = "SELECT `id` AS 'discovery_scan_option_id', ping, service_version, filtered, timeout, timing, nmap_tcp_ports, nmap_udp_ports, tcp_ports, udp_ports, exclude_tcp_ports, exclude_udp_ports, exclude_ip, ssh_ports FROM discovery_scan_options WHERE id = " . intval($this->config->config['discovery_default_scan_option']);

 

Apologies for any inconvienence caused.

This has been patched for the 2.3.2 release and made available at at 2019-02-06 at 14:00:00 Brisbane, Australia time.