Skip to content

create_target doesn't validate target name #966

@pfummel

Description

@pfummel

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. info@example.com)
  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


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions