mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-04-27 04:45:48 +03:00
[GH-ISSUE #43] registration with invalid allowfrom fails open #11
Labels
No labels
Documentation
Documentation
bug
enhancement
feature request
feature request
help wanted
pull-request
question
security
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/acme-dns#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cpu on GitHub (Feb 28, 2018).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/43
I didn't read the documentation very carefully and thought I could POST
/registrationwith anallowfromentry for a single host address instead of a CIDR range, e.g.:acme-dnsfilters this invalidallowfrominacmedb.Registerusingcidrslice.ValidEntries. The registration is created successfully with no errors, but the returnedallowfromis empty and so is the field in the database for this user:The documentation specifically says to use a CIDR range but I think there might be a case to be made for rejecting the registration with an error when the
allowfromcontains invalid entries. Sinceallowfromis a security control I thinkacme-dnsshould be conservative and fail fast when it can't fulfill the request as received.@joohoi What do you think?
@joohoi commented on GitHub (Mar 1, 2018):
I think you are on the right track here, and we should fail early. But from the UX perspective, I think what would be best way to handle this, would be to automatically add
/32bitmask if none is specified but the IP address itself is valid.@cpu commented on GitHub (Mar 1, 2018):
That sounds like a nice compromise 👍
@joohoi commented on GitHub (Feb 5, 2019):
This is now finally fixed. I opted to not to introduce magic I proposed in https://github.com/joohoi/acme-dns/issues/43#issuecomment-369604662 . The only magic is removing
[and]from the IP addresses as thenet.ParseCIDRcannot handle that notation of IPv6 addresses.