Skip to content

Commit e569146

Browse files
committed
fix: rate limiting for creating federated shares#
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 35333fa commit e569146

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

apps/cloud_federation_api/lib/Controller/RequestHandlerController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public function __construct($appName,
105105
* @NoCSRFRequired
106106
* @PublicPage
107107
* @BruteForceProtection(action=receiveFederatedShare)
108+
* @AnonRateLimit(limit=5, period=1200)
108109
*
109110
* @param string $shareWith
110111
* @param string $name resource name (e.g. document.odt)

apps/federatedfilesharing/lib/Controller/RequestHandlerController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public function __construct(string $appName,
120120
/**
121121
* @NoCSRFRequired
122122
* @PublicPage
123+
* @AnonRateLimit(limit=5, period=1200)]
123124
*
124125
* create a new share
125126
*

0 commit comments

Comments
 (0)