CVE-2023-40314 Cross-site scripting in bootstrap.jsp
Cross-site scripting in bootstrap.jsp allows attackers to steal confidential session information from OpenNMS Horizon and Meridian users.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-40314?
CVE-2023-40314 is a medium-severity cross-site scripting vulnerability in Horizon, published on 16 Nov 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Cross-site scripting in bootstrap.jsp in multiple versions of OpenNMS Meridian and Horizon allows an attacker access to confidential session information. The solution is to upgrade to Horizon 32.0.5 or newer and Meridian 2023.1.9 or newer
Meridian and Horizon installation instructions state that they are intended for installation within an organization's private networks and should not be directly accessible from the Internet.
OpenNMS thanks
Moshe Apelbaum
for reporting this issue.
Which versions are affected by CVE-2023-40314?
2 open source packages ship an affected version, including org.opennms:opennms-webapp. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
org.opennms:opennms-webapp Maven | All versions | 32.0.5 |
org.opennms:opennms-webapp Maven | All versions | 32.0.5 |
Products include Opennms Horizon, Opennms Meridian.
How do I fix CVE-2023-40314?
Upgrade org.opennms:opennms-webapp to 32.0.5 or later.
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-40314 being exploited?
There is no known exploitation of CVE-2023-40314 in the wild and no public exploit code.
Other vulnerabilities in Horizon
- CVE-2021-25931 Cross-Site Request Forgery in OpenNMS Horizon
- CVE-2021-3396 OpenNMS Horizon RCE via JEXL2 expression
- CVE-2023-0872 ROLE_REST can be used to escalate to ROLE_ADMIN via /rest/users
- CVE-2023-0870 Form Can Be Manipulated with Cross-Site Request Forgery (CSRF)
- CVE-2020-11886 SQL injection in n/a
Sources
Also known as GHSA-c6xw-hg9q-3c9f.