HexBrain

Browse / CVEs / CVE-2021-21087

CVE-2021-21087· adobe / coldfusion· CWE-79

Adobe ColdFusion - Cross-Site Scripting

mediumseverity
5.4CVSS score
37.1%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

Adobe Coldfusion versions 2016 (update 16 and earlier), 2018 (update 10 and earlier) and 2021.0.0.323925 are affected by an Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability. An attacker could abuse this vulnerability to execute arbitrary JavaScript code in context of the current user. Exploitation of this issue requires user interaction.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.

Fix

Apply the latest security patches or updates provided by Adobe to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/cf_scripts/scripts/ajax/package/cfajax.js ; GET {{BaseURL}}/cf-scripts/scripts/ajax/package/cfajax.js ; GET {{BaseURL}}/CFIDE/scripts/ajax/package/cfajax.js ; GET {{BaseURL}}/cfide/scripts/ajax/package/cfajax.js ; GET {{BaseURL}}/CF_SFSD/scripts/ajax/package/cfajax.js
Positive when: matches /eval\(\"\(\"\+json\+\"\)\"\)/ AND status 200

Run it with nuclei: nuclei -id CVE-2021-21087 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2021-21087

info:
  name: Adobe ColdFusion - Cross-Site Scripting
  author: Daviey
  severity: medium
  description: |
    Adobe Coldfusion versions 2016 (update 16 and earlier), 2018 (update 10 and earlier) and 2021.0.0.323925 are affected by an Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability. An attacker could abuse this vulnerability to execute arbitrary JavaScript code in context of the current user. Exploitation of this issue requires user interaction.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patches or updates provided by Adobe to mitigate this vulnerability.
  reference:
    - https://helpx.adobe.com/security/products/coldfusion/apsb21-16.html
    - https://twitter.com/Daviey/status/1374070630283415558
    - https://nvd.nist.gov/vuln/detail/CVE-2021-21087
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 5.4
    cve-id: CVE-2021-21087
    cwe-id: CWE-79
    epss-score: 0.37095
    epss-percentile: 0.98529
    cpe: cpe:2.3:a:adobe:coldfusion:2016:-:*:*:*:*:*:*
  metadata:
    max-request: 7
    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: cve2021,cve,xss,adobe,misc,coldfusion,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/cf_scripts/scripts/ajax/package/cfajax.js"
      - "{{BaseURL}}/cf-scripts/scripts/ajax/package/cfajax.js"
      - "{{BaseURL}}/CFIDE/scripts/ajax/package/cfajax.js"
      - "{{BaseURL}}/cfide/scripts/ajax/package/cfajax.js"
      - "{{BaseURL}}/CF_SFSD/scripts/ajax/package/cfajax.js"
      - "{{BaseURL}}/cfide-scripts/ajax/package/cfajax.js"
      - "{{BaseURL}}/cfmx/CFIDE/scripts/ajax/package/cfajax.js"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - 'eval\(\"\(\"\+json\+\"\)\"\)'

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from