Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_target doesn't validate target name #966

Open
pfummel opened this issue Mar 16, 2023 · 0 comments
Open

create_target doesn't validate target name #966

pfummel opened this issue Mar 16, 2023 · 0 comments

Comments

@pfummel
Copy link

pfummel commented Mar 16, 2023

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


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant