CVE-2024-37155: OpenCTI May Bypass Introspection Restriction
Summary
The regex validation used to prevent Introspection queries can be bypassed by removing the extra whitespace, carriage return, and line feed characters from the query.
Details
GraphQL Queries in OpenCTI can be validated using the secureIntrospectionPlugin.
Impact Bypassing this restriction allows the attacker to gather a wealth of information about the GraphQL endpoint functionality that can be used to perform actions and/or read data without authorization. These queries can also be weaponized to conduct a Denial of Service (DoS) attack if sent repeatedly.
Other sources
OpenCTI is an open source platform allowing organizations to manage their cyber threat intelligence knowledge and observables. Prior to version 6.1.9, the regex validation used to prevent Introspection queries can be bypassed by removing the extra whitespace, carriage return, and line feed characters from the query. GraphQL Queries in OpenCTI can be validated using the secureIntrospectionPlugin. The regex check in the plkugin can be bypassed by removing the carriage return and line feed characters (\r\n). Running a curl command against a local instance of OpenCTI will result in a limited error message. By running the same Introspection query without the \r\n characters, the unauthenticated user is able to successfully run a full Introspection query. Bypassing this restriction allows the attacker to gather a wealth of information about the GraphQL endpoint functionality that can be used to perform actions and/or read data without authorization. These queries can also be weaponized to conduct a Denial of Service (DoS) attack if sent repeatedly. Users should upgrade to version 6.1.9 to receive a patch for the issue.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/pyctito a version that resolves this vulnerability.Fixed in 6.1.9 - Configuration
Enable the secureIntrospectionPlugin in OpenCTI to validate GraphQL queries and prevent introspection queries from bypassing the regex-based restriction.
OpenCTI secureIntrospectionPlugin = enabled
Event History
Frequently Asked Questions
What is the severity of CVE-2024-37155?
CVE-2024-37155 is classified as a medium severity vulnerability.
How do I fix CVE-2024-37155?
To fix CVE-2024-37155, upgrade OpenCTI to version 6.1.9 or later.
What kind of vulnerability is CVE-2024-37155?
CVE-2024-37155 is a regex validation bypass vulnerability affecting OpenCTI.
Which versions of OpenCTI are affected by CVE-2024-37155?
OpenCTI versions prior to 6.1.9 are affected by CVE-2024-37155.
What is the impact of CVE-2024-37155?
The impact of CVE-2024-37155 is that it allows attackers to bypass Introspection query validations.