Skip to content

scenarios/http-backdoors-attempts.yaml breaks NextCloud (and other regular web apps) #1785

@wAmpIre

Description

@wAmpIre

Describe the bug
Reading Apache logs from crowdsec with installed NextCloud brings up a false positive alert/decision

Reason: filenames in backdoors.txt used as regular expressions (at least I think so) and match also different filenames/URIs

To Reproduce

  1. Put a file /dummy/v1.php to a PHP-enabled web server
  2. Request http://.../dummy/v1.php from web server twice

Expected behavior

  1. Do NOT detect/block this request
  2. Search for /<FILENAME> (prefixed with slash) in http_(access|error)-log instead of <FILENAME>

Screenshots
Not a screenshot but part of detail of alert:

+---------------+--------------------------------------------+
|      Key      |                    Value                   |
+---------------+--------------------------------------------+
| http_args_len | 11                                         |
| http_path     | /ocs/v1.php/cloud/capabilities?format=json |
| http_status   | 200                                        |
| log_type      | http_access-log                            |
| service       | http                                       |
+---------------+--------------------------------------------+

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions