Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Important: Exposed MongoDB cluster in your code

Đang mở
#49 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
20/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
mongodb, nodejs
Lĩnh vực
backend, databases, security

Hướng nghiên cứu

Tìm kiếm trong repository URI MongoDB bị lộ và kiểm tra cách thông tin xác thực kết nối được tải. Xem lại hướng dẫn về .env và dotenv trong issue, sau đó sử dụng tài liệu của GitHub về việc xóa dữ liệu nhạy cảm để xác định các bước dọn dẹp. Được xem là hoàn tất khi thông tin xác thực không còn bị lộ trong các tệp hiện tại hoặc lịch sử, và cluster được bảo mật.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

[!WARNING]

You have an exposed mongoDB cluster containing multiple databases in this repository.

Hey DSCKGEC, If you receive this issue don't panic, I am a friendly automated script looking around the internet and just to let you know that you have an exposed mongoDB cluster in your code.
I was able to connect and expose those databases from your cluster:
  • accounting
  • calorily
  • gladiapet_sepolia
  • lucid
  • starknetid
  • telepay
  • admin
  • local

A malicious attacker could leak data and get credentials to your or people's services/system, even if you know that no sensible information is stored inside it, it is still very dangerous. I do not know what kind of information your databases hold but a malicious attacker could easily dump all the content, please make sure to follow these steps:

  1. Put your secrets in a .env file
  2. Use a library like dotenv to load the environment variables from your file onto your code
  3. At this point, I would either suggest either using github's tool to erase the history or you could delete the repos on Github, remove the .git folder locally and recreate a new repos with a clean history

In the future make sure to not expose your secrets especially your mongodb uri as it contains your username and password combination. Make sure to create a .env file and load your environment variables into your code accordingly.

If you like what I am doing for the community, please feel free to follow my github account @GaillardTom
Ngôn ngữ chính
HTML
Star
9
Fork
18
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DSCKGEC/Libraryly

Tất cả issue của DSCKGEC/Libraryly

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.