CVE-2023-0119 Foreman: stored cross-site scripting in host tab

Medium 5.4 Published Updated

An attacker with an account can inject scripts into the Hosts tab comment section to steal sessions and credentials from other users.

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-2023-0119?

CVE-2023-0119 is a medium-severity cross-site scripting vulnerability in Redhat Satellite, published on 12 Sep 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A stored Cross-site scripting vulnerability was found in foreman. The Comment section in the Hosts tab has incorrect filtering of user input data. As a result of the attack, an attacker with an existing account on the system can steal another user's session, make requests on behalf of the user, and obtain user credentials.

Weakness: CWE-79

Which versions are affected by CVE-2023-0119?

It affects 1 product.

Linux distribution packages (3)
foreman Red Hat:satellite:6.13::el8All versions0:3.5.1.17-1.el8sat
foreman Red Hat:satellite_capsule:6.13::el8All versions0:3.5.1.17-1.el8sat
foreman Red Hat:satellite_utils:6.13::el8All versions0:3.5.1.17-1.el8sat

Products include Redhat Satellite.

How do I fix CVE-2023-0119?

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-2023-0119 being exploited?

There is no known exploitation of CVE-2023-0119 in the wild and no public exploit code.

All Redhat Satellite vulnerabilities

Sources

Also known as GHSA-6fr9-c775-x826, RHSA-2023:3387.

Is CVE-2023-0119 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free