Add SSRF detection capabilities

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

Maintainer thường phản hồi trong vòng 1 ngày

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
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ruby
Lĩnh vực
security

Hướng nghiên cứu

The request is for a new predicate on the IPAddr class, so start at that class definition and look at which address predicates already exist to see what a consistent API looks like. The scope needs a decision first: which ranges count as unsafe (loopback, link-local, RFC1918, IPv6 equivalents), and whether the answer is a new method or an extension of existing ones. Done looks like IPAddr#ssrf_unsafe? returning true for 10.0.0.1 and false for a public address, backed by tests covering each range. Expect a maintainer discussion before any code lands, so read the thread before starting.

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

Mô tả

I've used ssrf_filter in the past to prevent HTTP requests to internal endpoints. Over time, I've found I need a lot of the functionality found in the library in other workflows not related to net-http.

I'd like to know your thoughts on adding a potential API to determine whether an IP is considered unsafe. Something like:

ip = IPAddr.new("10.0.0.1")
ip.ssrf_unsafe? #=> true
Ngôn ngữ chính
Ruby
Star
83
Fork
50
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
8

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 ruby/ipaddr

Tất cả issue của ruby/ipaddr

Issue tương tự

Thêm issue về Ruby

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.