An XSS vulnerability resides in the hostname field of the diag_ping.php page in pfsense before 2.4.5 version. After passing inputs to the command and executing this command, the $result variable is not sanitized before it is printed.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
AV:N/AC:M/Au:N/C:N/I:P/A:N
cpe:2.3:a:netgate:pfsense:*:*:*:*:*:*:*:*
Rejoining the server...
Rejoin failed... trying again in seconds.
Failed to rejoin.Please retry or reload the page.
The session has been paused by the server.
Failed to resume the session.Please retry or reload the page.