Skip to content

fix(nextcloud-whitelist): allow WebDAV PUT requests on /remote.php/dav/ (#1915) - #1994

Open
hrithiksaini99 wants to merge 1 commit into
crowdsecurity:masterfrom
hrithiksaini99:fix-nextcloud-whitelist-webdav-put
Open

hrithiksaini99 wants to merge 1 commit into
crowdsecurity:masterfrom
hrithiksaini99:fix-nextcloud-whitelist-webdav-put

Conversation

@hrithiksaini99

Copy link
Copy Markdown
Contributor

Fixes #1915.

Description

In parsers/s02-enrich/crowdsecurity/nextcloud-whitelist.yaml, the expression for WebDAV uploads:

- evt.Meta.http_status in ['404', '200'] && evt.Meta.http_verb in ['PROPFIND', 'GET', 'DELETE'] && evt.Meta.http_path matches '^/remote.php/(web)?dav/' #Uploading new files via WebDAV always produces a 404

expressly comments #Uploading new files via WebDAV always produces a 404, but omits HTTP PUT from the verbs list.

When WebDAV sync clients (e.g. Nextcloud desktop sync or mobile client sync) upload files, directory tree copy/sync emits PUT requests that can legitimately return 404 before resource creation or on chunked uploads. Without PUT whitelisted, these 404s overflow crowdsecurity/http-probing and cause false-positive IP bans for legitimate users.

This PR adds 'PUT' to the verb list in nextcloud-whitelist.yaml.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nextcloud-whitelist: WebDAV PUT 404s from sync clients trigger crowdsecurity/http-probing

1 participant