Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10828

Server/proxy crashes when performing Simple checks with invalid key parameters hidden in macro

    Details

      Description

      Simple check of the item "net.udp.service[{$BOOM}]" or similar where {$BOOM} has a value ",\" causes server/proxy to crash because return value of parse_item_key() is not checked in get_value_simple().

      Discovered it myself "in the wild", but credits should go to Coverity, because it reported it long before me as CID 118898.

      Just for catching duplicates:

        9431:20160519:120038.085 === Backtrace: ===
        9431:20160519:120038.086 11: src/zabbix_server/zabbix_server: poller #2 [got 0 values in 0.000199 sec, getting values](print_fatal_info+0xae) [0x4663ae]
        9431:20160519:120038.086 10: src/zabbix_server/zabbix_server: poller #2 [got 0 values in 0.000199 sec, getting values]() [0x466687]
        9431:20160519:120038.086 9: /lib/x86_64-linux-gnu/libc.so.6(+0x36d40) [0x7f948c44fd40]
        9431:20160519:120038.086 8: src/zabbix_server/zabbix_server: poller #2 [got 0 values in 0.000199 sec, getting values](get_value_simple+0x6a) [0x41f29a]
        9431:20160519:120038.086 7: src/zabbix_server/zabbix_server: poller #2 [got 0 values in 0.000199 sec, getting values]() [0x41d683]
        9431:20160519:120038.086 6: src/zabbix_server/zabbix_server: poller #2 [got 0 values in 0.000199 sec, getting values](poller_thread+0xd8) [0x41d798]
        9431:20160519:120038.086 5: src/zabbix_server/zabbix_server: poller #2 [got 0 values in 0.000199 sec, getting values](zbx_thread_start+0x45) [0x466fa5]
        9431:20160519:120038.086 4: src/zabbix_server/zabbix_server: poller #2 [got 0 values in 0.000199 sec, getting values](MAIN_ZABBIX_ENTRY+0x605) [0x4182b5]
        9431:20160519:120038.086 3: src/zabbix_server/zabbix_server: poller #2 [got 0 values in 0.000199 sec, getting values](daemon_start+0x1ad) [0x465cad]
        9431:20160519:120038.086 2: src/zabbix_server/zabbix_server: poller #2 [got 0 values in 0.000199 sec, getting values](main+0x38a) [0x41327a]
        9431:20160519:120038.086 1: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f948c43aec5]
        9431:20160519:120038.086 0: src/zabbix_server/zabbix_server: poller #2 [got 0 values in 0.000199 sec, getting values]() [0x4134a5]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                glebs.ivanovskis Glebs Ivanovskis (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: