TheHive-Project / TheHive

TheHive: a Scalable, Open Source and Free Security Incident Response Platform
https://thehive-project.org
GNU Affero General Public License v3.0
3.28k stars 609 forks source link

[Bug] Can add a "space" as observable #2324

Closed KRUXLEX closed 2 years ago

KRUXLEX commented 2 years ago

Request Type

image

Work Environment

Question Answer
OS version (server) Debian, ...
OS version (client) https://rpm.thehive-project.org/release/noarch
Virtualized Env. True
Dedicated RAM 64 GB
vCPU 16 /
TheHive version / git hash 4.17
Package Type Docker
Database Cassandra
Index type Elasticsearch
Attachments storage Local
Browser type & version Firefox

Problem Description

When you manually ad multiple observable and dome ware in the middle are empty lines, the hive adding a multiple whitespace observable: image

Steps to Reproduce

  1. Go to any case you want
  2. Go to observable
  3. Click to add observable image
  4. Put some data with empty line image 1.Add... And see: image

Possible Solutions

Regex fix?

Complementary information

Everything is up.