Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nextcloud-Whitelist: false-positive when opening mp3 files in public shared folders #1131

Open
AndiMb opened this issue Oct 12, 2024 · 0 comments

Comments

@AndiMb
Copy link

AndiMb commented Oct 12, 2024

Describe the bug
The nextcloud whitelist (parsers/s02-enrich/crowdsecurity/nextcloud-whitelist.yaml) is missing a case when e.g. playing mp3 files in a public shared folder.

To Reproduce
Opening a shared folder with mp3 files an play the mp3 files in Nextcloud (v29.0.8) will eventually trigger http-probing.

part of the line from apache2 log
GET /apps/files_sharing/publicpreview/qdrXrZMw2mH2Gzk?fileId=518964&file=%2FILENAME.mp3&c=959e9a59ea8537cad1fc86fc3f18f914&x=500&y=500 HTTP/2.0

possible solution to add in nextcloud-whitelist.yaml
- evt.Meta.http_status == '404' && evt.Meta.http_verb == 'GET' && evt.Meta.http_path contains '/apps/files_sharing/publicpreview' && evt.Parsed.http_args contains 'fileId=' # 404 error thrown when preview is missing for files in public preview

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

No branches or pull requests

1 participant