{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-0846","assignerOrgId":"70b007e9-5235-4ee5-90b5-a71a81beeda0","state":"PUBLISHED","assignerShortName":"OpenNMS","dateReserved":"2023-02-15T19:03:13.669Z","datePublished":"2023-02-22T18:35:19.051Z","dateUpdated":"2024-08-02T05:24:34.302Z"},"containers":{"cna":{"affected":[{"defaultStatus":"unknown","modules":["Alarm detail"],"platforms":["Windows","Linux","MacOS"],"product":"Horizon","repo":"https://github.com/OpenNMS","vendor":"The OpenNMS Group ","versions":[{"lessThan":"31.0.4","status":"affected","version":"26.1.0","versionType":"git"}]},{"defaultStatus":"unaffected","modules":["Alarm detail"],"platforms":["Windows","MacOS","Linux"],"product":"Meridian","repo":"https://github.com/OpenNMS","vendor":"The OpenNMS Group","versions":[{"lessThan":"2020.1.32","status":"affected","version":"2020.1.0","versionType":"git"},{"lessThan":"2021.1.24","status":"affected","version":"2021.1.0","versionType":"git"},{"lessThan":"2022.1.13","status":"affected","version":"2022.1.0","versionType":"git"},{"status":"unaffected","version":"2023.1.0"}]}],"credits":[{"lang":"en","type":"reporter","user":"00000000-0000-4000-9000-000000000000","value":"Stefan Schiller (SonarSource)"}],"datePublic":"2023-02-15T21:55:00.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"Unauthenticated, stored cross-site scripting in the display of alarm reduction keys&nbsp;in multiple versions of OpenNMS Horizon and Meridian could allow an attacker access to confidential session information.&nbsp;<span style=\"background-color: var(--wht);\">Users\nshould upgrade to Meridian 2023.1.0 or newer, or Horizon 31.0.4. Meridian and\nHorizon installation instructions state that they are intended for installation\nwithin an organization's private networks and should not be directly accessible\nfrom the Internet.</span>"}],"value":"Unauthenticated, stored cross-site scripting in the display of alarm reduction keys in multiple versions of OpenNMS Horizon and Meridian could allow an attacker access to confidential session information. Users\nshould upgrade to Meridian 2023.1.0 or newer, or Horizon 31.0.4. Meridian and\nHorizon installation instructions state that they are intended for installation\nwithin an organization's private networks and should not be directly accessible\nfrom the Internet."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"ADJACENT_NETWORK","availabilityImpact":"NONE","baseScore":6.7,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"orgId":"70b007e9-5235-4ee5-90b5-a71a81beeda0","shortName":"OpenNMS","dateUpdated":"2023-02-27T18:56:27.133Z"},"references":[{"url":"https://github.com/OpenNMS/opennms/pull/5506/files"},{"url":"https://docs.opennms.com/meridian/2022/releasenotes/changelog.html#releasenotes-changelog-Meridian-2022.1.13"}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<a target=\"_blank\" rel=\"nofollow\" href=\"https://github.com/OpenNMS/opennms/pull/5506/files\"><br></a><span style=\"background-color: rgb(255, 255, 255);\">Upgrade to a newer version of Meridian or Horizon. Or change the details.jsp file as follows:&nbsp;</span><br><br><br>Change:&nbsp;<br>&lt;th class=\"col-md-1\"&gt;Reduction&amp;nbsp;Key&lt;/th&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class=\"col-md-11\" colspan=\"3\"&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;% if (alarm.getReductionKey() != null) {%&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;%=alarm.getReductionKey()%&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;% } else {%&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;% }%&gt;<br><br>To:<br>&lt;th class=\"col-md-1\"&gt;Reduction&amp;nbsp;Key&lt;/th&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;td class=\"col-md-11\" colspan=\"3\"&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;% if (alarm.getReductionKey() != null) {%&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;%=WebSecurityUtils.sanitizeString(alarm.getReductionKey())%&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;% } else {%&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;% }%&gt;<br><br><a target=\"_blank\" rel=\"nofollow\" href=\"https://github.com/OpenNMS/opennms/pull/5506/files\">https://github.com/OpenNMS/opennms/pull/5506/files<br></a><br>"}],"value":" \n https://github.com/OpenNMS/opennms/pull/5506/files Upgrade to a newer version of Meridian or Horizon. Or change the details.jsp file as follows: \n\n\nChange: \n<th class=\"col-md-1\">Reduction&nbsp;Key</th>\n        <td class=\"col-md-11\" colspan=\"3\">\n            <% if (alarm.getReductionKey() != null) {%>\n            <%=alarm.getReductionKey()%>\n            <% } else {%>\n            &nbsp;\n            <% }%>\n\nTo:\n<th class=\"col-md-1\">Reduction&nbsp;Key</th>\n        <td class=\"col-md-11\" colspan=\"3\">\n            <% if (alarm.getReductionKey() != null) {%>\n            <%=WebSecurityUtils.sanitizeString(alarm.getReductionKey())%>\n            <% } else {%>\n            &nbsp;\n            <% }%>\n\n https://github.com/OpenNMS/opennms/pull/5506/files\n https://github.com/OpenNMS/opennms/pull/5506/files \n"}],"source":{"discovery":"EXTERNAL"},"title":"Unauthenticated, stored XSS in display of alarm reduction-key","x_generator":{"engine":"Vulnogram 0.1.0-dev"}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-02T05:24:34.302Z"},"title":"CVE Program Container","references":[{"url":"https://github.com/OpenNMS/opennms/pull/5506/files","tags":["x_transferred"]},{"url":"https://docs.opennms.com/meridian/2022/releasenotes/changelog.html#releasenotes-changelog-Meridian-2022.1.13","tags":["x_transferred"]}]}]}}