Skip to content
XSS Advisory Intermediate CVE-2020-9496

GHSL-2020-068: Cross-Site Scripting in Apache OfBiz - CVE-2020-9496

Apache OfBiz's XMLRPC endpoint reflects unauthenticated POST data without sanitisation, allowing an attacker to inject a script that executes in a victim's browser. This could lead to page defacement, credential theft, or, when combined with an SSTI issue, remote code execution.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

Apache OfBiz is vulnerable to Reflected Cross-Site Scripting through POST request

pwntester, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the XMLRPC endpoint reflects user-supplied POST data into the response without proper output encoding.

Impact

This issue may lead to a variety of attacks from page defacements to stealing user/admin credentials, and in conjunction with any SSTI issues can be escalated into a Remote Code Execution.

What the attacker needed

Victim visits a malicious page; victim is logged in to OfBiz

How it was found

  1. Send a POST request to the XMLRPC endpoint with a crafted XML body containing a script tag.
  2. The server reflects the script in the response, executing it in the browser.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

The XMLRPC endpoint takes data from a form and echoes it back in the page without cleaning it. An attacker can trick a logged-in user into submitting a form that contains a script, and that script runs in the user's browser with the site's permissions. This is called cross-site scripting (XSS).

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Alvaro Muñoz

View all

132 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.