python-gvm icon indicating copy to clipboard operation
python-gvm copied to clipboard

create_target doesn't validate target name

Open pfummel opened this issue 2 years ago • 0 comments

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.

grafik

Steps to reproduce

  1. Create a new target via python-gvm (Gmp.create_target()) with a target name containing the '@' symbol (e.g. [email protected])
  2. 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


pfummel avatar Mar 16 '23 15:03 pfummel