Hibernate Validator < 6.2 XSS

medium Nessus Plugin ID 190605

Synopsis

A Java library on the remote host may be affected by a cross-site scripting vulnerability.

Description

The version of Hibernate Validator on the remote host is prior to 6.2. It may, therefore, by affected by a cross-site scripting (XSS) vulnerability. A flaw was found in the isValid method in the org.hibernate.validator.internal.constraintvalidators.hv.SafeHtmlValidator class, which can be bypassed by omitting the tag ending in a less-than character.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to hibernate-validator 6.2 or later.

See Also

https://access.redhat.com/security/cve/cve-2023-1932

https://bugzilla.redhat.com/show_bug.cgi?id=1809444

Plugin Details

Severity: Medium

ID: 190605

File Name: hibernate_validator_cve-2023-1932.nasl

Version: 1.1

Type: local

Agent: windows, macosx, unix

Family: Misc.

Published: 2/16/2024

Updated: 2/19/2024

Configuration: Enable paranoid mode, Enable thorough checks

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.0

CVSS v2

Risk Factor: Medium

Base Score: 5.8

Temporal Score: 4.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:N

CVSS Score Source: CVE-2023-1932

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:redhat:hibernate_validator

Required KB Items: installed_sw/Hibernate Validator, Settings/ParanoidReport

Exploit Ease: No known exploits are available

Patch Publication Date: 12/23/2020

Vulnerability Publication Date: 2/7/2024

Reference Information

CVE: CVE-2023-1932

IAVB: 2024-B-0010