Open mwulftange opened 9 years ago
it works for me. how did you create the vulnerability and the host?
Was this on a fresh database or from one prior to the f_ipv4/f_ipv6 to f_ipaddr change?
This could also be a cached select() issue. Did you just create a vulnerability and attempt to assign it to a service?
Kurt Grutzmacher -=- grutz@jingojango.net
On Thu, Feb 5, 2015 at 7:11 AM, fnoelscher notifications@github.com wrote:
it works for me. how did you create the vulnerability and the host?
— Reply to this email directly or view it on GitHub https://github.com/KvasirSecurity/Kvasir/issues/171#issuecomment-73061666 .
I imported NMAP XML results into a fresh database, created a vulnerability and added it to a service. That worked. But when trying to edit the assigned vulnerability, the mentioned error occurred.
I already did some debugging and although r.f_hosts_id
has a value and replacing r.f_hosts_id
by its value (i. e., db.t_hosts[12345]
) works, somehow db.t_hosts[r.f_hosts_id]
just returns None
.
The host lookup
db.t_hosts[r.f_hosts_id]
in the formatting function for services in _models/db_02kvasir.py fails when trying to edit a vulnerability of a service (…/vulns/service_vulns_edit.html/123
) with the following trace: