hub: false-positives due to nextcloud preview image 404s
The nextcloud-whitelist is not working properly for me, since I am still getting banned while file browsing through folders that contains files with no preview images.
Here’s an example output from “cscli alerts inspect…”
- Date: 2023-03-28 19:36:35 -0700 -0700
╭───────────────┬───────────────────────────────────────────────────────────────────────────────────────────╮
│ Key │ Value │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────────┤
│ ASNNumber │ 209 │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────────┤
│ ASNOrg │ CENTURYLINK-US-LEGACY-QWEST │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────────┤
│ IsInEU │ false │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────────┤
│ IsoCode │ US │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────────┤
│ SourceRange │ 97.112.0.0/12 │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────────┤
│ http_args_len │ 75 │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────────┤
│ http_path │ /core/preview?fileId=30857&c=ab392b1c22d4aa00c68300fc4b2998f0&x=500&y=500&forceIcon=0&a=0 │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────────┤
│ http_status │ 404 │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────────┤
│ log_type │ http_access-log │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────────┤
│ service │ http │
├───────────────┼───────────────────────────────────────────────────────────────────────────────────────────┤
│ source_ip │ X.X.X.X │
╰───────────────┴───────────────────────────────────────────────────────────────────────────────────────────╯
And here’s the output of cscli explain for one of the triggering log lines:
line: <my ip address> - - [28/Mar/2023:19:36:36 -0700] "GET /core/preview?fileId=30881&c=d8410df2495251c45a937c1e6c6e6a52&x=500&y=500&forceIcon=0&a=0 HTTP/1.1" 404 2706 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36"
├ s00-raw
| ├ 🟢 crowdsecurity/non-syslog (first_parser)
| └ 🔴 crowdsecurity/syslog-logs
├ s01-parse
| └ 🟢 crowdsecurity/apache2-logs (+18 ~2)
├ s02-enrich
| ├ 🟢 crowdsecurity/dateparse-enrich (+1 ~1)
| ├ 🟢 crowdsecurity/geoip-enrich (+13)
| ├ 🟢 crowdsecurity/http-logs (+8 ~1)
| ├ 🔴 crowdsecurity/naxsi-logs
| ├ 🟢 crowdsecurity/nextcloud-whitelist (unchanged)
| └ 🟢 crowdsecurity/whitelists (unchanged)
├-------- parser success 🟢
├ Scenarios
├ 🟢 crowdsecurity/http-crawl-non_statics
└ 🟢 crowdsecurity/http-probing
'''
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 23 (10 by maintainers)
Sweet, thanks! That was fast! I updated and now that same line results with “parser failure”, which I guess is the “right” kind of failure, in this case.