Open 0xbharath opened 1 week ago
The issue seems to be in the usage of tldextract library in the file mantis/utils/asset_type.py
.
>>> tldextract.extract("example.com").registered_domain
'example.com'
>>> tldextract.extract("nic.in").registered_domain
''
tldextract uses the public suffix list for parsing TLDs https://publicsuffix.org/list/public_suffix_list.dat
Describe the bug Mantis seems to skip discovery phase for TLDs reserved for country/govt entities.
To Reproduce
System (please complete the following information):
Docker based setup on Ubuntu 24.04.
Additional context
This seems to happen due to the library that is used to categorize the input provided.