python-gvm
python-gvm copied to clipboard
create_target doesn't validate target name
Expected behavior
I expect the python-gvm library to validate the name of new targets when using Gmp.create_target().
Current behavior
At the moment I can create new targets via python-gvm with names that contain characters that are not allowed when creating targets via the WebUI.

Steps to reproduce
- Create a new target via python-gvm (Gmp.create_target()) with a target name containing the '@' symbol (e.g. [email protected])
- Open the newly created target via the WebUI and try to save it.
GVM versions
gsa: Greenbone Security Assistant 22.04.0
gvm: Greenbone Vulnerability Manager 22.4.2
openvas-scanner: OpenVAS 22.4.1
gvm-libs: gvm-libs 22.4.1~dev1
gvm-tools: gvm-cli 23.2.0 (API version 23.2.0)
Environment
Operating system: Debian docker host
Installation method / source: community container
Logfiles