The issue arises from an incorrect implementation of the `sanitize()` function in `inc/libmisc.php`, which attempts to escape the SCRIPT tag from user-controllable values but can be bypassed. This can be demonstrated using an `onerror` attribute of an `IMG` element as a `Devices-Config.php?sta=` value.