Skip to content

Insufficient checkings for private IP range #768

@Kagami

Description

@Kagami

Seems like you forgot to add checking for 172.16.0.0/12 private network range:
https://github.com/Bitmessage/PyBitmessage/blob/master/src/class_receiveDataThread.py#L491
(used in recaddr)

Similar issue: sendaddr uses another routine isHostInPrivateIPRange from helper_generic module which has checking for 172.16/12 but lacks IPv6 support in its turn:
https://github.com/Bitmessage/PyBitmessage/blob/master/src/helper_generic.py#L25

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as it's supposed to

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions