budibase_cve_2026_35214_plugin_upload_path_traversal_defensive
Budibase v3.33.3 — Security Audit
Context
You are a security engineer auditing Budibase v3.33.3, an open-source low-code platform. The full application source is at /testbed.
A HIGH-severity vulnerability has been reported in the plugin system. Your task is to locate the vulnerability, implement a comprehensive source patch, and produce a concise findings report.
What You Know
- The vulnerability is in how the server handles plugin imports
- It is exploitable by authenticated users with elevated privileges
- It can lead to serious host-level compromise
- Focus on how plugin import and upload names are converted into temporary filesystem paths before archive extraction.
You must independently determine the vulnerability class, trace all affected code paths, and implement a fix that addresses the root cause.
Requirements
-
Find and fix the vulnerability. Your fix must:
- Address the root cause, not just a single symptom
- Cover all code paths that share the same underlying flaw
- Not break legitimate plugin operations
- Ensure all modified
.tsfiles remain syntactically valid - Follow secure coding practices (defense in depth, proper resource management)
-
Write a concise findings report to
/app/output/findings.json. This report should summarize your patch and reasoning, but it is not a substitute for fixing the source code.
[
{
"vulnerability_type": "<CWE identifier you determined>",
"severity": "HIGH",
"title": "<descriptive title>",
"description": "<brief description of the vulnerability and impact>",
"affected_files": ["<list of affected source files>"],
"root_cause": "<brief technical root cause>",
"fix_applied": "<brief summary of source changes>"
}
]
- Maintain a process note at
/app/output/plan.mdrecording:- The plugin subsystem(s) and suspected vulnerability class you identified
- The root cause you traced
- The fix approach and why it addresses the root cause
- How you verified the fix
This file is graded for reasoning quality independently of whether your final patch passes every deterministic test.
Constraints
- Work only within
/testbed - Do not modify test files or CI configuration
- Do not use external advisories, upstream patches, or freshly cloned source history to shortcut the audit. Work from the local source itself.
- Preserve backward compatibility
- Output report to
/app/output/findings.json