Possible improper use of "replace()" to sanitize queryAi() results in XTM code? #9934
Open
1 of 3 tasks
Labels
needs triage
use to identify issue needing triage from Filigran Product team
question
Further information is requested
Prerequisites
Description
While performing a code scan in a fork of OpenCTI, I detected a possible improper sanitization of the results in XTM domain using the "replace()" function. In this case, from my understanding, with the pattern
'"'
it is only replacing the first occurrence of the double braces in the results of the LLM. Is this the intended behavior?Version/Tag: 6.5.1
Commit: 1b14135
File: opencti/blob/master/opencti-platform/opencti-graphql/src/modules/xtm/xtm-domain.js
Lines:
Environment
N/A
Reproducible Steps
Steps to create the smallest reproducible scenario:
'Hello"'
(but is this intended?)Reference documentation
The text was updated successfully, but these errors were encountered: