hcrudolph/ciphersuite.info

Search for vulnerabilities

n0lz opened this issue · 2 comments

n0lz commented
Search for vulnerabilities

Django doesn't seem to find the vulnerabilities' names using the following filter call. However, this does work when executed from the command line:

results_cs = CipherSuite.objects.filter(
	Q(name__icontains=search_term)|
	Q(auth_algorithm__long_name__icontains=search_term)|
	Q(enc_algorithm__long_name__icontains=search_term)|
	Q(kex_algorithm__long_name__icontains=search_term)|
	Q(hash_algorithm__long_name__icontains=search_term)|
	Q(protocol_version__long_name__icontains=search_term)|
	Q(auth_algorithm__vulnerabilities__name__icontains=search_term)|
	Q(enc_algorithm__vulnerabilities__name__icontains=search_term)|
	Q(kex_algorithm__vulnerabilities__name__icontains=search_term)|
	Q(hash_algorithm__vulnerabilities__name__icontains=search_term)
)

fixed by ea907c5