CSRF protection disabled on export endpoints with side effects #171
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: LOW
Location
All controllers using
#[NoCSRFRequired]on GET endpointsDescription
#[NoCSRFRequired]is appropriately used on GET (read-only) endpoints. However, some export/download endpoints that trigger actions or side effects also have this attribute (e.g., DSGVO export, report PDF downloads). This is standard Nextcloud practice for download endpoints but worth noting.Recommendation
Verify that all
#[NoCSRFRequired]endpoints are truly side-effect-free or require explicit user action.