Skip to content
XSS Advisory Intermediate CVE-2020-1961

GHSL-2020-054: XSS in Apache Syncope - CVE-2020-1961

The EndUser login page reflected the successMessage parameter with insufficient sanitisation that only removed closed HTML tags, allowing an attacker to inject a script via an unclosed tag. An attacker could execute JavaScript in a victim's browser, and if the victim was a logged-in administrator, send arbitrary requests to the REST API, potentially leading to RCE when chained with other issues.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

An XSS issue in the EndUser login page was identified in Apache Syncope, combined with GHSL-2020-029 or GHSL-2020-055 this XSS may be escalated into RCE.

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

The sanitisation used a regular expression that only removed closed HTML tags, but browsers automatically close unclosed tags, allowing a bypass.

Impact

An attacker could execute JavaScript in a victim's browser; if the victim is a logged-in administrator, the attacker could send arbitrary requests to the REST API, and when chained with other issues, escalate to RCE.

What the attacker needed

Victim clicks a malicious link; victim may be logged in as admin

The fix

The issue was fixed by escaping the successMessage parameter for HTML context instead of trying to sanitise it.

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.

A login page took a value from the web address and showed it on the page without properly cleaning it. The cleaning only removed complete HTML tags, so an attacker could use an incomplete tag to run their own code in the victim's browser. 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.