opencti
opencti copied to clipboard
External reference URL are not properly validated during creation
Description
The validation doesn't recognize some valid URLs. URLs in the form of http://localhost:4000/storage/get/* are not accepted for exemple, as well as ftp addresses.
Environment
- OS (where OpenCTI server runs): { e.g. Mac OS 10, Windows 10, Ubuntu 16.4, etc. }
- OpenCTI version: { e.g. OpenCTI 1.0.2 }
- OpenCTI client: { e.g. frontend or python }
- Other environment details:
Reproducible Steps
Steps to create the smallest reproducible scenario:
- Go to External references
- Click on create an external ref
- Set URL to http://localhost:4000/storage/get/blabla.txt
Expected Output
URL is validated
Actual Output
We get a message saying that 'The value must be an URL'
Additional information
Screenshots (optional)
Other scenario :
Create an entity with a file. The external ref is well created.
Click on Update the external ref :
Change the source name. An error occurs for the URL field :
But the external ref is well updated if we leave the edition form :