Add reserved? method to detect reserved IP addresses
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 82
- Forks
- 42
- Avg merge
- 2h 24m
- Merged PRs (30d)
- 3
Description
This library already has private?, link_local?, loopback?, etc.
It would be useful to have a reserved? method:
https://en.wikipedia.org/wiki/Reserved_IP_addresses
One of the reasons would be to mitigate SSRF attacks in a simple way, by limiting connections to "normal" "external" IP addresses (!ipaddr.reserved?).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing private?, link_local?, and loopback? methods and the IP address range definitions they use, then compare them with the linked reserved-address reference. Done means a reserved? predicate is available for the library's supported IP addresses and its behavior is covered by tests for the relevant reserved ranges.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100