id: CVE-2019-4716

info:
  name: IBM Planning Analytics - Authentication Bypass & Remote Code Execution Version Detection
  author: 0x_Akoko
  severity: critical
  description: |
    IBM Planning Analytics versions 2.0.0 through 2.0.8 are vulnerable to a configuration overwrite that allows an unauthenticated user to login as "admin", and then execute code as root or SYSTEM via TM1 scripting.
  impact: |
    Attackers can gain admin access and execute arbitrary code with SYSTEM privileges, leading to full system compromise.
  remediation: |
    Update to the latest version or 2.0.9 or apply the security patches provided by IBM.
  reference:
    - https://www.ibm.com/support/pages/node/1127781
    - https://nvd.nist.gov/vuln/detail/CVE-2019-4716
    - http://packetstormsecurity.com/files/156953/IBM-Cognos-TM1-IBM-Planning-Analytics-Server-Configuration-Overwrite-Code-Execution.html
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2019-4716
    cwe-id: CWE-94
    epss-score: 0.86441
    epss-percentile: 0.99716
    cpe: cpe:2.3:a:ibm:planning_analytics:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: ibm
    product: planning_analytics
    shodan-query: title:"Arc for TM1"
  tags: cve,cve2019,ibm,planning_analytics,passive,kev,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    host-redirects: true
    max-redirects: 2

    matchers:
      - type: dsl
        dsl:
          - 'contains_any(body, "IBM Planning Analytics","IBM Cognos TM1")'
          - "compare_versions(version, '>= 2.0.0') && compare_versions(version, '<= 2.0.8')"
          - 'status_code == 200'
        condition: and

    extractors:
      - type: regex
        part: body
        name: version
        group: 1
        regex:
          - 'var appVersion = "([0-9.]+)";'
# digest: 4a0a0047304502205e10ae6d337325f59ece78d014b8301c94c05c7dab66b422b6a6cd0f3503c1340221009ba1255729a285ac064ad9ce01e43a54f53b3fac6781bb745ed1ca29c8623a16:922c64590222798bb761d5b6d8e72950