Skip to content

Commit

Permalink
enhance: Update webdav expression to include 200's (#1094)
Browse files Browse the repository at this point in the history
* enhance: Update webdav expression to include 200's

* enhance: Update markdown
  • Loading branch information
LaurenceJJones authored Aug 21, 2024
1 parent ba90a06 commit 79d091c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .index.json
Original file line number Diff line number Diff line change
Expand Up @@ -7304,7 +7304,7 @@
"crowdsecurity/nextcloud-whitelist": {
"path": "parsers/s02-enrich/crowdsecurity/nextcloud-whitelist.yaml",
"stage": "s02-enrich",
"version": "1.0",
"version": "1.1",
"versions": {
"0.1": {
"digest": "7685c823a398a711b76afea742ebeb2637ac55c829eafba841b63504b1e2228e",
Expand Down Expand Up @@ -7345,10 +7345,14 @@
"1.0": {
"digest": "a1e5cb85bb64594220a390b82db288534feb73b99cce25cb13776fcd63a1e75c",
"deprecated": false
},
"1.1": {
"digest": "cb057942be9f210cdd433dd81f930fb8c6fbf661f80311261d56c8193d122de8",
"deprecated": false
}
},
"long_description": "IyMgTmV4dGNsb3VkIHdoaXRlbGlzdAoKIyMjIENvbnRhY3RzIGFwcApDb250YWN0cyBoYXMgYW4gaXNzdWUgd2l0aCBleGNlc3NpdmUgNDA0IHJlc3BvbnNlIGNvZGVzIHdoZW4gYSB1c2VyIGltYWdlIGlzIG1pc3NpbmcKW1Vwc3RyZWFtIGlzc3VlXShodHRwczovL2dpdGh1Yi5jb20vbmV4dGNsb3VkL2NvbnRhY3RzL2lzc3Vlcy8zMDIxKQoKLS0tCiMjIyBQaG90b3MgYXBwCk9uIGZpcnN0IGxvYWQgdGhlIHBob3RvcyBhcHAgY2FsbHMgYSBwcmV2aWV3IGVuZHBvaW50LCBob3dldmVyLCBpZiBpdCBmYWlscyB0byBsb2FkIGl0IHdpbGwgdHJpZ2dlciBodHRwLXByb2JpbmcKCldoZW4gb3BlbmluZyB0aGUgcGhvdG9zIGFwcCwgbXVsdGlwbGUgcmVxdWVzdHMgYXJ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nMgJy9hcHBzL2Jvb2ttYXJrcy9ib29rbWFyaycgJiYgKGV2dC5NZXRhLmh0dHBfcGF0aCBlbmRzV2l0aCAnZmF2aWNvbicgfHwgZXZ0Lk1ldGEuaHR0cF9wYXRoIGVuZHNXaXRoICdpbWFnZScpICNXaGVuIGxvYWRpbmcgTkMgYm9va21hcmtzOiBzb21lIGVudHJpZXMgbWlnaHQgaGF2ZSBubyBmYXZpY29uIG9yIG5vIGltYWdlCiAgIC0gZXZ0Lk1ldGEuaHR0cF9zdGF0dXMgPT0gJzQwNCcgJiYgZXZ0Lk1ldGEuaHR0cF92ZXJiID09ICdHRVQnICYmIGV2dC5NZXRhLmh0dHBfcGF0aCBjb250YWlucyAnL2FwcHMvYm9va21hcmtzL2ZvbGRlcicgJiYgZXZ0Lk1ldGEuaHR0cF9wYXRoIGVuZHNXaXRoICdwdWJsaWN0b2tlbicgI1doZW4gbG9hZGluZyBOQyBib29rbWFya3M6IHByaXZhdGUgZm9sZGVycyBoYXZlIG5vIHB1YmxpY3Rva2VuCg==",
"description": "Whitelist events from nextcloud",
"author": "crowdsecurity",
"labels": null
Expand Down
13 changes: 13 additions & 0 deletions parsers/s02-enrich/crowdsecurity/nextcloud-whitelist.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,16 @@ In rare cases HTTP Probing will be triggered when opening multiple folders quick
### Creating files via WebDAV
When uploading files via WebDAV, a PROPFIND request is sent to the server, which returns 404 if the file does not
exist. Then the file is created. Uploading more than 10 files at a time will trigger http-probing.

When syncing large amount of files via WebDAV, it could trigger http-probing so the expression also whitelists 200 response codes.

---
### Trashbin
Whilst browsing deleted files in the trashbin, a 404 error is thrown when a file has no preview thumbnail. This can trigger http-probing.

---
### Bookmarks
Whilst browsing bookmarks a 404 response could be sent if the bookmarked page had no favicon or image attached.

Whilst browsing private folder on the bookmark app a 404 response could be sent if the bookmarked page had no publictoken generated.

2 changes: 1 addition & 1 deletion parsers/s02-enrich/crowdsecurity/nextcloud-whitelist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ whitelist:
- evt.Meta.http_status == '404' && evt.Meta.http_verb == 'GET' && evt.Meta.http_path contains '/apps/files_versions/preview' && evt.Parsed.http_args contains 'version' #Backup app missing file version
- evt.Meta.http_status == '404' && evt.Meta.http_verb == 'GET' && evt.Meta.http_path contains '/apps/photos/api/v1/preview' && evt.Parsed.http_args contains 'x' && evt.Parsed.http_args contains 'y' #Photo app loads all previews as small panes, but can 404
- evt.Meta.http_status == '404' && evt.Meta.http_verb == 'GET' && evt.Parsed.request contains '/core/preview' && evt.Parsed.http_args contains 'x=' && evt.Parsed.http_args contains 'y=' && evt.Parsed.http_args contains 'fileId=' #File preview often 404s while searching
- evt.Meta.http_status == '404' && evt.Meta.http_verb in ['PROPFIND', 'GET'] && evt.Meta.http_path matches '^/remote.php/(web)?dav/' #Uploading new files via WebDAV always produces a 404
- evt.Meta.http_status in ['404', '200'] && evt.Meta.http_verb in ['PROPFIND', 'GET'] && evt.Meta.http_path matches '^/remote.php/(web)?dav/' #Uploading new files via WebDAV always produces a 404
- evt.Meta.http_status == '404' && evt.Meta.http_verb == 'GET' && evt.Meta.http_path contains '/apps/mail/api/avatars/url/' #When loading mail contacts the avatars may get 404
- evt.Meta.http_status == '200' && evt.Parsed.static_ressource == 'false' && evt.Meta.http_verb == 'GET' && evt.Meta.http_path contains '/apps/photos/api/v1/preview' && evt.Parsed.http_args contains '&x=' && evt.Parsed.http_args contains '&y=' && evt.Parsed.http_args contains 'etag=' #When loading multiple images inside Nextcloud Photos, HTTP Crawl non statics is triggered since the images look like dynamic assets.
- evt.Meta.http_status == '404' && evt.Meta.http_verb == 'GET' && evt.Parsed.request == '/ocs/v2.php/apps/text/workspace' && evt.Parsed.http_args contains 'path=%2F' #When opening folders in Nextcloud Files that don't contain a readme.md 404 error is thrown
Expand Down

0 comments on commit 79d091c

Please sign in to comment.