CVE-2016-8613 Cross-site scripting in foreman
Stored XSS in Foreman remote execution allows attackers to execute arbitrary JavaScript in users' browsers via unescaped console output.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-8613?
CVE-2016-8613 is a medium-severity cross-site scripting vulnerability in Theforeman Foreman, published on 31 Jul 2018. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A flaw was found in foreman 1.5.1. The remote execution plugin runs commands on hosts over SSH from the Foreman web UI. When a job is submitted that contains HTML tags, the console output shown in the web UI does not escape the output causing any HTML or JavaScript to run in the user's browser. The output of the job is stored, making this a stored XSS vulnerability.
Weakness: CWE-79
Which versions are affected by CVE-2016-8613?
It affects 1 product.
Products include Theforeman Foreman.
How do I fix CVE-2016-8613?
Apply the vendor's patch.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2016-8613 being exploited?
There is no known exploitation of CVE-2016-8613 in the wild and no public exploit code.
Other vulnerabilities in Theforeman Foreman
Sources
Also known as GHSA-hh7m-gjfx-m9cw.