Hello All,
We ran the DAST on keycloak instance, we got the below security suggestions, I am not sure keycloak already enabled CSRF? if yes how we can confirm that its enable and with evidences like in header/request/cookies.
Description
CSRF (Cross-Site Request Forgery) exploits trust between a user’s browser and a web application,
allowing attackers to perform unauthorized actions. In a login scenario, an attacker tricks a user into
submitting a form that logs them into the attacker’s account without consent.
Impact
The impact of CSRF in a login context can be severe, leading to unauthorized access, data breaches, and
account takeover. Users may unknowingly perform actions that compromise their security,
Recommendation
To prevent CSRF attacks, use unique tokens for forms, set “SameSite” attributes on cookies, implement
CSRF Tokens and validate the Referrer header.