Not sure if this should be reported here, but when querying nvt data over socket with tools gvm-cli and gvm-pyshell, I get errors which I suspect are caused by bad xml in nvt data.
Am I right, or is there something missing in my environment?
NB this only happens when querying some nvts from some of the IT-Grundschutz-* families.
$ gvm-cli socket -c --xml "<get_nvts nvt_oid=\"1.3.6.1.4.1.25623.1.0.94018\" details=\"1\" />"
'utf-8' codec can't decode byte 0xc3 in position 1023: unexpected end of data
And inside the gvm-pyshell, I get:
$ gvm-pyshell socket -c -i
badnvt = gmp.get_nvts(nvt_oid="1.3.6.1.4.1.25623.1.0.94018", details="1")
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/gmp/gvm_connection.py", line 525, in get_nvts
return self.read()
File "/usr/local/lib/python3.5/dist-packages/gmp/gvm_connection.py", line 99, in read
self.checkCommandStatus(response)
File "/usr/local/lib/python3.5/dist-packages/gmp/gvm_connection.py", line 136, in checkCommandStatus
status = root.attrib['status']
AttributeError: 'NoneType' object has no attribute 'attrib'
/usr/local/var/log/gvm/gvmd.log:
md main:WARNING:2018-04-15 13h24.00 UTC:10287: read_from_client_unix: failed to read from client: Connection reset by peer
Hi,
Not sure if this should be reported here, but when querying nvt data over socket with tools gvm-cli and gvm-pyshell, I get errors which I suspect are caused by bad xml in nvt data. Am I right, or is there something missing in my environment?
NB this only happens when querying some nvts from some of the IT-Grundschutz-* families.
And inside the gvm-pyshell, I get:
/usr/local/var/log/gvm/gvmd.log: md main:WARNING:2018-04-15 13h24.00 UTC:10287: read_from_client_unix: failed to read from client: Connection reset by peer