Cross-Site Request Forgery (CSRF)

Vulnerability Details

Severity:

Medium

Category:

web

Description

The application does not implement adequate CSRF protection mechanisms, allowing attackers to trick authenticated users into performing unintended actions.

Risks

An attacker could perform unauthorized actions on behalf of authenticated users, including changing account settings, making purchases, or modifying data.

Remediation

Implement anti-CSRF tokens for all state-changing operations. Use SameSite cookie attribute. Verify the Origin and Referer headers. Consider implementing additional confirmation steps for sensitive actions.