SQL injection vulnerability in the get_history_lastid function in the nodewatcher component in Zabbix Server before 1.6.8 allows remote attackers to execute arbitrary SQL commands via a crafted request, possibly related to the send_history_last_id function in zabbix_server/trapper/nodehistory.c.
https://support.zabbix.com/browse/ZBX-1031
http://www.vupen.com/english/advisories/2009/3514
http://www.securityfocus.com/archive/1/508436/30/60/threaded