Details
Alert Id 10054
Alert Type Passive Scan Rule
Status release
Risk
CWE
WASC

Summary

A cookie has been set without the SameSite attribute, which means that the cookie can be sent as a result of a ‘cross-site’ request. The SameSite attribute is an effective counter measure to cross-site request forgery, cross-site script inclusion, and timing attacks.

Solution

Ensure that the SameSite attribute is set to either 'lax' or ideally 'strict' for all cookies.

References

Code

org/zaproxy/zap/extension/pscanrules/CookieSameSiteScanRule.java