HexBrain

Browse / CVEs / CVE-2020-9496

CVE-2020-9496· apache / ofbiz· CWE-502

Apache OFBiz 17.12.03 - Cross-Site Scripting

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

Apache OFBiz 17.12.03 contains cross-site scripting and unsafe deserialization vulnerabilities via an XML-RPC request.

Impact

Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code 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 upgrade to a non-vulnerable version of Apache OFBiz.

How to confirm it

Send: POST /webtools/control/xmlrpc
Positive when: contains "faultString" and "No such service [ProjectDiscovery]" and "methodResponse" AND contains in header "Content-Type: text/xml" AND status 200

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

The full check
id: CVE-2020-9496

info:
  name: Apache OFBiz 17.12.03 - Cross-Site Scripting
  author: dwisiswant0
  severity: medium
  description: Apache OFBiz 17.12.03 contains cross-site scripting and unsafe deserialization vulnerabilities via an XML-RPC request.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code 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 upgrade to a non-vulnerable version of Apache OFBiz.
  reference:
    - http://packetstormsecurity.com/files/158887/Apache-OFBiz-XML-RPC-Java-Deserialization.html
    - http://packetstormsecurity.com/files/161769/Apache-OFBiz-XML-RPC-Java-Deserialization.html
    - https://securitylab.github.com/advisories/GHSL-2020-069-apache_ofbiz
    - https://s.apache.org/l0994
    - https://nvd.nist.gov/vuln/detail/CVE-2020-9496
  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-9496
    cwe-id: CWE-502
    epss-score: 0.98912
    epss-percentile: 0.99928
    cpe: cpe:2.3:a:apache:ofbiz:17.12.03:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: apache
    product: ofbiz
    shodan-query:
      - http.html:"ofbiz"
      - ofbiz.visitor=
    fofa-query:
      - body="ofbiz"
      - app="apache_ofbiz"
  tags: cve,cve2020,ofbiz,packetstorm,apache,java,vkev,vuln

http:
  - raw:
      - |
        POST /webtools/control/xmlrpc HTTP/1.1
        Host: {{Hostname}}
        Origin: http://{{Hostname}}
        Content-Type: application/xml

        <?xml version="1.0"?><methodCall><methodName>ProjectDiscovery</methodName><params><param><value>dwisiswant0</value></param></params></methodCall>

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "faultString"
          - "No such service [ProjectDiscovery]"
          - "methodResponse"
        condition: and

      - type: word
        part: header
        words:
          - "Content-Type: text/xml"

      - type: status
        status:
          - 200

References

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