security: no rate limiting on AI and social image AJAX endpoints #243
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?
Description
The
AiController::generate()andImageController::generate()AJAX endpoints have CSRF and ACL checks but no rate limiting. A user with valid CSRF token and edit permissions could:Suggested fix
Add session-based rate limiting:
A 10-second cooldown per session would prevent abuse without impacting normal usage.
Impact
AiController.php,ImageController.phpBranch created:
feature/243-security-no-rate-limiting-on-ai-and-soci