Potential XSS in "CSRF validation failure" page due to lack of referer sanitization


On FortiAuthenticator, a HTML page is returned to the user when the CSRF validation fails on referer mismatch. This page displays the faulty referer without sanitizing it. Therefore, in an attack scenario where the referer could be manipulated, the attacker could inject malicious scripts in the aforementioned HTML-page.

Affected Products

FortAuthenticator below 5.3.0 versions.


Upgrade to FortiAuthenticator 5.3.0 or above.


Fortinet is pleased to thank Arun Narayanan from Applied-Risk reporting this vulnerability under responsible disclosure.