http-sensitive-files erroneously flags valid /repo.git access

Open Beginner friendly
#2,009 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Domain
security

Research direction

The issue points to the http-sensitive-files configuration and its sensitive_data.txt file. Read the current .git entry and check how the configuration matches paths. Change it to match /.git while allowing legitimate /repo.git URLs, then verify both cases against the configuration’s available checks.

Written by the indexing model from the issue text.

Description

The https://hub.crowdsec.net/author/crowdsecurity/configurations/http-sensitive-files uses a sensitive_data.txt file that includes .git. This causes issues on any git repository hosting server because /repo.git is flagged when it is a legitimate url for git cloning. Changing to /.git would capture access to .git directories while allowing repo.git access.

Dominant language
Python
Stars
257
Forks
235
Avg merge
2d 10h
Merged PRs (30d)
26

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from crowdsecurity/hub

All issues in crowdsecurity/hub

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.