phpvuln
phpvuln copied to clipboard
ipaddress.AddressValueError: Octet 612 (> 255) not permitted in '612.34.56.78'
Hi,
First, thanks for your tool !
I got an error with a phone value hardcoded : eg. 612.34.56.78
ip_exposure treat this as an ip and raise an AddressValueError:
Traceback (most recent call last):
File "phpvuln.py", line 109, in <module>
main()
File "phpvuln.py", line 85, in main
for line, no, vuln_part in vuln_obj.find():
File "/home/phpvuln/lib/vulns/ip_exposure.py", line 25, in find
if ipaddress.IPv4Address(ip).is_private:
File "/usr/lib/python3.8/ipaddress.py", line 1257, in __init__
self._ip = self._ip_int_from_string(addr_str)
File "/usr/lib/python3.8/ipaddress.py", line 1149, in _ip_int_from_string
raise AddressValueError("%s in %r" % (exc, ip_str)) from None
ipaddress.AddressValueError: Octet 612 (> 255) not permitted in '612.34.56.78'